#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"

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 TPoolZone * | PoolZoneAlloc (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) |
| 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 | |||
| ) |
Definition at line 249 of file abyss_data.c.
References BufferAlloc(), BufferFree(), TBuffer::data, FALSE, TBuffer::size, TBuffer::staticid, and TRUE.
| 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 | |||
| ) |
Definition at line 100 of file abyss_data.c.
References FALSE, TList::item, TList::maxsize, TList::size, and TRUE.
Referenced by ConfReadServerFile(), generateListing(), ListAddFromString(), mimeTypeAdd(), ServerAddHandler(), and ServerAddHandler2().
| 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 | |||
| ) |
| void ListFree | ( | TList *const | sl | ) |
Definition at line 69 of file abyss_data.c.
References TList::autofree, TList::item, TList::maxsize, NULL, and TList::size.
Referenced by generateListing(), RequestFree(), ServerDirectoryHandler(), ServerFileHandler(), and ServerFree().
| void ListFreeItems | ( | TList *const | sl | ) |
| 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 | ) |
| void* PoolAlloc | ( | TPool *const | poolP, | |
| uint32_t const | size | |||
| ) |
Definition at line 539 of file abyss_data.c.
References TPool::currentzone, _TPoolZone::data, MAX, TPool::mutex, MutexLock(), MutexUnlock(), _TPoolZone::next, NULL, PoolZoneAlloc(), _TPoolZone::pos, _TPoolZone::prev, and TPool::zonesize.
| abyss_bool PoolCreate | ( | TPool *const | poolP, | |
| uint32_t const | zonesize | |||
| ) |
Definition at line 510 of file abyss_data.c.
References TPool::currentzone, FALSE, TPool::firstzone, TPool::mutex, MutexCreate(), MutexFree(), NULL, PoolZoneAlloc(), TRUE, and TPool::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 | |||
| ) |
Definition at line 583 of file abyss_data.c.
References TPool::currentzone, _TPoolZone::data, _TPoolZone::next, NULL, PoolZoneFree(), _TPoolZone::pos, and _TPoolZone::prev.
Referenced by mimeTypeAdd().
| const char* PoolStrdup | ( | TPool *const | poolP, | |
| const char *const | origString | |||
| ) |
| static TPoolZone* PoolZoneAlloc | ( | uint32_t const | zonesize | ) | [static] |
Definition at line 485 of file abyss_data.c.
References _TPoolZone::data, MALLOCARRAY, _TPoolZone::maxpos, _TPoolZone::next, NULL, _TPoolZone::pos, and _TPoolZone::prev.
Referenced by PoolAlloc(), and PoolCreate().
| static void PoolZoneFree | ( | TPoolZone *const | poolZoneP | ) | [static] |
| 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 | |||
| ) |
Definition at line 312 of file abyss_data.c.
References TString::buffer, BufferRealloc(), TBuffer::data, FALSE, len, TBuffer::size, TString::size, and TRUE.
| abyss_bool StringConcat | ( | TString * | s, | |
| char * | s2 | |||
| ) |
Definition at line 299 of file abyss_data.c.
References TString::buffer, BufferRealloc(), TBuffer::data, FALSE, len, TBuffer::size, TString::size, and TRUE.
| char* StringData | ( | TString * | s | ) |
| 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 | |||
| ) |
Definition at line 439 of file abyss_data.c.
References FALSE, TTableItem::hash, Hash16(), TTable::item, TTable::maxsize, TTableItem::name, TTable::size, TRUE, and TTableItem::value.
| abyss_bool TableAddReplace | ( | TTable *const | t, | |
| const char *const | name, | |||
| const char *const | value | |||
| ) |
Definition at line 412 of file abyss_data.c.
References TTable::item, TTableItem::name, TTable::size, TableAdd(), TableFindIndex(), TRUE, and TTableItem::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().
1.5.6