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_plugin_main.h
Go to the documentation of this file.
1 /*
2  This file is part of libextractor.
3  Copyright (C) 2012 Vidyut Samanta and Christian Grothoff
4 
5  libextractor is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published
7  by the Free Software Foundation; either version 3, or (at your
8  option) any later version.
9 
10  libextractor is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with libextractor; see the file COPYING. If not, write to the
17  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19  */
20 /**
21  * @file main/extractor_plugin_main.c
22  * @brief main loop for an out-of-process plugin
23  * @author Christian Grothoff
24  */
25 #ifndef EXTRACTOR_PLUGIN_MAIN_H
26 #define EXTRACTOR_PLUGIN_MAIN_H
27 
28 #include "extractor.h"
29 
30 
31 /**
32  * 'main' function of the child process. Loads the plugin,
33  * sets up its in and out pipes, then runs the request serving function.
34  *
35  * @param plugin extractor plugin to use
36  * @param in stream to read from
37  * @param out stream to write to
38  */
39 void
41  int in, int out);
42 
43 #endif
void EXTRACTOR_plugin_main_(struct EXTRACTOR_PluginList *plugin, int in, int out)