libextractor  1.11
About: GNU libextractor is a library used to extract meta-data from files of arbitrary type.
  Fossies Dox: libextractor-1.11.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

extractor_print.c File Reference

convenience functions for printing meta data More...

#include "platform.h"
#include "extractor.h"
#include "extractor_logging.h"
Include dependency graph for extractor_print.c:

Go to the source code of this file.


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)

Detailed Description

convenience functions for printing meta data

Christian Grothoff

Definition in file extractor_print.c.

Function Documentation

◆ EXTRACTOR_meta_data_print()

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.

handlethe file to write to (stdout, stderr), must NOT be NULL, must be of type "FILE *".
plugin_namename of the plugin that produced this value
typelibextractor-type describing the meta data
formatbasic format information about data
data_mime_typemime-type of data (not of the original file); can be NULL (if mime-type is not known)
dataactual meta-data found
data_lennumber of bytes in data
non-zero if printing failed, otherwise 0.

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.