summaryrefslogtreecommitdiffhomepage
path: root/include/perk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-12 16:20:21 -0500
committermidipix <writeonce@midipix.org>2016-11-12 16:20:21 -0500
commit665ac36fa8328a852876551140cd9fc6c4c22b94 (patch)
tree32e9d8daeee46d87b6158c02f8417c21324c5019 /include/perk
parentb697ef4ed3024d0198d379fe73aede5669fab5de (diff)
downloadperk-665ac36fa8328a852876551140cd9fc6c4c22b94.tar.bz2
perk-665ac36fa8328a852876551140cd9fc6c4c22b94.tar.xz
driver: added --type support (print image type).
Diffstat (limited to 'include/perk')
-rw-r--r--include/perk/perk.h1
-rw-r--r--include/perk/perk_output.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h
index 8624838..5e6010d 100644
--- a/include/perk/perk.h
+++ b/include/perk/perk.h
@@ -194,6 +194,7 @@ perk_api void pe_free_unit_ctx (struct pe_unit_ctx *);
/* utility api */
perk_api int pe_main (int, char **, char **);
+perk_api int pe_output_image_type (const struct pe_driver_ctx *, const struct pe_unit_ctx *, FILE *);
perk_api int pe_output_export_symbols (const struct pe_driver_ctx *, const struct pe_image_meta *, FILE *);
perk_api int pe_output_import_libraries(const struct pe_driver_ctx *, const struct pe_image_meta *, FILE *);
perk_api int pe_output_error_record (const struct pe_driver_ctx *, const struct pe_error_info *);
diff --git a/include/perk/perk_output.h b/include/perk/perk_output.h
index 0d03181..b5ad5c5 100644
--- a/include/perk/perk_output.h
+++ b/include/perk/perk_output.h
@@ -9,6 +9,7 @@
#define PERK_OUTPUT_EXPORT_SYMS 0x00000001
#define PERK_OUTPUT_IMPORT_LIBS 0x00000002
#define PERK_OUTPUT_IMPORT_SYMS 0x00000004
+#define PERK_OUTPUT_IMAGE_TYPE 0x00000008
/* pretty-printer flags */