libextractor
1.11
About: GNU libextractor is a library used to extract meta-data from files of arbitrary type.
![]() ![]() |
convenience functions for printing meta data More...
Go to the source code of this file.
Functions | |
int | EXTRACTOR_meta_data_print (void *handle, const char *plugin_name, enum EXTRACTOR_MetaType type, enum EXTRACTOR_MetaFormat format, const char *data_mime_type, const char *data, size_t data_len) |
convenience functions for printing meta data
Definition in file extractor_print.c.
int EXTRACTOR_meta_data_print | ( | void * | handle, |
const char * | plugin_name, | ||
enum EXTRACTOR_MetaType | type, | ||
enum EXTRACTOR_MetaFormat | format, | ||
const char * | data_mime_type, | ||
const char * | data, | ||
size_t | data_len | ||
) |
Simple EXTRACTOR_MetaDataProcessor implementation that simply prints the extracted meta data to the given file. Only prints those keywords that are in UTF-8 format.
handle | the file to write to (stdout, stderr), must NOT be NULL, must be of type "FILE *". |
plugin_name | name of the plugin that produced this value |
type | libextractor-type describing the meta data |
format | basic format information about data |
data_mime_type | mime-type of data (not of the original file); can be NULL (if mime-type is not known) |
data | actual meta-data found |
data_len | number of bytes in data |
Definition at line 49 of file extractor_print.c.
References dgettext, EXTRACTOR_METAFORMAT_UTF8, EXTRACTOR_metatype_to_string(), gettext_noop, iconv_helper(), LOG_STRERROR, NULL, and type.