C/C++ Reference
WnmpModule Struct Reference

The WNMP module class. More...

#include <wnmp.h>

Collaboration diagram for WnmpModule:

List of all members.

Public Member Functions

 WnmpModule (const WnmpField *fields, const WnmpFieldDefinition *definitions, WnmpGetFunc get, WnmpSetFunc set)
 Initializes a WNMP module.

Public Attributes

struct WnmpModulenext
 The next module in the linked list of modules.
const WnmpFieldfields
 The array of fields.
const WnmpFieldDefinitiondefinitions
 The array of field definitions.
WnmpGetFunc get
 The pointer to the get value function.
WnmpSetFunc set
 The pointer to the set value function.

Detailed Description

The WNMP module class.

A WNMP module roughly corresponds to an SNMP MIB, although the correlation does not have to be one-to-one.


Member Data Documentation

The array of field definitions.

This array must be terminated by a field definition having id equal to zero (0). The list of field definitions will only be considered for enumeration and bitset types.

The array of fields.

This array must be terminated by a field having id equal to zero (0).

The pointer to the get value function.

This is a callback function that returns the current value for a specific field.

The pointer to the set value function.

This is a callback function that modifies the value for a specific field.