flux-dual-fifo

flux-dual-fifo —

Synopsis




#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);

Description

Details

FLUX_DUAL_FIFO()

#define FLUX_DUAL_FIFO(dfifo) ((FluxDualFifo *) (dfifo))

dfifo :

struct FluxDualFifo

struct FluxDualFifo {

  FluxObject     object;

  FluxFifo      *fifo [2];

  FluxReadHook  *read_hook;
  FluxWriteHook *write_hook;

  gpointer       read_hook_data;
  gpointer       write_hook_data;
};


flux_dual_fifo_new ()

FluxDualFifo* flux_dual_fifo_new            (gint buffers_min,
                                             gint buffers_max,
                                             gint buf_size);

buffers_min :
buffers_max :
buf_size :
Returns :

flux_dual_fifo_init ()

void        flux_dual_fifo_init             (FluxDualFifo *dfifo,
                                             gint buffers_min,
                                             gint buffers_max,
                                             gint buf_size);

dfifo :
buffers_min :
buffers_max :
buf_size :

flux_dual_fifo_finalize ()

void        flux_dual_fifo_finalize         (FluxObject *dfifo);

dfifo :

flux_dual_fifo_write ()

void        flux_dual_fifo_write            (FluxDualFifo *dfifo,
                                             void *source,
                                             gint len);

dfifo :
source :
len :

flux_dual_fifo_read ()

void        flux_dual_fifo_read             (FluxDualFifo *dfifo,
                                             void *dest,
                                             gint len);

dfifo :
dest :
len :

flux_dual_fifo_flush_output ()

void        flux_dual_fifo_flush_output     (FluxDualFifo *dfifo);

dfifo :

flux_dual_fifo_reset ()

void        flux_dual_fifo_reset            (FluxDualFifo *dfifo);

dfifo :

flux_dual_fifo_get_write_fifo ()

FluxFifo*   flux_dual_fifo_get_write_fifo   (FluxDualFifo *dfifo);

dfifo :
Returns :

flux_dual_fifo_get_read_fifo ()

FluxFifo*   flux_dual_fifo_get_read_fifo    (FluxDualFifo *dfifo);

dfifo :
Returns :

flux_dual_fifo_get_max_write ()

gint        flux_dual_fifo_get_max_write    (FluxDualFifo *dfifo);

dfifo :
Returns :

flux_dual_fifo_get_max_read ()

gint        flux_dual_fifo_get_max_read     (FluxDualFifo *dfifo);

dfifo :
Returns :

flux_dual_fifo_set_compression ()

void        flux_dual_fifo_set_compression  (FluxDualFifo *dfifo,
                                             guint level);

dfifo :
level :

flux_dual_fifo_set_cipher ()

void        flux_dual_fifo_set_cipher       (FluxDualFifo *dfifo,
                                             FluxCipher *cipher);

dfifo :
cipher :

flux_dual_fifo_set_read_hook ()

void        flux_dual_fifo_set_read_hook    (FluxDualFifo *dfifo,
                                             FluxReadHook *hook,
                                             gpointer data);

dfifo :
hook :
data :

flux_dual_fifo_set_write_hook ()

void        flux_dual_fifo_set_write_hook   (FluxDualFifo *dfifo,
                                             FluxWriteHook *hook,
                                             gpointer data);

dfifo :
hook :
data :