Debian Codegraph @

agent/mibgroup/snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable.h

raw
1 /*
2 * Note: this file originally auto-generated by mib2c using
3 * version : 1.48 $ of : mfd-top.m2c,v $
4 *
5 * $Id$
6 */
7 #ifndef USMDHUSERKEYTABLE_H
8 #define USMDHUSERKEYTABLE_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 /*
22 * other required module components
23 */
24 /* *INDENT-OFF* */
25 config_require(snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable_interface);
26 config_require(snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable_data_access);
27 config_require(snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable_data_get);
28 config_require(snmp-usm-dh-objects-mib/usmDHUserKeyTable/usmDHUserKeyTable_data_set);
29 /* *INDENT-ON* */
30
31 /*
32 * OID and column number definitions for usmDHUserKeyTable
33 */
34 #include "usmDHUserKeyTable_oids.h"
35
36 /*
37 * enum definions
38 */
39 #include "usmDHUserKeyTable_enums.h"
40
41 /*
42 *********************************************************************
43 * function declarations
44 */
45 void init_usmDHUserKeyTable(void);
46 void shutdown_usmDHUserKeyTable(void);
47
48 /*
49 *********************************************************************
50 * Table declarations
51 */
52 /**********************************************************************
53 **********************************************************************
54 ***
55 *** Table usmDHUserKeyTable
56 ***
57 **********************************************************************
58 **********************************************************************/
59 /*
60 * SNMP-USM-DH-OBJECTS-MIB::usmDHUserKeyTable is subid 2 of usmDHPublicObjects.
61 * Its status is Current.
62 * OID: .1.3.6.1.3.101.1.1.2, length: 9
63 */
64 /*
65 *********************************************************************
66 * When you register your mib, you get to provide a generic
67 * pointer that will be passed back to you for most of the
68 * functions calls.
69 *
70 * TODO:100:r: Review all context structures
71 */
72 /*
73 * TODO:101:o: |-> Review usmDHUserKeyTable registration context.
74 */
75 typedef struct usmUser *usmDHUserKeyTable_registration;
76
77 /**********************************************************************/
78 /*
79 * TODO:110:r: |-> Review usmDHUserKeyTable data context structure.
80 * This structure is used to represent the data for usmDHUserKeyTable.
81 */
82 typedef struct usmUser usmDHUserKeyTable_data;
83
84
85 /*
86 *********************************************************************
87 * TODO:115:o: |-> Review usmDHUserKeyTable undo context.
88 * We're just going to use the same data structure for our
89 * undo_context. If you want to do something more efficent,
90 * define your typedef here.
91 */
92 typedef usmDHUserKeyTable_data usmDHUserKeyTable_undo_data;
93
94 /*
95 * TODO:120:r: |-> Review usmDHUserKeyTable mib index.
96 * This structure is used to represent the index for usmDHUserKeyTable.
97 */
98 typedef struct usmDHUserKeyTable_mib_index_s {
99
100 /*
101 * usmUserEngineID(1)/SnmpEngineID/ASN_OCTET_STR/char(char)//L/a/w/e/R/d/h
102 */
103 char usmUserEngineID[32];
104 size_t usmUserEngineID_len;
105
106 /*
107 * usmUserName(2)/SnmpAdminString/ASN_OCTET_STR/char(char)//L/a/w/e/R/d/H
108 */
109 char usmUserName[32];
110 size_t usmUserName_len;
111
112
113 } usmDHUserKeyTable_mib_index;
114
115 /*
116 * TODO:121:r: | |-> Review usmDHUserKeyTable max index length.
117 * If you KNOW that your indexes will never exceed a certain
118 * length, update this macro to that length.
119 *
120 * BE VERY CAREFUL TO TAKE INTO ACCOUNT THE MAXIMUM
121 * POSSIBLE LENGHT FOR EVERY VARIABLE LENGTH INDEX!
122 * Guessing 128 - col/entry(2) - oid len(9)
123 */
124 #define MAX_usmDHUserKeyTable_IDX_LEN 66
125
126
127 /*
128 *********************************************************************
129 * TODO:130:o: |-> Review usmDHUserKeyTable Row request (rowreq) context.
130 * When your functions are called, you will be passed a
131 * usmDHUserKeyTable_rowreq_ctx pointer.
132 */
133 typedef struct usmDHUserKeyTable_rowreq_ctx_s {
134
135 /** this must be first for container compare to work */
136 netsnmp_index oid_idx;
137 oid oid_tmp[MAX_usmDHUserKeyTable_IDX_LEN];
138
139 usmDHUserKeyTable_mib_index tbl_idx;
140
141 usmDHUserKeyTable_data *data;
142 usmDHUserKeyTable_undo_data *undo;
143 unsigned int column_set_flags; /* flags for set columns */
144
145
146 /*
147 * flags per row. Currently, the first (lower) 8 bits are reserved
148 * for the user. See mfd.h for other flags.
149 */
150 u_int rowreq_flags;
151
152 /*
153 * TODO:131:o: | |-> Add useful data to usmDHUserKeyTable rowreq context.
154 */
155
156 /*
157 * storage for future expansion
158 */
159 netsnmp_data_list *usmDHUserKeyTable_data_list;
160
161 } usmDHUserKeyTable_rowreq_ctx;
162
163 typedef struct usmDHUserKeyTable_ref_rowreq_ctx_s {
164 usmDHUserKeyTable_rowreq_ctx *rowreq_ctx;
165 } usmDHUserKeyTable_ref_rowreq_ctx;
166
167 /*
168 *********************************************************************
169 * function prototypes
170 */
171 int
172 usmDHUserKeyTable_pre_request(usmDHUserKeyTable_registration *
173 user_context);
174 int
175 usmDHUserKeyTable_post_request(usmDHUserKeyTable_registration *
176 user_context, int rc);
177
178 int
179 usmDHUserKeyTable_rowreq_ctx_init(usmDHUserKeyTable_rowreq_ctx *
180 rowreq_ctx, void *user_init_ctx);
181 void
182 usmDHUserKeyTable_rowreq_ctx_cleanup(usmDHUserKeyTable_rowreq_ctx *
183 rowreq_ctx);
184
185 usmDHUserKeyTable_data *usmDHUserKeyTable_allocate_data(void);
186 void usmDHUserKeyTable_release_data(usmDHUserKeyTable_data *
187 data);
188 int usmDHUserKeyTable_commit(usmDHUserKeyTable_rowreq_ctx *
189 rowreq_ctx);
190 usmDHUserKeyTable_rowreq_ctx
191 *usmDHUserKeyTable_row_find_by_mib_index
192 (usmDHUserKeyTable_mib_index * mib_idx);
193
194 extern const oid usmDHUserKeyTable_oid[];
195 extern const int usmDHUserKeyTable_oid_size;
196
197
198 #include "usmDHUserKeyTable_interface.h"
199 #include "usmDHUserKeyTable_data_access.h"
200 #include "usmDHUserKeyTable_data_get.h"
201 #include "usmDHUserKeyTable_data_set.h"
202
203 /*
204 * DUMMY markers, ignore
205 *
206 * TODO:099:x: *************************************************************
207 * TODO:199:x: *************************************************************
208 * TODO:299:x: *************************************************************
209 * TODO:399:x: *************************************************************
210 * TODO:499:x: *************************************************************
211 */
212
213 #ifdef __cplusplus
214 }
215 #endif
216 #endif /* USMDHUSERKEYTABLE_H */
217 /** @} */
218