[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_svc/snap_svc_TEMPLATE.c

Go to the documentation of this file.
00001 /* snap service library                 */
00002 /* (c) Willem de Bruijn, 2002, 2003     */
00003 /* Licensed under the BSD License       */
00004 /* snap_svc_TEMPLATE library sourcefile     */
00005 
00006 /* libc includes */
00007 #include <string.h>
00008 
00009 /* local includes */
00010 #include "d_printf.h"
00011 #include "snap_svc.h"
00012 #include "snap_svc_TEMPLATE.h"
00013 
00014 /* library handling functions */
00015 void snap_external_svclib_init(){
00016     d_printf(50,"snap_svc_TEMPLATE : initialized\n");
00017 }
00018 
00019 void snap_external_svclib_done(){
00020     d_printf(50,"snap_svc_TEMPLATE : closed\n");
00021 }
00022 
00023 /* there is where functions inside the library should be listed for registration */
00024 void snap_external_svclib_getnextfunc(char** snapsvc_name, snapsvc_func_proto* snapsvc_func, int* snapsvc_args, int* snapsvc_rets){
00025 
00026     switch (svc_fun_counter){
00027 /*      case 0  :       (*snapsvc_name) = strdup ("TEMPLATEfunc");
00028                         (*snapsvc_func) = (snapsvc_func_proto) &snap_external_svclib_TEMPLATEfunc;
00029                         (*snapsvc_args) = 0;
00030                         (*snapsvc_rets) = SVC_SNMP_TYPE_NULL;
00031                         break;
00032 */
00033         /* unknown handler -> return NULL as end-of-list symbol */
00034         default :   (*snapsvc_name) = NULL;
00035                     (*snapsvc_func) = NULL;
00036                     (*snapsvc_args) = 0;
00037                     (*snapsvc_rets) = 0;
00038     }
00039     svc_fun_counter ++;
00040 }
00041 
00042 /* ADD SERVICES BELOW */
00043 /* declarations of snap service handlers */
00044