"Fossies" - the Fresh Open Source Software Archive

Member "libextractor-1.11/src/main/extractor_plugin_main.h" (30 Jan 2021, 1444 Bytes) of package /linux/privat/libextractor-1.11.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "extractor_plugin_main.h" see the Fossies "Dox" file reference documentation.

    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
   40   EXTRACTOR_plugin_main_ (struct EXTRACTOR_PluginList *plugin,
   41                           int in, int out);
   42 
   43 #endif