Flux Reference Manual |
---|
flux-dual-fifo —
#define FLUX_DUAL_FIFO (dfifo) struct FluxDualFifo; FluxDualFifo* flux_dual_fifo_new (gint buffers_min, gint buffers_max, gint buf_size); void flux_dual_fifo_init (FluxDualFifo *dfifo, gint buffers_min, gint buffers_max, gint buf_size); void flux_dual_fifo_finalize (FluxObject *dfifo); void flux_dual_fifo_write (FluxDualFifo *dfifo, void *source, gint len); void flux_dual_fifo_read (FluxDualFifo *dfifo, void *dest, gint len); void flux_dual_fifo_flush_output (FluxDualFifo *dfifo); void flux_dual_fifo_reset (FluxDualFifo *dfifo); FluxFifo* flux_dual_fifo_get_write_fifo (FluxDualFifo *dfifo); FluxFifo* flux_dual_fifo_get_read_fifo (FluxDualFifo *dfifo); gint flux_dual_fifo_get_max_write (FluxDualFifo *dfifo); gint flux_dual_fifo_get_max_read (FluxDualFifo *dfifo); void flux_dual_fifo_set_compression (FluxDualFifo *dfifo, guint level); void flux_dual_fifo_set_cipher (FluxDualFifo *dfifo, FluxCipher *cipher); void flux_dual_fifo_set_read_hook (FluxDualFifo *dfifo, FluxReadHook *hook, gpointer data); void flux_dual_fifo_set_write_hook (FluxDualFifo *dfifo, FluxWriteHook *hook, gpointer data);
struct FluxDualFifo { FluxObject object; FluxFifo *fifo [2]; FluxReadHook *read_hook; FluxWriteHook *write_hook; gpointer read_hook_data; gpointer write_hook_data; };
FluxDualFifo* flux_dual_fifo_new (gint buffers_min, gint buffers_max, gint buf_size);
buffers_min : | |
buffers_max : | |
buf_size : | |
Returns : |
void flux_dual_fifo_init (FluxDualFifo *dfifo, gint buffers_min, gint buffers_max, gint buf_size);
dfifo : | |
buffers_min : | |
buffers_max : | |
buf_size : |
void flux_dual_fifo_write (FluxDualFifo *dfifo, void *source, gint len);
dfifo : | |
source : | |
len : |
void flux_dual_fifo_read (FluxDualFifo *dfifo, void *dest, gint len);
dfifo : | |
dest : | |
len : |
FluxFifo* flux_dual_fifo_get_write_fifo (FluxDualFifo *dfifo);
dfifo : | |
Returns : |
FluxFifo* flux_dual_fifo_get_read_fifo (FluxDualFifo *dfifo);
dfifo : | |
Returns : |
gint flux_dual_fifo_get_max_write (FluxDualFifo *dfifo);
dfifo : | |
Returns : |
gint flux_dual_fifo_get_max_read (FluxDualFifo *dfifo);
dfifo : | |
Returns : |
void flux_dual_fifo_set_compression (FluxDualFifo *dfifo, guint level);
dfifo : | |
level : |
void flux_dual_fifo_set_cipher (FluxDualFifo *dfifo, FluxCipher *cipher);
dfifo : | |
cipher : |
void flux_dual_fifo_set_read_hook (FluxDualFifo *dfifo, FluxReadHook *hook, gpointer data);
dfifo : | |
hook : | |
data : |
void flux_dual_fifo_set_write_hook (FluxDualFifo *dfifo, FluxWriteHook *hook, gpointer data);
dfifo : | |
hook : | |
data : |
<< flux-fifo | flux-io >> |