snmp_community_mib_impl.h
Go to the documentation of this file.
1 /**
2  * @file snmp_community_mib_impl.h
3  * @brief SNMP COMMUNITY MIB module implementation
4  *
5  * @section License
6  *
7  * Copyright (C) 2010-2018 Oryx Embedded SARL. All rights reserved.
8  *
9  * This file is part of CycloneTCP Open.
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software Foundation,
23  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24  *
25  * @section Description
26  *
27  * The SNMP-MIB describes managed objects which describe the behavior
28  * of an SNMP entity. Refer to RFC 3418 for more details
29  *
30  * @author Oryx Embedded SARL (www.oryx-embedded.com)
31  * @version 1.9.0
32  **/
33 
34 #ifndef _SNMP_COMMUNITY_MIB_IMPL_H
35 #define _SNMP_COMMUNITY_MIB_IMPL_H
36 
37 //Dependencies
38 #include "mibs/mib_common.h"
39 
40 //C++ guard
41 #ifdef __cplusplus
42  extern "C" {
43 #endif
44 
45 //SNMP COMMUNITY MIB related functions
47 error_t snmpCommunityMibLoad(void *context);
48 void snmpCommunityMibUnload(void *context);
49 void snmpCommunityMibLock(void);
50 void snmpCommunityMibUnlock(void);
51 
52 error_t snmpCommunityMibSetCommunityEntry(const MibObject *object, const uint8_t *oid,
53  size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit);
54 
55 error_t snmpCommunityMibGetCommunityEntry(const MibObject *object, const uint8_t *oid,
56  size_t oidLen, MibVariant *value, size_t *valueLen);
57 
58 error_t snmpCommunityMibGetNextCommunityEntry(const MibObject *object, const uint8_t *oid,
59  size_t oidLen, uint8_t *nextOid, size_t *nextOidLen);
60 
61 //C++ guard
62 #ifdef __cplusplus
63  }
64 #endif
65 
66 #endif
void snmpCommunityMibLock(void)
Lock SNMP COMMUNITY MIB base.
error_t snmpCommunityMibGetNextCommunityEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next snmpCommunityEntry object.
#define MibObject
Definition: mib_common.h:44
error_t snmpCommunityMibLoad(void *context)
Load SNMP COMMUNITY MIB module.
error_t snmpCommunityMibSetCommunityEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set snmpCommunityEntry object value.
error_t
Error codes.
Definition: error.h:40
__start_packed struct @208 MibVariant
Variant data type.
error_t snmpCommunityMibInit(void)
SNMP COMMUNITY MIB module initialization.
void snmpCommunityMibUnload(void *context)
Unload SNMP COMMUNITY MIB module.
uint8_t value[]
Definition: dtls_misc.h:141
Common definitions for MIB modules.
void snmpCommunityMibUnlock(void)
Unlock SNMP COMMUNITY MIB base.
error_t snmpCommunityMibGetCommunityEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get snmpCommunityEntry object value.
uint8_t oid[1]
Definition: mib_common.h:184
int bool_t
Definition: compiler_port.h:47