mio_sink_multi.h File Reference
MIO multisink initializer and utilities. More...
#include <airframe/mio.h>
Go to the source code of this file.
Defines | |
#define | mio_smc(_s_) (GPOINTER_TO_UINT((_s_)->cfg)) |
Convenience macro to retrieve the subordinate sink count for a given multisink. | |
#define | mio_smn(_s_, _n_) (((MIOSink *)(_s_)->vsp)[(_n_)]) |
Convenience macro to access a given subordinate sink by index for a given multisink. | |
Functions | |
gboolean | mio_sink_init_multi (MIOSink *sink, const char *spec, MIOType vsp_type, void *cfg, GError **err) |
Initialize a multisink for writing to multiple subordinate sinks. |
Detailed Description
MIO multisink initializer and utilities.
Define Documentation
|
Convenience macro to access a given subordinate sink by index for a given multisink. Evaluates to a structure; use the address operator to get a pointer to the subordinate sink. |
Function Documentation
|
Initialize a multisink for writing to multiple subordinate sinks. A multisink simply distributes its operations (next, close, free) among its subordinates. This function creates a multisink with all of its subordinate sinks zeroed - after initializing, each subordinate sink must in turn be initialized by a specific sink initializer.
|