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

#include <stddef.h>

Include dependency graph for snap_svc.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.


Data Structures

struct  svc_returnitem
struct  svc_returnstruct

Typedefs

typedef void *(* snapsvc_func_proto )(void *,...)
typedef void(* snap_svc_init )(void)
typedef void(* snap_svc_register )(char **, snapsvc_func_proto *, int *, int *)
typedef void *(* snap_svc_getlastresult )(void)
typedef void *(* snap_svc_free_local_returnstruct )(void)

Enumerations

enum  {
  SVC_SNMP_TYPE_NULL, SVC_SNMP_TYPE_INT, SVC_SNMP_TYPE_ADDR, SVC_SNMP_TYPE_STRING,
  SVC_SNMP_TYPE_LONG
}

Functions

void init ()
void fini ()
void snap_external_svclib_init ()
void snap_external_svclib_done ()
void snap_external_svclib_getnextfunc (char **, snapsvc_func_proto *, int *, int *)
svc_returnstructsnap_external_svclib_getlastresult ()
svc_returnstructsnap_external_svclib_free_returnstruct (struct svc_returnstruct *)
svc_returnstructsnap_external_svclib_free_local_returnstruct ()

Variables

unsigned int svc_fun_counter
svc_returnstructsvc_return

Typedef Documentation

typedef void*(* snap_svc_free_local_returnstruct)(void)
 

Definition at line 21 of file snap_svc.h.

typedef void*(* snap_svc_getlastresult)(void)
 

Definition at line 20 of file snap_svc.h.

typedef void(* snap_svc_init)(void)
 

Definition at line 18 of file snap_svc.h.

Referenced by snap_svc_registerlib(), and snap_svc_unregisterlib().

typedef void(* snap_svc_register)(char**, snapsvc_func_proto*, int*, int*)
 

Definition at line 19 of file snap_svc.h.

Referenced by snap_svc_registerlib().

typedef void*(* snapsvc_func_proto)(void*, ...)
 

if it doesn't use arguments you should create a dummy and set args=0

Definition at line 15 of file snap_svc.h.

Referenced by snap_external_svclib_getnextfunc(), snap_svc_registerlib(), and snap_svc_table_add().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
SVC_SNMP_TYPE_NULL 
SVC_SNMP_TYPE_INT 
SVC_SNMP_TYPE_ADDR 
SVC_SNMP_TYPE_STRING 
SVC_SNMP_TYPE_LONG 

Definition at line 24 of file snap_svc.h.


Function Documentation

void fini  
 

Definition at line 22 of file snap_svc.c.

References d_printf(), snap_external_svclib_done(), snap_external_svclib_free_returnstruct(), svc_fun_counter, and svc_return.

void init  
 

Definition at line 14 of file snap_svc.c.

References d_printf(), snap_external_svclib_init(), svc_fun_counter, and svc_return.

void snap_external_svclib_done  
 

Definition at line 39 of file snap_svc_if.c.

References d_printf().

Referenced by fini().

struct svc_returnstruct* snap_external_svclib_free_local_returnstruct  
 

Definition at line 54 of file snap_svc.c.

References snap_external_svclib_free_returnstruct().

Referenced by if_getallneighbours(), snap_external_svclib_snmp_getallotherneighboursfromip(), snap_external_svclib_snmp_getnexthopfromip(), and snap_external_svclib_snmp_INTERNAL_execpdu_handler().

struct svc_returnstruct* snap_external_svclib_free_returnstruct struct svc_returnstruct  
 

Definition at line 33 of file snap_svc.c.

References svc_returnitem::data, svc_returnstruct::length, svc_returnstruct::list, and svc_returnitem::oid.

Referenced by fini(), and snap_external_svclib_free_local_returnstruct().

struct svc_returnstruct* snap_external_svclib_getlastresult  
 

Definition at line 62 of file snap_svc.c.

void snap_external_svclib_getnextfunc char **   ,
snapsvc_func_proto  ,
int *   ,
int *   
 

Definition at line 53 of file snap_svc_if.c.

References snap_external_svclib_testfunc(), snap_external_svclib_testintfunc(), snap_external_svclib_teststrfunc(), snapsvc_func_proto, svc_fun_counter, and SVC_SNMP_TYPE_NULL.

void snap_external_svclib_init  
 

Definition at line 31 of file snap_svc_if.c.

References d_printf().

Referenced by init().


Variable Documentation

unsigned int svc_fun_counter
 

Definition at line 42 of file snap_svc.h.

Referenced by fini(), init(), and snap_external_svclib_getnextfunc().

struct svc_returnstruct* svc_return
 

Definition at line 43 of file snap_svc.h.

Referenced by fini(), if_getallneighbours(), init(), snap_external_svclib_snmp_getallotherneighboursfromip(), snap_external_svclib_snmp_gethop(), snap_external_svclib_snmp_getiface(), snap_external_svclib_snmp_getifnumber(), snap_external_svclib_snmp_getnexthopfromip(), snap_external_svclib_snmp_INTERNAL_execpdu_handler(), and snap_external_svclib_snmp_isupiface().