1 | /* |
---|
2 | * Note: this file originally auto-generated by mib2c using |
---|
3 | * version : 14170 $ of $ |
---|
4 | * |
---|
5 | * $Id:$ |
---|
6 | */ |
---|
7 | #ifndef SYN3STATISTICSTABLE_H |
---|
8 | #define SYN3STATISTICSTABLE_H |
---|
9 | |
---|
10 | #ifdef __cplusplus |
---|
11 | extern "C" { |
---|
12 | #endif |
---|
13 | |
---|
14 | |
---|
15 | /** @addtogroup misc misc: Miscellaneous routines |
---|
16 | * |
---|
17 | * @{ |
---|
18 | */ |
---|
19 | #include <net-snmp/library/asn1.h> |
---|
20 | |
---|
21 | /* other required module components */ |
---|
22 | /* *INDENT-OFF* */ |
---|
23 | config_add_mib(SYN3-MIB) |
---|
24 | config_require(SYN3-MIB/syn3StatisticsTable/syn3StatisticsTable_interface) |
---|
25 | config_require(SYN3-MIB/syn3StatisticsTable/syn3StatisticsTable_data_access) |
---|
26 | config_require(SYN3-MIB/syn3StatisticsTable/syn3StatisticsTable_data_get) |
---|
27 | config_require(SYN3-MIB/syn3StatisticsTable/syn3StatisticsTable_data_set) |
---|
28 | /* *INDENT-ON* */ |
---|
29 | |
---|
30 | /* OID and column number definitions for syn3StatisticsTable */ |
---|
31 | #include "syn3StatisticsTable_oids.h" |
---|
32 | |
---|
33 | /* enum definions */ |
---|
34 | #include "syn3StatisticsTable_enums.h" |
---|
35 | |
---|
36 | /* ********************************************************************* |
---|
37 | * function declarations |
---|
38 | */ |
---|
39 | void init_syn3StatisticsTable(void); |
---|
40 | void shutdown_syn3StatisticsTable(void); |
---|
41 | |
---|
42 | /* ********************************************************************* |
---|
43 | * Table declarations |
---|
44 | */ |
---|
45 | /********************************************************************** |
---|
46 | ********************************************************************** |
---|
47 | *** |
---|
48 | *** Table syn3StatisticsTable |
---|
49 | *** |
---|
50 | ********************************************************************** |
---|
51 | **********************************************************************/ |
---|
52 | /* |
---|
53 | * SYN3-MIB::syn3StatisticsTable is subid 1 of syn3Statistics. |
---|
54 | * Its status is Current. |
---|
55 | * OID: .1.3.6.1.4.1.31337.1.3.1, length: 10 |
---|
56 | */ |
---|
57 | /* ********************************************************************* |
---|
58 | * When you register your mib, you get to provide a generic |
---|
59 | * pointer that will be passed back to you for most of the |
---|
60 | * functions calls. |
---|
61 | * |
---|
62 | * TODO:100:r: Review all context structures |
---|
63 | */ |
---|
64 | /* |
---|
65 | * TODO:101:o: |-> Review syn3StatisticsTable registration context. |
---|
66 | */ |
---|
67 | typedef netsnmp_data_list syn3StatisticsTable_registration; |
---|
68 | |
---|
69 | /**********************************************************************/ |
---|
70 | /* |
---|
71 | * TODO:110:r: |-> Review syn3StatisticsTable data context structure. |
---|
72 | * This structure is used to represent the data for syn3StatisticsTable. |
---|
73 | */ |
---|
74 | /* |
---|
75 | * This structure contains storage for all the columns defined in the |
---|
76 | * syn3StatisticsTable. |
---|
77 | */ |
---|
78 | typedef struct syn3StatisticsTable_data_s { |
---|
79 | |
---|
80 | /* |
---|
81 | * syn3StatisticsValue1(2)/INTEGER32/ASN_INTEGER/long(long)//l/A/w/e/r/d/h |
---|
82 | */ |
---|
83 | long syn3StatisticsValue1; |
---|
84 | |
---|
85 | /* |
---|
86 | * syn3StatisticsValue2(3)/INTEGER32/ASN_INTEGER/long(long)//l/A/w/e/r/d/h |
---|
87 | */ |
---|
88 | long syn3StatisticsValue2; |
---|
89 | |
---|
90 | /* |
---|
91 | * syn3StatisticsValue3(4)/INTEGER32/ASN_INTEGER/long(long)//l/A/w/e/r/d/h |
---|
92 | */ |
---|
93 | long syn3StatisticsValue3; |
---|
94 | |
---|
95 | /* |
---|
96 | * syn3StatisticsValue4(5)/INTEGER32/ASN_INTEGER/long(long)//l/A/w/e/r/d/h |
---|
97 | */ |
---|
98 | long syn3StatisticsValue4; |
---|
99 | |
---|
100 | /* |
---|
101 | * syn3StatisticsValue5(6)/INTEGER32/ASN_INTEGER/long(long)//l/A/w/e/r/d/h |
---|
102 | */ |
---|
103 | long syn3StatisticsValue5; |
---|
104 | |
---|
105 | } syn3StatisticsTable_data; |
---|
106 | |
---|
107 | |
---|
108 | /* |
---|
109 | * TODO:120:r: |-> Review syn3StatisticsTable mib index. |
---|
110 | * This structure is used to represent the index for syn3StatisticsTable. |
---|
111 | */ |
---|
112 | typedef struct syn3StatisticsTable_mib_index_s { |
---|
113 | |
---|
114 | /* |
---|
115 | * syn3StatisticsName(1)/DisplayString/ASN_OCTET_STR/char(char)//L/A/w/e/R/d/H |
---|
116 | */ |
---|
117 | /** 128 - 0(other indexes) - oid length(12) = 115 */ |
---|
118 | char syn3StatisticsName[115]; |
---|
119 | size_t syn3StatisticsName_len; |
---|
120 | |
---|
121 | |
---|
122 | } syn3StatisticsTable_mib_index; |
---|
123 | |
---|
124 | /* |
---|
125 | * TODO:121:r: | |-> Review syn3StatisticsTable max index length. |
---|
126 | * If you KNOW that your indexes will never exceed a certain |
---|
127 | * length, update this macro to that length. |
---|
128 | * |
---|
129 | * BE VERY CAREFUL TO TAKE INTO ACCOUNT THE MAXIMUM |
---|
130 | * POSSIBLE LENGHT FOR EVERY VARIABLE LENGTH INDEX! |
---|
131 | * Guessing 128 - col/entry(2) - oid len(10) |
---|
132 | */ |
---|
133 | #define MAX_syn3StatisticsTable_IDX_LEN 116 |
---|
134 | |
---|
135 | |
---|
136 | /* ********************************************************************* |
---|
137 | * TODO:130:o: |-> Review syn3StatisticsTable Row request (rowreq) context. |
---|
138 | * When your functions are called, you will be passed a |
---|
139 | * syn3StatisticsTable_rowreq_ctx pointer. |
---|
140 | */ |
---|
141 | typedef struct syn3StatisticsTable_rowreq_ctx_s { |
---|
142 | |
---|
143 | /** this must be first for container compare to work */ |
---|
144 | netsnmp_index oid_idx; |
---|
145 | oid oid_tmp[MAX_syn3StatisticsTable_IDX_LEN]; |
---|
146 | |
---|
147 | syn3StatisticsTable_mib_index tbl_idx; |
---|
148 | |
---|
149 | syn3StatisticsTable_data data; |
---|
150 | |
---|
151 | /* |
---|
152 | * flags per row. Currently, the first (lower) 8 bits are reserved |
---|
153 | * for the user. See mfd.h for other flags. |
---|
154 | */ |
---|
155 | u_int rowreq_flags; |
---|
156 | |
---|
157 | /* |
---|
158 | * TODO:131:o: | |-> Add useful data to syn3StatisticsTable rowreq context. |
---|
159 | */ |
---|
160 | |
---|
161 | /* |
---|
162 | * storage for future expansion |
---|
163 | */ |
---|
164 | netsnmp_data_list *syn3StatisticsTable_data_list; |
---|
165 | |
---|
166 | } syn3StatisticsTable_rowreq_ctx; |
---|
167 | |
---|
168 | typedef struct syn3StatisticsTable_ref_rowreq_ctx_s { |
---|
169 | syn3StatisticsTable_rowreq_ctx *rowreq_ctx; |
---|
170 | } syn3StatisticsTable_ref_rowreq_ctx; |
---|
171 | |
---|
172 | /* ********************************************************************* |
---|
173 | * function prototypes |
---|
174 | */ |
---|
175 | int syn3StatisticsTable_pre_request(syn3StatisticsTable_registration * user_context); |
---|
176 | int syn3StatisticsTable_post_request(syn3StatisticsTable_registration * user_context, |
---|
177 | int rc); |
---|
178 | |
---|
179 | int syn3StatisticsTable_rowreq_ctx_init(syn3StatisticsTable_rowreq_ctx *rowreq_ctx, |
---|
180 | void *user_init_ctx); |
---|
181 | void syn3StatisticsTable_rowreq_ctx_cleanup(syn3StatisticsTable_rowreq_ctx *rowreq_ctx); |
---|
182 | |
---|
183 | |
---|
184 | syn3StatisticsTable_rowreq_ctx * |
---|
185 | syn3StatisticsTable_row_find_by_mib_index(syn3StatisticsTable_mib_index *mib_idx); |
---|
186 | |
---|
187 | extern oid syn3StatisticsTable_oid[]; |
---|
188 | extern int syn3StatisticsTable_oid_size; |
---|
189 | |
---|
190 | |
---|
191 | #include "syn3StatisticsTable_interface.h" |
---|
192 | #include "syn3StatisticsTable_data_access.h" |
---|
193 | #include "syn3StatisticsTable_data_get.h" |
---|
194 | #include "syn3StatisticsTable_data_set.h" |
---|
195 | |
---|
196 | /* |
---|
197 | * DUMMY markers, ignore |
---|
198 | * |
---|
199 | * TODO:099:x: ************************************************************* |
---|
200 | * TODO:199:x: ************************************************************* |
---|
201 | * TODO:299:x: ************************************************************* |
---|
202 | * TODO:399:x: ************************************************************* |
---|
203 | * TODO:499:x: ************************************************************* |
---|
204 | */ |
---|
205 | |
---|
206 | #ifdef __cplusplus |
---|
207 | } |
---|
208 | #endif |
---|
209 | |
---|
210 | #endif /* SYN3STATISTICSTABLE_H */ |
---|
211 | /** @} */ |
---|