Airframe Application Utilities
libairframe 0.7.2 API documentation

Main Page | Data Structures | File List | Data Fields | Globals

mio_config.h

Go to the documentation of this file.
00001 /*
00002  ** mio_config.h
00003  ** Multiple I/O common command-line processing convenience module
00004  **
00005  ** ------------------------------------------------------------------------
00006  ** Copyright (C) 2006 Carnegie Mellon University. All Rights Reserved.
00007  ** ------------------------------------------------------------------------
00008  ** Authors: Brian Trammell <bht@cert.org>
00009  ** ------------------------------------------------------------------------
00010  ** GNU Lesser GPL Rights pursuant to Version 2.1, February 1999 
00011  ** Government Purpose License Rights (GPLR) pursuant to DFARS 252.225-7013
00012  ** ------------------------------------------------------------------------
00013  */
00014 
00029 /* idem hack */
00030 #ifndef _AIRFRAME_MIO_CONFIG_H_
00031 #define _AIRFRAME_MIO_CONFIG_H_
00032 #include <airframe/mio.h>
00033 #include <airframe/airopt.h>
00034 
00036 #define MIO_F_CLI_INMASK        0x0000007F 
00037 
00038 #define MIO_F_CLI_FILE_IN       0x00000001
00039 
00040 #define MIO_F_CLI_DIR_IN        0x00000002
00041 
00042 #define MIO_F_CLI_UDP_IN        0x00000004
00043 
00044 #define MIO_F_CLI_TCP_IN        0x00000008
00045 
00046 #define MIO_F_CLI_PCAP_IN       0x00000040
00047 
00048 #define MIO_F_CLI_DEF_STDIN     0x00000080
00049 
00050 #define MIO_F_CLI_OUTMASK       0x00007F00
00051 
00052 #define MIO_F_CLI_FILE_OUT      0x00000100
00053 
00054 #define MIO_F_CLI_DIR_OUT       0x00000200
00055 
00056 #define MIO_F_CLI_UDP_OUT       0x00000400
00057 
00058 #define MIO_F_CLI_TCP_OUT       0x00000800
00059 
00060 #define MIO_F_CLI_DEF_STDOUT    0x00008000
00061 
00063 extern char         *mio_ov_in;
00065 extern char         *mio_ov_out;
00070 extern char         *mio_ov_nextdir;
00075 extern char         *mio_ov_faildir;
00081 extern int          mio_ov_poll;
00083 extern gboolean     mio_ov_lock;
00085 extern gboolean     mio_ov_live;
00087 extern char         *mio_ov_bpf;
00088 
00093 extern uint32_t     mio_ov_pcaplen;
00098 extern uint32_t     mio_ov_pcapto;
00105 extern char         *mio_ov_port;
00112 extern MIOType      mio_ov_filetype;
00113 
00122 gboolean mio_add_option_group(AirOptionCtx *aoctx, uint32_t flags);
00123 
00145 gboolean mio_config_source(
00146     MIOSource       *source,
00147     uint32_t        cli_flags,
00148     uint32_t        *miod_flags,
00149     GError          **err);
00150 
00180 gboolean mio_config_sink(
00181     MIOSource       *source,
00182     MIOSink         *sink,
00183     char            *basepat,
00184     uint32_t        cli_flags,
00185     uint32_t        *miod_flags,
00186     GError          **err);
00187 
00223 gboolean mio_config_multisink_file(
00224     MIOSource       *source,
00225     MIOSink         *sink,
00226     char            *basepat,
00227     uint32_t        count,
00228     char            **labels,
00229     uint32_t        cli_flags,
00230     uint32_t        *miod_flags,
00231     GError          **err);
00232 
00233 /* end idem */
00234 #endif