From 69198475911da5e1f543178bc0a801aac5ff2bc0 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 30 Jul 2018 10:44:06 +0000 Subject: whitespace meditation. --- include/mdso/mdso.h | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/mdso/mdso.h b/include/mdso/mdso.h index 08b4469..5916ddf 100644 --- a/include/mdso/mdso.h +++ b/include/mdso/mdso.h @@ -65,6 +65,11 @@ enum mdso_custom_error { MDSO_ERR_CAP, }; +struct mdso_input { + void * addr; + size_t size; +}; + struct mdso_source_version { int major; int minor; @@ -72,11 +77,6 @@ struct mdso_source_version { const char * commit; }; -struct mdso_input { - void * addr; - size_t size; -}; - struct mdso_object { void * addr; size_t size; @@ -129,15 +129,18 @@ struct mdso_unit_ctx { }; /* driver api */ -mdso_api int mdso_get_driver_ctx (char ** argv, char ** envp, uint32_t flags, struct mdso_driver_ctx **); -mdso_api int mdso_create_driver_ctx (const struct mdso_common_ctx *, struct mdso_driver_ctx **); +mdso_api int mdso_get_driver_ctx (char ** argv, char ** envp, uint32_t flags, + struct mdso_driver_ctx **); + +mdso_api int mdso_create_driver_ctx (const struct mdso_common_ctx *, + struct mdso_driver_ctx **); + mdso_api void mdso_free_driver_ctx (struct mdso_driver_ctx *); -mdso_api int mdso_get_unit_ctx (const struct mdso_driver_ctx *, const char * path, struct mdso_unit_ctx **); -mdso_api void mdso_free_unit_ctx (struct mdso_unit_ctx *); +mdso_api int mdso_get_unit_ctx (const struct mdso_driver_ctx *, const char * path, + struct mdso_unit_ctx **); -mdso_api int mdso_map_input (const struct mdso_driver_ctx *, int fd, const char * path, int prot, struct mdso_input *); -mdso_api int mdso_unmap_input (struct mdso_input *); +mdso_api void mdso_free_unit_ctx (struct mdso_unit_ctx *); /* helper api */ mdso_api FILE*mdso_create_archive (const struct mdso_driver_ctx *, const char * arname); @@ -153,6 +156,13 @@ mdso_api int mdso_output_export_symbols(const struct mdso_driver_ctx *, const s mdso_api int mdso_output_error_record (const struct mdso_driver_ctx *, const struct mdso_error_info *); mdso_api int mdso_output_error_vector (const struct mdso_driver_ctx *); +/* raw input api */ +mdso_api int mdso_map_input (const struct mdso_driver_ctx *, + int fd, const char * path, int prot, + struct mdso_input *); + +mdso_api int mdso_unmap_input (struct mdso_input *); + /* low-level api */ mdso_api uint32_t mdso_crc32_mbstr (const unsigned char *, size_t *); mdso_api uint64_t mdso_crc64_mbstr (const unsigned char *, size_t *); -- cgit v1.2.3