diff options
author | midipix <writeonce@midipix.org> | 2019-08-15 19:43:49 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-08-15 19:52:19 +0000 |
commit | d6e02b8ff5da79d895197a3a1c4839e1047d6c57 (patch) | |
tree | 7dadfe592ed4d5cf1880768ab9a9fbedaf97a55d /include | |
parent | ef6791a9a90b6ac5e08b253dc3091bf322efda7d (diff) | |
download | perk-d6e02b8ff5da79d895197a3a1c4839e1047d6c57.tar.bz2 perk-d6e02b8ff5da79d895197a3a1c4839e1047d6c57.tar.xz |
perk.h: eliminate #include's of referential headers.
The primary purpose of this commit is to eliminate the pulling
in of definitions not strictly needed by perk.h. In particular,
perk.h does not require any of the PE constants to be defined,
and only refers to the raw PE structs by pointer.
The secondary purpose of this commit is to allow for inclusion
of perk.h by software that already comes with its own set of
PE const and struct definitions.
Diffstat (limited to 'include')
-rw-r--r-- | include/perk/perk.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h index e8a4a18..4c444d8 100644 --- a/include/perk/perk.h +++ b/include/perk/perk.h @@ -5,8 +5,6 @@ #include <stdio.h> #include "perk_api.h" -#include "perk_consts.h" -#include "perk_structs.h" #include "perk_meta.h" #ifdef __cplusplus @@ -21,6 +19,7 @@ extern "C" { #endif #endif + /* status codes */ #define PERK_OK 0x00 #define PERK_USAGE 0x01 @@ -65,6 +64,16 @@ enum pe_custom_error { PERK_ERR_CAP, }; +struct pe_raw_image; +struct pe_raw_image_dos_hdr; +struct pe_raw_coff_image_hdr; +struct pe_raw_coff_object_hdr; +union pe_raw_opt_hdr; +struct pe_raw_sec_hdr; +struct pe_raw_export_hdr; +struct pe_raw_import_hdr; +struct pe_raw_coff_symbol; + struct pe_raw_image { void * map_addr; size_t map_size; |