Contiki-NG
Macros | Typedefs | Functions
snmp-api.h File Reference

 The public API for the Contiki-NG SNMP implementation
More...

#include "snmp.h"
#include "snmp-mib.h"

Go to the source code of this file.

Macros

#define OID(name, ...)   static uint32_t name[] = { __VA_ARGS__, -1 };
 Initializes statically an oid with the "null" terminator. More...
 
#define MIB_RESOURCE(name, handler, ...)
 Declare a MIB resource. More...
 

Typedefs

typedef void(* snmp_mib_resource_handler_t) (snmp_varbind_t *varbind, uint32_t *oid)
 The MIB resource handler typedef. More...
 
typedef struct snmp_mib_resource_s snmp_mib_resource_t
 The MIB Resource struct.
 

Functions

void snmp_api_set_string (snmp_varbind_t *varbind, uint32_t *oid, char *string)
 Function to set a varbind with a string. More...
 
void snmp_api_set_time_ticks (snmp_varbind_t *varbind, uint32_t *oid, uint32_t integer)
 Function to set a varbind with a time tick. More...
 
void snmp_api_set_oid (snmp_varbind_t *varbind, uint32_t *oid, uint32_t *ret_oid)
 Function to set a varbind with a oid. More...
 
void snmp_api_add_resource (snmp_mib_resource_t *new_resource)
 Function to add a new resource. More...
 

Detailed Description

 The public API for the Contiki-NG SNMP implementation
Author
Yago Fontoura do Rosario <yago..nosp@m.rosa.nosp@m.rio@h.nosp@m.otma.nosp@m.il.co.nosp@m.m.br

Definition in file snmp-api.h.