SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
osip_fifo.h File Reference

oSIP fifo Routines More...

#include <osip2/osip_mt.h>
#include <osipparser2/osip_list.h>
Include dependency graph for osip_fifo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  osip_fifo
 Structure for referencing a fifo. More...
 

Typedefs

typedef struct osip_fifo osip_fifo_t
 Structure for referencing a fifo. More...
 

Enumerations

enum  osip_fifo_state { osip_ok, osip_empty }
 

Functions

void osip_fifo_init (osip_fifo_t *ff)
 Initialise a osip_fifo_t element. More...
 
void osip_fifo_free (osip_fifo_t *ff)
 Free a fifo element. More...
 
int osip_fifo_insert (osip_fifo_t *ff, void *element)
 Insert an element in a fifo (at the beginning). More...
 
int osip_fifo_add (osip_fifo_t *ff, void *element)
 Add an element in a fifo. More...
 
int osip_fifo_size (osip_fifo_t *ff)
 Get the number of element in a fifo. More...
 
void * osip_fifo_get (osip_fifo_t *ff)
 Get an element from a fifo or block until one is added. More...
 
void * osip_fifo_tryget (osip_fifo_t *ff)
 Try to get an element from a fifo, but do not block if there is no element. More...
 

Detailed Description

oSIP fifo Routines

This is a very simple implementation of a fifo.
There is not much to say about it...

Definition in file osip_fifo.h.