diff options
author | midipix <writeonce@midipix.org> | 2016-11-15 09:37:28 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-15 09:37:28 -0500 |
commit | cd4ace49776d042189f1066a357d1ca2d9f81332 (patch) | |
tree | 715e50fa385379d8d990e24a281eded12da7db9e /src/output/pe_output_image_type.c | |
parent | 9d75af02d905f6005b9cee7f79615569d7d14dd4 (diff) | |
download | perk-cd4ace49776d042189f1066a357d1ca2d9f81332.tar.bz2 perk-cd4ace49776d042189f1066a357d1ca2d9f81332.tar.xz |
output: renamed pe_output_image_type() --> pe_output_image_category().
Diffstat (limited to 'src/output/pe_output_image_type.c')
-rw-r--r-- | src/output/pe_output_image_type.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/output/pe_output_image_type.c b/src/output/pe_output_image_type.c deleted file mode 100644 index 3df5316..0000000 --- a/src/output/pe_output_image_type.c +++ /dev/null @@ -1,50 +0,0 @@ -/***************************************************************/ -/* perk: PE Resource Kit */ -/* Copyright (C) 2015--2016 Z. Gilboa */ -/* Released under GPLv2 and GPLv3; see COPYING.PERK. */ -/***************************************************************/ - -#include <stdio.h> - -#include <perk/perk.h> -#include <perk/perk_output.h> -#include "perk_errinfo_impl.h" - -int pe_output_image_type( - const struct pe_driver_ctx * dctx, - const struct pe_unit_ctx * uctx, - FILE * fout) -{ - struct pe_info_string abi; - struct pe_info_string subtype; - struct pe_info_string subsystem; - struct pe_info_string framework; - const struct pe_image_meta * meta = uctx->meta; - - if (!fout) - fout = stdout; - - pe_get_image_abi (meta,&abi); - pe_get_image_subtype (meta,&subtype); - pe_get_image_subsystem(meta,&subsystem); - pe_get_image_framework(meta,&framework); - - if (dctx->cctx->fmtflags & PERK_PRETTY_YAML) { - if (fprintf(fout,"%s:\n- %s:\n- %s:\n- %s:\n- %s:\n", - *uctx->path, - abi.buffer, - subtype.buffer, - subsystem.buffer, - framework.buffer) < 0) - return PERK_FILE_ERROR(dctx); - } else { - if (fprintf(fout,"%s-%s-%s-%s\n", - abi.buffer, - subtype.buffer, - subsystem.buffer, - framework.buffer) < 0) - return PERK_FILE_ERROR(dctx); - } - - return 0; -} |