summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-04 02:33:19 -0400
committermidipix <writeonce@midipix.org>2018-08-04 05:12:13 -0400
commit4866020cc2a320a52c073969c8229397ae851336 (patch)
treef4fc9a8e759fb5fbcf15a798a2e646f8df820efc
parente80af14208bc82433e377c4615d93e0041c03407 (diff)
downloadsofort-4866020cc2a320a52c073969c8229397ae851336.tar.bz2
sofort-4866020cc2a320a52c073969c8229397ae851336.tar.xz
whitespace meditation.
-rw-r--r--include/sofort/sofort.h48
1 files changed, 28 insertions, 20 deletions
diff --git a/include/sofort/sofort.h b/include/sofort/sofort.h
index 61620bf..a479e73 100644
--- a/include/sofort/sofort.h
+++ b/include/sofort/sofort.h
@@ -58,6 +58,11 @@ enum sfrt_custom_error {
SFRT_ERR_CAP,
};
+struct sfrt_input {
+ void * addr;
+ size_t size;
+};
+
struct sfrt_source_version {
int major;
int minor;
@@ -65,11 +70,6 @@ struct sfrt_source_version {
const char * commit;
};
-struct sfrt_input {
- void * addr;
- size_t size;
-};
-
struct sfrt_error_info {
const struct sfrt_driver_ctx * edctx;
const struct sfrt_unit_ctx * euctx;
@@ -104,26 +104,34 @@ struct sfrt_unit_ctx {
void * any;
};
-/* package info */
-sfrt_api const struct sfrt_source_version * sfrt_source_version(void);
-
/* driver api */
-sfrt_api int sfrt_get_driver_ctx (char ** argv, char ** envp, uint32_t flags, struct sfrt_driver_ctx **);
-sfrt_api void sfrt_free_driver_ctx (struct sfrt_driver_ctx *);
+sfrt_api int sfrt_get_driver_ctx (char ** argv, char ** envp, uint32_t flags,
+ struct sfrt_driver_ctx **);
+
+sfrt_api void sfrt_free_driver_ctx (struct sfrt_driver_ctx *);
-sfrt_api int sfrt_get_unit_ctx (const struct sfrt_driver_ctx *, const char * path, struct sfrt_unit_ctx **);
-sfrt_api void sfrt_free_unit_ctx (struct sfrt_unit_ctx *);
+sfrt_api int sfrt_get_unit_ctx (const struct sfrt_driver_ctx *, const char * path,
+ struct sfrt_unit_ctx **);
-sfrt_api int sfrt_map_input (const struct sfrt_driver_ctx *, int fd, const char * path, int prot, struct sfrt_input *);
-sfrt_api int sfrt_unmap_input (struct sfrt_input *);
+sfrt_api void sfrt_free_unit_ctx (struct sfrt_unit_ctx *);
/* utility api */
-sfrt_api int sfrt_main (int, char **, char **);
-sfrt_api int sfrt_output_dummy (const struct sfrt_common_ctx *, FILE *); /* dummy */
-sfrt_api int sfrt_output_name (const struct sfrt_unit_ctx *, FILE *); /* dummy */
-sfrt_api int sfrt_output_address (const struct sfrt_unit_ctx *, FILE *); /* dummy */
-sfrt_api int sfrt_output_error_record (const struct sfrt_driver_ctx *, const struct sfrt_error_info *);
-sfrt_api int sfrt_output_error_vector (const struct sfrt_driver_ctx *);
+sfrt_api int sfrt_main (int, char **, char **);
+sfrt_api int sfrt_output_dummy (const struct sfrt_common_ctx *, FILE *); /* dummy */
+sfrt_api int sfrt_output_name (const struct sfrt_unit_ctx *, FILE *); /* dummy */
+sfrt_api int sfrt_output_address (const struct sfrt_unit_ctx *, FILE *); /* dummy */
+sfrt_api int sfrt_output_error_record (const struct sfrt_driver_ctx *, const struct sfrt_error_info *);
+sfrt_api int sfrt_output_error_vector (const struct sfrt_driver_ctx *);
+
+/* raw input api */
+sfrt_api int sfrt_map_input (const struct sfrt_driver_ctx *,
+ int, const char *, int,
+ struct sfrt_input *);
+
+sfrt_api int sfrt_unmap_input (struct sfrt_input *);
+
+/* package info */
+sfrt_api const struct sfrt_source_version * sfrt_source_version(void);
#ifdef __cplusplus
}