snmp_mpd_mib_impl.c
Go to the documentation of this file.
1 /**
2  * @file snmp_mpd_mib_impl.c
3  * @brief SNMP MPD 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  * @author Oryx Embedded SARL (www.oryx-embedded.com)
26  * @version 1.9.0
27  **/
28 
29 //Switch to the appropriate trace level
30 #define TRACE_LEVEL SNMP_TRACE_LEVEL
31 
32 //Dependencies
33 #include "core/net.h"
34 #include "mibs/mib_common.h"
36 #include "mibs/snmp_mpd_mib_impl.h"
37 #include "core/crypto.h"
38 #include "encoding/asn1.h"
39 #include "encoding/oid.h"
40 #include "debug.h"
41 
42 //Check TCP/IP stack configuration
43 #if (SNMP_MPD_MIB_SUPPORT == ENABLED)
44 
45 
46 /**
47  * @brief SNMP MPD MIB module initialization
48  * @return Error code
49  **/
50 
52 {
53  //Debug message
54  TRACE_INFO("Initializing SNMP MPD MIB base...\r\n");
55 
56  //Clear SNMP MPD MIB base
57  memset(&snmpMpdMibBase, 0, sizeof(snmpMpdMibBase));
58 
59  //Successful processing
60  return NO_ERROR;
61 }
62 
63 
64 /**
65  * @brief Load SNMP MPD MIB module
66  * @param[in] context Pointer to the SNMP agent context
67  * @return Error code
68  **/
69 
70 error_t snmpMpdMibLoad(void *context)
71 {
72  //Successful processing
73  return NO_ERROR;
74 }
75 
76 
77 /**
78  * @brief Unload SNMP MPD MIB module
79  * @param[in] context Pointer to the SNMP agent context
80  **/
81 
82 void snmpMpdMibUnload(void *context)
83 {
84 }
85 
86 
87 /**
88  * @brief Lock SNMP MPD MIB base
89  **/
90 
91 void snmpMpdMibLock(void)
92 {
93 }
94 
95 
96 /**
97  * @brief Unlock SNMP MPD MIB base
98  **/
99 
101 {
102 }
103 
104 #endif
void snmpMpdMibLock(void)
Lock SNMP MPD MIB base.
TCP/IP stack core.
SnmpMpdMibBase snmpMpdMibBase
SNMP MPD MIB base.
Debugging facilities.
General definitions for cryptographic algorithms.
error_t snmpMpdMibInit(void)
SNMP MPD MIB module initialization.
OID (Object Identifier)
SNMP MPD MIB module.
ASN.1 (Abstract Syntax Notation One)
error_t snmpMpdMibLoad(void *context)
Load SNMP MPD MIB module.
SNMP MPD MIB module implementation.
void snmpMpdMibUnload(void *context)
Unload SNMP MPD MIB module.
#define TRACE_INFO(...)
Definition: debug.h:86
Success.
Definition: error.h:42
error_t
Error codes.
Definition: error.h:40
Common definitions for MIB modules.
void snmpMpdMibUnlock(void)
Unlock SNMP MPD MIB base.