Debian Codegraph @

agent/mibgroup/if-mib/ifXTable/ifXTable_data_access.c

raw
1 /*
2 * Note: this file originally auto-generated by mib2c using
3 * version : 1.17 $ of : mfd-data-access.m2c,v $
4 *
5 * $Id$
6 */
7 /*
8 * standard Net-SNMP includes
9 */
10 #include <net-snmp/net-snmp-config.h>
11 #include <net-snmp/net-snmp-includes.h>
12 #include <net-snmp/agent/net-snmp-agent-includes.h>
13
14 /*
15 * include our parent header
16 */
17 #include "ifXTable.h"
18
19
20 #include "ifXTable_data_access.h"
21 #include "if-mib/ifTable/ifTable_defs.h"
22
23 /** @ingroup interface
24 * @addtogroup data_access data_access: Routines to access data
25 *
26 * These routines are used to locate the data used to satisfy
27 * requests.
28 *
29 * @{
30 */
31 /**********************************************************************
32 **********************************************************************
33 ***
34 *** Table ifXTable
35 ***
36 **********************************************************************
37 **********************************************************************/
38 /*
39 * IF-MIB::ifXTable is subid 1 of ifMIBObjects.
40 * Its status is Current.
41 * OID: .1.3.6.1.2.1.31.1.1, length: 9
42 */
43
44 /**
45 * initialization for ifXTable data access
46 *
47 * This function is called during startup to allow you to
48 * allocate any resources you need for the data table.
49 *
50 * @param ifXTable_reg
51 * Pointer to ifXTable_registration
52 *
53 * @retval MFD_SUCCESS : success.
54 * @retval MFD_ERROR : unrecoverable error.
55 */
56 int
57 ifXTable_init_data(ifXTable_registration * ifXTable_reg)
58 {
59 DEBUGMSGTL(("verbose:ifXTable:ifXTable_init_data", "called\n"));
60
61 /*
62 * TODO:303:o: Initialize ifXTable data.
63 */
64
65 return MFD_SUCCESS;
66 } /* ifXTable_init_data */
67
68 /**
69 * container overview
70 *
71 * N/A; we use the ifTable container
72 */
73
74
75 /**
76 * prepare row for processing.
77 *
78 * When the agent has located the row for a request, this function is
79 * called to prepare the row for processing. If you fully populated
80 * the data context during the index setup phase, you may not need to
81 * do anything.
82 *
83 * @param rowreq_ctx pointer to a context.
84 *
85 * @retval MFD_SUCCESS : success.
86 * @retval MFD_ERROR : other error.
87 */
88 int
89 ifXTable_row_prep(ifXTable_rowreq_ctx * rowreq_ctx)
90 {
91 DEBUGMSGTL(("verbose:ifXTable:ifXTable_row_prep", "called\n"));
92
93 netsnmp_assert(NULL != rowreq_ctx);
94
95 /*
96 * TODO:390:o: Prepare row for request.
97 * If populating row data was delayed, this is the place to
98 * fill in the row for this request.
99 */
100
101 return MFD_SUCCESS;
102 } /* ifXTable_row_prep */
103
104 /** @} */