filter.c File Reference

#include "filter_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/text.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <gwenhywfar/debug.h>

Go to the source code of this file.

Functions

GWEN_FILTER_RESULT GWEN_Filter__Work (GWEN_FILTER *f)
GWEN_FILTER_RESULT GWEN_Filter__WriteToAllNext (GWEN_FILTER *filter)
void GWEN_Filter_AppendNext (GWEN_FILTER *fPredecessor, GWEN_FILTER *fNew)
void GWEN_Filter_free (GWEN_FILTER *f)
GWEN_RINGBUFFERGWEN_Filter_GetInBuffer (const GWEN_FILTER *f)
GWEN_RINGBUFFERGWEN_Filter_GetOutBuffer (const GWEN_FILTER *f)
GWEN_FILTERGWEN_Filter_new (const char *name)
void GWEN_Filter_SetWorkFn (GWEN_FILTER *f, GWEN_FILTER_WORKFN fn)
GWEN_FILTER_RESULT GWEN_Filter_Work (GWEN_FILTER *filter, int oneLoop)


Function Documentation

GWEN_FILTER_RESULT GWEN_Filter__Work ( GWEN_FILTER f  ) 

Definition at line 106 of file filter.c.

Referenced by GWEN_Filter_Work().

GWEN_FILTER_RESULT GWEN_Filter__WriteToAllNext ( GWEN_FILTER filter  ) 

void GWEN_Filter_AppendNext ( GWEN_FILTER fPredecessor,
GWEN_FILTER fNew 
)

Appends a successor to the given filter. This means data output by fPredecessor is from now on additionally fed to the fNew. If nPredecessor already has a successor then the data stream will be duplicated to feed all successors.

Definition at line 114 of file filter.c.

void GWEN_Filter_free ( GWEN_FILTER f  ) 

Definition at line 71 of file filter.c.

References GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, GWEN_LIST_FINI, and GWEN_RingBuffer_free().

GWEN_RINGBUFFER* GWEN_Filter_GetInBuffer ( const GWEN_FILTER f  ) 

Definition at line 85 of file filter.c.

GWEN_RINGBUFFER* GWEN_Filter_GetOutBuffer ( const GWEN_FILTER f  ) 

Definition at line 92 of file filter.c.

GWEN_FILTER* GWEN_Filter_new ( const char *  name  ) 

Definition at line 53 of file filter.c.

References GWEN_INHERIT_INIT, GWEN_LIST_INIT, GWEN_NEW_OBJECT, and GWEN_RingBuffer_new().

void GWEN_Filter_SetWorkFn ( GWEN_FILTER f,
GWEN_FILTER_WORKFN  fn 
)

Definition at line 99 of file filter.c.

GWEN_FILTER_RESULT GWEN_Filter_Work ( GWEN_FILTER filter,
int  oneLoop 
)


Generated on Mon Jan 25 12:56:03 2010 for gwenhywfar by  doxygen 1.5.6