mio_sink_multi.h
Go to the documentation of this file.00001 /* 00002 ** mio_sink_multi.h 00003 ** Multiple I/O multisink, for output fanout. 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 00021 /* idem hack */ 00022 #ifndef _AIRFRAME_MIO_SINK_MULTI_H_ 00023 #define _AIRFRAME_MIO_SINK_MULTI_H_ 00024 #include <airframe/mio.h> 00025 00045 gboolean mio_sink_init_multi( 00046 MIOSink *sink, 00047 const char *spec, 00048 MIOType vsp_type, 00049 void *cfg, 00050 GError **err); 00051 00056 #define mio_smc(_s_) (GPOINTER_TO_UINT((_s_)->cfg)) 00057 00063 #define mio_smn(_s_, _n_) (((MIOSink *)(_s_)->vsp)[(_n_)]) 00064 00065 /* end idem */ 00066 #endif