[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.h

Go to the documentation of this file.
00001 /*
00002     snap service handler
00003     registration table header file
00004     (c) 2003 Willem de Bruijn
00005     a lot of code has been copied from the base SNAP package by Jon Moore
00006     all other code falls under the BSD License
00007 */
00008 
00009 #ifndef SNAP_SVC_REGTABLE_H
00010 #define SNAP_SVC_REGTABLE_H
00011 
00012 #define DEF_SVC_TAB_SZ 100
00013     
00014 #include <snap_svc.h>
00015 
00016     /* a function table element */
00017     struct snap_svc_rec {
00018     snapsvc_func_proto snapsvc_func;
00019     int nargs;
00020     int nret;
00021     };
00022 
00023     int snap_svc_table_init(); /* initialize the table */
00024     int snap_svc_table_fini(); /* destroy the table */
00025 
00026     /* register a function */
00027     int snap_svc_table_add(char*, snapsvc_func_proto, int, int);
00028 
00029     /* look up a function */
00030     void* snap_svc_table_find(char*);
00031 
00032 #endif
00033