mikroSDK Reference Manual
snmp_mib_impl.h
Go to the documentation of this file.
1
31#ifndef _SNMP_MIB_IMPL_H
32#define _SNMP_MIB_IMPL_H
33
34//Dependencies
35#include "mibs/mib_common.h"
36
37//C++ guard
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42//SNMP MIB related functions
43error_t snmpMibInit(void);
44error_t snmpMibLoad(void *context);
45void snmpMibUnload(void *context);
46void snmpMibLock(void);
47void snmpMibUnlock(void);
48
49error_t snmpMibGetSysDescr(const MibObject *object, const uint8_t *oid,
50 size_t oidLen, MibVariant *value, size_t *valueLen);
51
52error_t snmpMibGetSysObjectID(const MibObject *object, const uint8_t *oid,
53 size_t oidLen, MibVariant *value, size_t *valueLen);
54
55error_t snmpMibGetSysUpTime(const MibObject *object, const uint8_t *oid,
56 size_t oidLen, MibVariant *value, size_t *valueLen);
57
58error_t snmpMibSetSysContact(const MibObject *object, const uint8_t *oid,
59 size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit);
60
61error_t snmpMibGetSysContact(const MibObject *object, const uint8_t *oid,
62 size_t oidLen, MibVariant *value, size_t *valueLen);
63
64error_t snmpMibSetSysName(const MibObject *object, const uint8_t *oid,
65 size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit);
66
67error_t snmpMibGetSysName(const MibObject *object, const uint8_t *oid,
68 size_t oidLen, MibVariant *value, size_t *valueLen);
69
70error_t snmpMibSetSysLocation(const MibObject *object, const uint8_t *oid,
71 size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit);
72
73error_t snmpMibGetSysLocation(const MibObject *object, const uint8_t *oid,
74 size_t oidLen, MibVariant *value, size_t *valueLen);
75
76error_t snmpMibGetSysOREntry(const MibObject *object, const uint8_t *oid,
77 size_t oidLen, MibVariant *value, size_t *valueLen);
78
79error_t snmpMibGetNextSysOREntry(const MibObject *object, const uint8_t *oid,
80 size_t oidLen, uint8_t *nextOid, size_t *nextOidLen);
81
82error_t snmpv2MibGetSnmpTrapOID(const MibObject *object, const uint8_t *oid,
83 size_t oidLen, MibVariant *value, size_t *valueLen);
84
85error_t snmpv2MibGetSnmpTrapEnterprise(const MibObject *object, const uint8_t *oid,
86 size_t oidLen, MibVariant *value, size_t *valueLen);
87
88error_t snmpMibSetSnmpSetSerialNo(const MibObject *object, const uint8_t *oid,
89 size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit);
90
91error_t snmpMibGetSnmpSetSerialNo(const MibObject *object, const uint8_t *oid,
92 size_t oidLen, MibVariant *value, size_t *valueLen);
93
94//C++ guard
95#ifdef __cplusplus
96}
97#endif
98
99#endif
error_t
Error codes.
Definition error.h:43
Common definitions for MIB modules.