Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

stringtable.c File Reference

#include <neuro/stringtable.h>
#include <assert.h>
#include <malloc.h>
#include <string.h>
#include <search.h>

Go to the source code of this file.

Data Structures

struct  StringTable
struct  StringTableNode

Functions

StringTablenewStringTable (void)
int stringToInt (const char *str)
int putInt (struct StringTable *st, int key, void *val)
int putString (struct StringTable *st, const char *key, void *val)
int delInt (struct StringTable *st, int key)
int delString (struct StringTable *st, const char *key)
void * findInt (struct StringTable *st, int key)
void * findString (struct StringTable *st, const char *key)
void allStrings (struct StringTable *st, StringTableIterator sti, void *udata)
void freeStringTable (struct StringTable *st)


Function Documentation

void allStrings struct StringTable st,
StringTableIterator  sti,
void *  udata
 

Definition at line 130 of file stringtable.c.

Referenced by freeCommandHandler().

int delInt struct StringTable st,
int  key
 

Definition at line 76 of file stringtable.c.

References delString().

int delString struct StringTable st,
const char *  key
 

Definition at line 81 of file stringtable.c.

References ERR_NOSTRING, and StringTable::stringTableNodeTab.

Referenced by delInt().

void* findInt struct StringTable st,
int  key
 

Definition at line 96 of file stringtable.c.

References findString().

Referenced by waitForNetEvent().

void* findString struct StringTable st,
const char *  key
 

Definition at line 101 of file stringtable.c.

References StringTable::stringTableNodeTab.

Referenced by findInt(), and handleLine().

void freeStringTable struct StringTable st  ) 
 

Definition at line 138 of file stringtable.c.

References StringTable::stringTableNodeTab.

Referenced by closeNSNet(), and freeCommandHandler().

struct StringTable* newStringTable void   ) 
 

Definition at line 26 of file stringtable.c.

Referenced by newCommandHandler(), and newNSNet().

int putInt struct StringTable st,
int  key,
void *  val
 

Definition at line 53 of file stringtable.c.

References putString().

Referenced by attachConnectionReadHandler(), attemptBind(), and attemptConnect().

int putString struct StringTable st,
const char *  key,
void *  val
 

Definition at line 58 of file stringtable.c.

References StringTable::stringTableNodeTab.

Referenced by enregisterCommand(), newClientStarted(), and putInt().

int stringToInt const char *  str  ) 
 

Definition at line 40 of file stringtable.c.


Generated on Tue Feb 8 00:05:20 2005 for Neuroserver by doxygen 1.3.3