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_ipc.c File Reference

IPC with plugin (OS-independent parts) More...

#include "platform.h"
#include "extractor_logging.h"
#include "extractor_ipc.h"
#include "extractor_plugins.h"
Include dependency graph for extractor_ipc.c:

Go to the source code of this file.

Functions

ssize_t EXTRACTOR_IPC_process_reply_ (struct EXTRACTOR_PluginList *plugin, const void *data, size_t size, EXTRACTOR_ChannelMessageProcessor proc, void *proc_cls)
 

Detailed Description

IPC with plugin (OS-independent parts)

Author
Christian Grothoff

Definition in file extractor_ipc.c.

Function Documentation

◆ EXTRACTOR_IPC_process_reply_()

ssize_t EXTRACTOR_IPC_process_reply_ ( struct EXTRACTOR_PluginList plugin,
const void *  data,
size_t  size,
EXTRACTOR_ChannelMessageProcessor  proc,
void *  proc_cls 
)

Process a reply from channel (seek request, metadata and done message)

Parameters
pluginplugin this communication is about
bufbuffer with data from IPC channel
sizenumber of bytes in buffer
procmetadata callback
proc_clscallback cls
Returns
number of bytes processed, -1 on error

Definition at line 42 of file extractor_ipc.c.

References EXTRACTOR_metatype_get_max(), EXTRACTOR_METATYPE_UNKNOWN, SeekRequestMessage::file_offset, LOG, MAX_META_DATA, MESSAGE_DONE, MESSAGE_META, MESSAGE_SEEK, MetaMessage::meta_format, MetaMessage::meta_type, MetaMessage::mime_length, NULL, EXTRACTOR_PluginList::round_finished, EXTRACTOR_PluginList::seek_request, EXTRACTOR_PluginList::seek_whence, MetaMessage::value_size, and SeekRequestMessage::whence.

Referenced by EXTRACTOR_IPC_channel_recv_().