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

stringtable.h File Reference

#include <stdio.h>
#include <neuro/neuro.h>

Go to the source code of this file.

Defines

#define ERR_NOSTRING   1
#define ERR_INVALID   2
#define ERR_TABLEFULL   3

Typedefs

typedef void(* StringTableIterator )(struct StringTable *st, const char *key, void *val, void *udata)

Functions

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


Define Documentation

#define ERR_INVALID   2
 

Definition at line 10 of file stringtable.h.

#define ERR_NOSTRING   1
 

Definition at line 9 of file stringtable.h.

Referenced by delString().

#define ERR_TABLEFULL   3
 

Definition at line 11 of file stringtable.h.


Typedef Documentation

typedef void(* StringTableIterator)(struct StringTable *st, const char *key, void *val, void *udata)
 

Definition at line 14 of file stringtable.h.


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:21 2005 for Neuroserver by doxygen 1.3.3