From 70b202ce6334016bfd90be0dd7ee28b9a2262946 Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 19 2016 19:42:10 +0000 Subject: whitespace meditation. --- diff --git a/include/pemagine/pemagine.h b/include/pemagine/pemagine.h index 5516e6d..9845a48 100644 --- a/include/pemagine/pemagine.h +++ b/include/pemagine/pemagine.h @@ -152,41 +152,41 @@ typedef int pe_enum_image_import_hdrs_callback( void * context); /* library functions */ -pe_api struct pe_image_dos_hdr *pe_get_image_dos_hdr_addr (const void * base); -pe_api struct pe_coff_file_hdr *pe_get_image_coff_hdr_addr (const void * base); -pe_api union pe_opt_hdr * pe_get_image_opt_hdr_addr (const void * base); -pe_api struct pe_data_dirs * pe_get_image_data_dirs_addr (const void * base); -pe_api struct pe_sec_hdr * pe_get_image_section_tbl_addr (const void * base); -pe_api struct pe_sec_hdr * pe_get_image_named_section_addr (const void * base, const char * name); -pe_api struct pe_export_hdr * pe_get_image_export_hdr_addr (const void * base, uint32_t * sec_size); -pe_api struct pe_import_hdr * pe_get_image_import_dir_addr (const void * base, uint32_t * sec_size); -pe_api void * pe_get_image_special_hdr_addr (const void * base, uint32_t ordinal, uint32_t * sec_size); -pe_api void * pe_get_image_entry_point_addr (const void * base); -pe_api int pe_get_image_stack_heap_info (const void * base, struct pe_stack_heap_info *); - -pe_api void * pe_get_procedure_address (const void * base, const char * name); -pe_api int pe_get_export_symbol_info (const void * base, const char * name, struct pe_export_sym *); -pe_api int pe_enum_image_exports (const void * base, - pe_enum_image_exports_callback *, - struct pe_export_sym *, - void * ctx); - -pe_api int pe_enum_image_import_hdrs (const void * base, - pe_enum_image_import_hdrs_callback *, - void * ctx); - -pe_api char * pe_get_symbol_name (const void * base, const void * sym_addr); -pe_api struct pe_ldr_tbl_entry *pe_get_symbol_module_info (const void * sym_addr); -pe_api char * pe_get_import_symbol_info (const void * sym_addr, - struct pe_ldr_tbl_entry ** ldr_tbl_entry); - -pe_api int pe_enum_modules_in_load_order (pe_enum_modules_callback *, void * ctx); -pe_api int pe_enum_modules_in_memory_order (pe_enum_modules_callback *, void * ctx); -pe_api int pe_enum_modules_in_init_order (pe_enum_modules_callback *, void * ctx); -pe_api void * pe_get_module_handle (const wchar16_t * name); -pe_api void * pe_get_first_module_handle (void); -pe_api void * pe_get_ntdll_module_handle (void); -pe_api void * pe_get_kernel32_module_handle (void); +pe_api struct pe_image_dos_hdr * pe_get_image_dos_hdr_addr (const void * base); +pe_api struct pe_coff_file_hdr * pe_get_image_coff_hdr_addr (const void * base); +pe_api union pe_opt_hdr * pe_get_image_opt_hdr_addr (const void * base); +pe_api struct pe_data_dirs * pe_get_image_data_dirs_addr (const void * base); +pe_api struct pe_sec_hdr * pe_get_image_section_tbl_addr (const void * base); +pe_api struct pe_sec_hdr * pe_get_image_named_section_addr (const void * base, const char * name); +pe_api struct pe_export_hdr * pe_get_image_export_hdr_addr (const void * base, uint32_t * sec_size); +pe_api struct pe_import_hdr * pe_get_image_import_dir_addr (const void * base, uint32_t * sec_size); +pe_api void * pe_get_image_special_hdr_addr (const void * base, uint32_t ordinal, uint32_t * sec_size); +pe_api void * pe_get_image_entry_point_addr (const void * base); +pe_api int pe_get_image_stack_heap_info (const void * base, struct pe_stack_heap_info *); + +pe_api void * pe_get_procedure_address (const void * base, const char * name); +pe_api int pe_get_export_symbol_info (const void * base, const char * name, struct pe_export_sym *); +pe_api int pe_enum_image_exports (const void * base, + pe_enum_image_exports_callback *, + struct pe_export_sym *, + void * ctx); + +pe_api int pe_enum_image_import_hdrs (const void * base, + pe_enum_image_import_hdrs_callback *, + void * ctx); + +pe_api char * pe_get_symbol_name (const void * base, const void * sym_addr); +pe_api struct pe_ldr_tbl_entry * pe_get_symbol_module_info (const void * sym_addr); +pe_api char * pe_get_import_symbol_info (const void * sym_addr, + struct pe_ldr_tbl_entry ** ldr_tbl_entry); + +pe_api int pe_enum_modules_in_load_order (pe_enum_modules_callback *, void * ctx); +pe_api int pe_enum_modules_in_memory_order (pe_enum_modules_callback *, void * ctx); +pe_api int pe_enum_modules_in_init_order (pe_enum_modules_callback *, void * ctx); +pe_api void * pe_get_module_handle (const wchar16_t * name); +pe_api void * pe_get_first_module_handle (void); +pe_api void * pe_get_ntdll_module_handle (void); +pe_api void * pe_get_kernel32_module_handle (void); #ifdef __cplusplus