abyss_data.c File Reference

#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "abyss_mallocvar.h"
#include "abyss_xmlrpc_int.h"
#include <xmlrpc-c/abyss.h>
#include "abyss_token.h"
#include "abyss_data.h"

Include dependency graph for abyss_data.c:

Go to the source code of this file.

Functions

abyss_bool BufferAlloc (TBuffer *buf, uint32_t memsize)
void BufferFree (TBuffer *buf)
abyss_bool BufferRealloc (TBuffer *buf, uint32_t memsize)
static uint16_t Hash16 (const char *const start)
abyss_bool ListAdd (TList *const sl, void *const str)
abyss_bool ListAddFromString (TList *const list, const char *const stringArg)
abyss_bool ListFindString (TList *const sl, const char *const str, uint16_t *const indexP)
void ListFree (TList *const sl)
void ListFreeItems (TList *const sl)
void ListInit (TList *sl)
void ListInitAutoFree (TList *sl)
void ListRemove (TList *const sl)
void * PoolAlloc (TPool *const poolP, uint32_t const size)
abyss_bool PoolCreate (TPool *const poolP, uint32_t const zonesize)
void PoolFree (TPool *const poolP)
void PoolReturn (TPool *const poolP, void *const blockP)
const char * PoolStrdup (TPool *const poolP, const char *const origString)
static TPoolZonePoolZoneAlloc (uint32_t const zonesize)
static void PoolZoneFree (TPoolZone *const poolZoneP)
abyss_bool StringAlloc (TString *s)
abyss_bool StringBlockConcat (TString *s, char *s2, char **ref)
abyss_bool StringConcat (TString *s, char *s2)
char * StringData (TString *s)
void StringFree (TString *s)
abyss_bool TableAdd (TTable *const t, const char *const name, const char *const value)
abyss_bool TableAddReplace (TTable *const t, const char *const name, const char *const value)
char * TableFind (TTable *const t, const char *const name)
abyss_bool TableFindIndex (TTable *const t, const char *const name, uint16_t *const index)
void TableFree (TTable *t)
void TableInit (TTable *t)


Function Documentation

abyss_bool BufferAlloc ( TBuffer buf,
uint32_t  memsize 
)

Definition at line 219 of file abyss_data.c.

References TBuffer::data, FALSE, TBuffer::size, TBuffer::staticid, and TRUE.

void BufferFree ( TBuffer buf  ) 

Definition at line 236 of file abyss_data.c.

References TBuffer::data, TBuffer::size, and TBuffer::staticid.

Referenced by BufferRealloc(), and StringFree().

abyss_bool BufferRealloc ( TBuffer buf,
uint32_t  memsize 
)

static uint16_t Hash16 ( const char *const   start  )  [static]

Definition at line 342 of file abyss_data.c.

References s.

Referenced by TableAdd(), and TableFindIndex().

abyss_bool ListAdd ( TList *const   sl,
void *const   str 
)

abyss_bool ListAddFromString ( TList *const   list,
const char *const   stringArg 
)

Definition at line 143 of file abyss_data.c.

References _TConn::buffer, FALSE, GetToken(), ListAdd(), NextToken(), TRUE, and xmlrpc_strfree().

abyss_bool ListFindString ( TList *const   sl,
const char *const   str,
uint16_t *const   indexP 
)

Definition at line 198 of file abyss_data.c.

References FALSE, TList::item, TList::size, and TRUE.

void ListFree ( TList *const   sl  ) 

void ListFreeItems ( TList *const   sl  ) 

Definition at line 88 of file abyss_data.c.

References TList::item, and TList::size.

void ListInit ( TList sl  ) 

Definition at line 52 of file abyss_data.c.

References TList::autofree, FALSE, TList::item, TList::maxsize, NULL, and TList::size.

Referenced by generateListing(), MIMETypeCreate(), and RequestInit().

void ListInitAutoFree ( TList sl  ) 

Definition at line 59 of file abyss_data.c.

References TList::autofree, TList::item, TList::maxsize, NULL, TList::size, and TRUE.

Referenced by createServer().

void ListRemove ( TList *const   sl  ) 

Definition at line 130 of file abyss_data.c.

References TList::size.

Referenced by mimeTypeAdd().

void* PoolAlloc ( TPool *const   poolP,
uint32_t const   size 
)

abyss_bool PoolCreate ( TPool *const   poolP,
uint32_t const   zonesize 
)

void PoolFree ( TPool *const   poolP  ) 

Definition at line 612 of file abyss_data.c.

References TPool::firstzone, and _TPoolZone::next.

Referenced by MIMETypeDestroy(), and ServerDirectoryHandler().

void PoolReturn ( TPool *const   poolP,
void *const   blockP 
)

const char* PoolStrdup ( TPool *const   poolP,
const char *const   origString 
)

Definition at line 626 of file abyss_data.c.

References NULL, and PoolAlloc().

static TPoolZone* PoolZoneAlloc ( uint32_t const   zonesize  )  [static]

static void PoolZoneFree ( TPoolZone *const   poolZoneP  )  [static]

Definition at line 502 of file abyss_data.c.

Referenced by PoolReturn().

abyss_bool StringAlloc ( TString s  ) 

Definition at line 287 of file abyss_data.c.

References TString::buffer, BufferAlloc(), TBuffer::data, FALSE, TString::size, and TRUE.

Referenced by RequestInit().

abyss_bool StringBlockConcat ( TString s,
char *  s2,
char **  ref 
)

abyss_bool StringConcat ( TString s,
char *  s2 
)

char* StringData ( TString s  ) 

Definition at line 332 of file abyss_data.c.

References TString::buffer, and TBuffer::data.

void StringFree ( TString s  ) 

Definition at line 326 of file abyss_data.c.

References TString::buffer, BufferFree(), and TString::size.

Referenced by RequestFree().

abyss_bool TableAdd ( TTable *const   t,
const char *const   name,
const char *const   value 
)

abyss_bool TableAddReplace ( TTable *const   t,
const char *const   name,
const char *const   value 
)

char* TableFind ( TTable *const   t,
const char *const   name 
)

Definition at line 469 of file abyss_data.c.

References TTable::item, NULL, TableFindIndex(), and TTableItem::value.

abyss_bool TableFindIndex ( TTable *const   t,
const char *const   name,
uint16_t *const   index 
)

Definition at line 389 of file abyss_data.c.

References FALSE, TTableItem::hash, hash, Hash16(), TTable::item, TTableItem::name, TTable::size, and TRUE.

void TableFree ( TTable t  ) 

Definition at line 367 of file abyss_data.c.

References TTable::item, TTableItem::name, TTable::size, TableInit(), and TTableItem::value.

Referenced by RequestFree().

void TableInit ( TTable t  ) 

Definition at line 361 of file abyss_data.c.

References TTable::item, TTable::maxsize, NULL, and TTable::size.

Referenced by RequestInit(), and TableFree().


Generated on Thu May 17 10:00:33 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6