1 | /* |
---|
2 | * Note: this file originally auto-generated by mib2c using |
---|
3 | * version : 14170 $ of $ |
---|
4 | * |
---|
5 | * $Id:$ |
---|
6 | */ |
---|
7 | #ifndef SYN3FACILITIESTABLE_H |
---|
8 | #define SYN3FACILITIESTABLE_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/syn3FacilitiesTable/syn3FacilitiesTable_interface) |
---|
25 | config_require(SYN3-MIB/syn3FacilitiesTable/syn3FacilitiesTable_data_access) |
---|
26 | config_require(SYN3-MIB/syn3FacilitiesTable/syn3FacilitiesTable_data_get) |
---|
27 | config_require(SYN3-MIB/syn3FacilitiesTable/syn3FacilitiesTable_data_set) |
---|
28 | /* *INDENT-ON* */ |
---|
29 | |
---|
30 | /* OID and column number definitions for syn3FacilitiesTable */ |
---|
31 | #include "syn3FacilitiesTable_oids.h" |
---|
32 | |
---|
33 | /* enum definions */ |
---|
34 | #include "syn3FacilitiesTable_enums.h" |
---|
35 | |
---|
36 | /* ********************************************************************* |
---|
37 | * function declarations |
---|
38 | */ |
---|
39 | void init_syn3FacilitiesTable(void); |
---|
40 | void shutdown_syn3FacilitiesTable(void); |
---|
41 | |
---|
42 | /* ********************************************************************* |
---|
43 | * Table declarations |
---|
44 | */ |
---|
45 | /********************************************************************** |
---|
46 | ********************************************************************** |
---|
47 | *** |
---|
48 | *** Table syn3FacilitiesTable |
---|
49 | *** |
---|
50 | ********************************************************************** |
---|
51 | **********************************************************************/ |
---|
52 | /* |
---|
53 | * SYN3-MIB::syn3FacilitiesTable is subid 1 of syn3Facilities. |
---|
54 | * Its status is Current. |
---|
55 | * OID: .1.3.6.1.4.1.31337.1.2.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 syn3FacilitiesTable registration context. |
---|
66 | */ |
---|
67 | typedef netsnmp_data_list syn3FacilitiesTable_registration; |
---|
68 | |
---|
69 | /**********************************************************************/ |
---|
70 | /* |
---|
71 | * TODO:110:r: |-> Review syn3FacilitiesTable data context structure. |
---|
72 | * This structure is used to represent the data for syn3FacilitiesTable. |
---|
73 | */ |
---|
74 | /* |
---|
75 | * This structure contains storage for all the columns defined in the |
---|
76 | * syn3FacilitiesTable. |
---|
77 | */ |
---|
78 | typedef struct syn3FacilitiesTable_data_s { |
---|
79 | |
---|
80 | /* |
---|
81 | * syn3FacilityStatus(2)/DisplayString/ASN_OCTET_STR/char(char)//L/A/w/e/R/d/H |
---|
82 | */ |
---|
83 | char syn3FacilityStatus[255]; |
---|
84 | size_t syn3FacilityStatus_len; /* # of char elements, not bytes */ |
---|
85 | |
---|
86 | /* |
---|
87 | * syn3FacilityDescription(3)/DisplayString/ASN_OCTET_STR/char(char)//L/A/w/e/R/d/H |
---|
88 | */ |
---|
89 | char syn3FacilityDescription[255]; |
---|
90 | size_t syn3FacilityDescription_len; /* # of char elements, not bytes */ |
---|
91 | |
---|
92 | /* |
---|
93 | * syn3FacilityAck(4)/DisplayString/ASN_OCTET_STR/char(char)//L/A/w/e/R/d/H |
---|
94 | */ |
---|
95 | char syn3FacilityAck[255]; |
---|
96 | size_t syn3FacilityAck_len; /* # of char elements, not bytes */ |
---|
97 | |
---|
98 | } syn3FacilitiesTable_data; |
---|
99 | |
---|
100 | |
---|
101 | /* |
---|
102 | * TODO:120:r: |-> Review syn3FacilitiesTable mib index. |
---|
103 | * This structure is used to represent the index for syn3FacilitiesTable. |
---|
104 | */ |
---|
105 | typedef struct syn3FacilitiesTable_mib_index_s { |
---|
106 | |
---|
107 | /* |
---|
108 | * syn3FacilityName(1)/DisplayString/ASN_OCTET_STR/char(char)//L/A/w/e/R/d/H |
---|
109 | */ |
---|
110 | /** 128 - 0(other indexes) - oid length(12) = 115 */ |
---|
111 | char syn3FacilityName[115]; |
---|
112 | size_t syn3FacilityName_len; |
---|
113 | |
---|
114 | |
---|
115 | } syn3FacilitiesTable_mib_index; |
---|
116 | |
---|
117 | /* |
---|
118 | * TODO:121:r: | |-> Review syn3FacilitiesTable max index length. |
---|
119 | * If you KNOW that your indexes will never exceed a certain |
---|
120 | * length, update this macro to that length. |
---|
121 | * |
---|
122 | * BE VERY CAREFUL TO TAKE INTO ACCOUNT THE MAXIMUM |
---|
123 | * POSSIBLE LENGHT FOR EVERY VARIABLE LENGTH INDEX! |
---|
124 | * Guessing 128 - col/entry(2) - oid len(10) |
---|
125 | */ |
---|
126 | #define MAX_syn3FacilitiesTable_IDX_LEN 116 |
---|
127 | |
---|
128 | |
---|
129 | /* ********************************************************************* |
---|
130 | * TODO:130:o: |-> Review syn3FacilitiesTable Row request (rowreq) context. |
---|
131 | * When your functions are called, you will be passed a |
---|
132 | * syn3FacilitiesTable_rowreq_ctx pointer. |
---|
133 | */ |
---|
134 | typedef struct syn3FacilitiesTable_rowreq_ctx_s { |
---|
135 | |
---|
136 | /** this must be first for container compare to work */ |
---|
137 | netsnmp_index oid_idx; |
---|
138 | oid oid_tmp[MAX_syn3FacilitiesTable_IDX_LEN]; |
---|
139 | |
---|
140 | syn3FacilitiesTable_mib_index tbl_idx; |
---|
141 | |
---|
142 | syn3FacilitiesTable_data data; |
---|
143 | |
---|
144 | /* |
---|
145 | * flags per row. Currently, the first (lower) 8 bits are reserved |
---|
146 | * for the user. See mfd.h for other flags. |
---|
147 | */ |
---|
148 | u_int rowreq_flags; |
---|
149 | |
---|
150 | /* |
---|
151 | * TODO:131:o: | |-> Add useful data to syn3FacilitiesTable rowreq context. |
---|
152 | */ |
---|
153 | |
---|
154 | /* |
---|
155 | * storage for future expansion |
---|
156 | */ |
---|
157 | netsnmp_data_list *syn3FacilitiesTable_data_list; |
---|
158 | |
---|
159 | } syn3FacilitiesTable_rowreq_ctx; |
---|
160 | |
---|
161 | typedef struct syn3FacilitiesTable_ref_rowreq_ctx_s { |
---|
162 | syn3FacilitiesTable_rowreq_ctx *rowreq_ctx; |
---|
163 | } syn3FacilitiesTable_ref_rowreq_ctx; |
---|
164 | |
---|
165 | /* ********************************************************************* |
---|
166 | * function prototypes |
---|
167 | */ |
---|
168 | int syn3FacilitiesTable_pre_request(syn3FacilitiesTable_registration * user_context); |
---|
169 | int syn3FacilitiesTable_post_request(syn3FacilitiesTable_registration * user_context, |
---|
170 | int rc); |
---|
171 | |
---|
172 | int syn3FacilitiesTable_rowreq_ctx_init(syn3FacilitiesTable_rowreq_ctx *rowreq_ctx, |
---|
173 | void *user_init_ctx); |
---|
174 | void syn3FacilitiesTable_rowreq_ctx_cleanup(syn3FacilitiesTable_rowreq_ctx *rowreq_ctx); |
---|
175 | |
---|
176 | |
---|
177 | syn3FacilitiesTable_rowreq_ctx * |
---|
178 | syn3FacilitiesTable_row_find_by_mib_index(syn3FacilitiesTable_mib_index *mib_idx); |
---|
179 | |
---|
180 | extern oid syn3FacilitiesTable_oid[]; |
---|
181 | extern int syn3FacilitiesTable_oid_size; |
---|
182 | |
---|
183 | |
---|
184 | #include "syn3FacilitiesTable_interface.h" |
---|
185 | #include "syn3FacilitiesTable_data_access.h" |
---|
186 | #include "syn3FacilitiesTable_data_get.h" |
---|
187 | #include "syn3FacilitiesTable_data_set.h" |
---|
188 | |
---|
189 | /* |
---|
190 | * DUMMY markers, ignore |
---|
191 | * |
---|
192 | * TODO:099:x: ************************************************************* |
---|
193 | * TODO:199:x: ************************************************************* |
---|
194 | * TODO:299:x: ************************************************************* |
---|
195 | * TODO:399:x: ************************************************************* |
---|
196 | * TODO:499:x: ************************************************************* |
---|
197 | */ |
---|
198 | |
---|
199 | #ifdef __cplusplus |
---|
200 | } |
---|
201 | #endif |
---|
202 | |
---|
203 | #endif /* SYN3FACILITIESTABLE_H */ |
---|
204 | /** @} */ |
---|