[insert project logo here (125x200px max)]

Navigator

Mailinglists

Please report any errors or ommissions you find to our `Help' mailinglist, or post a message in the Forums.

Copyright and Licensing Information

Snap is (c) Jonathan T. Moore, 1999-2002 and licensed under the GNU General Public License (GPL).

All other parts of Splash are (c) Willem de Bruijn, 2002-2003 and licensed under the BSD Open Source License.

All sourcecode is made publicly available.

Acknowledgement

Splash and the Splash website are hosted by SourceForge.net

SourceForge.net Logo

osi-open source certified logo

Splash - Documentation

SNMP Plus a Lightweight API for SNAP Handling

Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

snap-1.1-wjdb/lib/snap_svc_reg_table.c File Reference

#include <stdlib.h>
#include <stddef.h>
#include <snap_svc.h>
#include "d_printf.h"
#include "hashtable.h"
#include "snap_svc_reg_table.h"

Include dependency graph for snap_svc_reg_table.c:

Include dependency graph

Go to the source code of this file.


Functions

int mystrcmp (char *s1, char *s2)
void * snap_svc_table_find (char *strName)
int snap_svc_table_add (char *strName, snapsvc_func_proto pFunc, int nargs, int nret)
int snap_svc_table_init ()
int snap_svc_table_fini ()

Variables

int snap_svc_table_initialized = 0

Function Documentation

int mystrcmp char *    s1,
char *    s2
 

Definition at line 21 of file snap_svc_reg_table.c.

Referenced by snap_svc_table_init().

int snap_svc_table_add char *    strName,
snapsvc_func_proto    pFunc,
int    nargs,
int    nret
 

Definition at line 42 of file snap_svc_reg_table.c.

References d_printf(), ht_insert(), snap_svc_rec::nargs, snap_svc_rec::nret, snap_svc_table_init(), snap_svc_table_initialized, snap_svc_rec::snapsvc_func, and snapsvc_func_proto.

Referenced by snap_svc_registerlib().

void* snap_svc_table_find char *    strName
 

Definition at line 37 of file snap_svc_reg_table.c.

References ht_lookup().

int snap_svc_table_fini  
 

Definition at line 92 of file snap_svc_reg_table.c.

References snap_svc_table_initialized.

int snap_svc_table_init  
 

Definition at line 75 of file snap_svc_reg_table.c.

References d_printf(), DEF_SVC_TAB_SZ, ht_create(), mystrcmp(), and snap_svc_table_initialized.

Referenced by snap_svc_table_add().


Variable Documentation

int snap_svc_table_initialized = 0
 

Definition at line 18 of file snap_svc_reg_table.c.

Referenced by snap_svc_table_add(), snap_svc_table_fini(), and snap_svc_table_init().