MIO file sink initializers. More...
#include <airframe/mio.h>Go to the source code of this file.
Data Structures | |
| struct | _MIOSinkFileConfig |
| File sink configuration context. More... | |
Typedefs | |
| typedef struct _MIOSinkFileConfig | MIOSinkFileConfig |
| File sink configuration context. More... | |
Functions | |
| gboolean | mio_sink_init_file_single (MIOSink *sink, const char *spec, MIOType vsp_type, void *cfg, GError **err) |
| Initialize a file sink for writing to a single file. More... | |
| gboolean | mio_sink_init_file_pattern (MIOSink *sink, const char *spec, MIOType vsp_type, void *cfg, GError **err) |
| Initialize a file sink for writing to a multiple files based upon a pattern. More... | |
MIO file sink initializers.
Most applications should use the interface in mio_config.h to access these initializers.
| typedef struct _MIOSinkFileConfig MIOSinkFileConfig |
File sink configuration context.
Pass as the cfg argument to any file sink initializer.
| gboolean mio_sink_init_file_pattern | ( | MIOSink * | sink, |
| const char * | spec, | ||
| MIOType | vsp_type, | ||
| void * | cfg, | ||
| GError ** | err | ||
| ) |
Initialize a file sink for writing to a multiple files based upon a pattern.
Fails over to mio_sink_file_single() if specifier does not have any pattern variables.
The following pattern variables are supported:
| sink | pointer to MIOSink to initialize. This MIOSink will be overwritten. |
| spec | input specifier to initialize MIOSink with. Must be a filename. |
| vsp_type | requested sink pointer type, or MIO_T_ANY for default. |
| cfg | pointer to configuration context. Must be a pointer to an MIOSinkFileConfig. |
| err | An error description pointer. |
| gboolean mio_sink_init_file_single | ( | MIOSink * | sink, |
| const char * | spec, | ||
| MIOType | vsp_type, | ||
| void * | cfg, | ||
| GError ** | err | ||
| ) |
Initialize a file sink for writing to a single file.
Fails over to mio_sink_init_stdout() if specifier is the special string "-".
| sink | pointer to MIOSink to initialize. This MIOSink will be overwritten. |
| spec | input specifier to initialize MIOSink with. Must be a filename. |
| vsp_type | requested sink pointer type, or MIO_T_ANY for default. |
| cfg | pointer to configuration context. Must be a pointer to an MIOSinkFileConfig. |
| err | An error description pointer. |