194
191
\fBdata_set.c\fP.
196
193
Definition at line 62 of file table_data.c.
198
References SNMP_MALLOC_TYPEDEF.
200
Referenced by netsnmp_config_parse_add_row(), and netsnmp_table_data_set_create_row_from_defaults().
201
194
.SS "\fBnetsnmp_table_data\fP* netsnmp_extract_table (\fBnetsnmp_request_info\fP * request)"
203
196
extracts the table being accessed passed from the table_data helper
205
Definition at line 649 of file table_data.c.
207
References netsnmp_request_get_list_data().
198
Definition at line 653 of file table_data.c.
208
199
.SS "\fBnetsnmp_table_row\fP* netsnmp_extract_table_row (\fBnetsnmp_request_info\fP * request)"
210
201
extracts the row being accessed passed from the table_data helper
212
Definition at line 657 of file table_data.c.
214
References netsnmp_request_get_list_data().
216
Referenced by netsnmp_extract_table_row_data(), and netsnmp_table_data_set_helper_handler().
203
Definition at line 661 of file table_data.c.
217
204
.SS "void* netsnmp_extract_table_row_data (\fBnetsnmp_request_info\fP * request)"
219
206
extracts the data from the row being accessed passed from the table_data helper
221
Definition at line 666 of file table_data.c.
223
References netsnmp_table_row_s::data, netsnmp_extract_table_row(), and NULL.
225
Referenced by netsnmp_extract_table_data_set_column().
208
Definition at line 670 of file table_data.c.
226
209
.SS "\fBnetsnmp_mib_handler\fP* netsnmp_get_table_data_handler (\fBnetsnmp_table_data\fP * table)"
228
211
Creates a table_data handler and returns it.
230
Definition at line 371 of file table_data.c.
232
References netsnmp_mib_handler_s::flags, MIB_HANDLER_AUTO_NEXT, netsnmp_mib_handler_s::myvoid, netsnmp_create_handler(), netsnmp_table_data_helper_handler(), NULL, and snmp_log().
234
Referenced by netsnmp_register_table_data().
213
Definition at line 375 of file table_data.c.
235
214
.SS "NETSNMP_INLINE void netsnmp_insert_table_row (\fBnetsnmp_request_info\fP * request, \fBnetsnmp_table_row\fP * row)"
237
216
inserts a newly created table_data row into a request
239
Definition at line 678 of file table_data.c.
241
References build_oid_noalloc(), netsnmp_table_request_info_s::indexes, netsnmp_create_data_list(), netsnmp_extract_table_info(), netsnmp_request_add_list_data(), netsnmp_request_info_s::next, NULL, netsnmp_request_info_s::prev, and snmp_oid_compare().
218
Definition at line 682 of file table_data.c.
242
219
.SS "int netsnmp_register_read_only_table_data (\fBnetsnmp_handler_registration\fP * reginfo, \fBnetsnmp_table_data\fP * table, \fBnetsnmp_table_registration_info\fP * table_info)"
244
221
registers a handler as a read-only data table If table_info != NULL, it registers it as a normal table too.
246
Definition at line 405 of file table_data.c.
248
References netsnmp_get_read_only_handler(), netsnmp_inject_handler(), and netsnmp_register_table_data().
223
Definition at line 409 of file table_data.c.
249
224
.SS "int netsnmp_register_table_data (\fBnetsnmp_handler_registration\fP * reginfo, \fBnetsnmp_table_data\fP * table, \fBnetsnmp_table_registration_info\fP * table_info)"
251
registers a handler as a data table.
253
If table_info != NULL, it registers it as a normal table too.
255
Definition at line 394 of file table_data.c.
257
References netsnmp_get_table_data_handler(), netsnmp_inject_handler(), and netsnmp_register_table().
259
Referenced by netsnmp_register_read_only_table_data(), and netsnmp_register_table_data_set().
226
registers a handler as a data table. If table_info != NULL, it registers it as a normal table too.
228
Definition at line 398 of file table_data.c.
260
229
.SS "int netsnmp_table_data_add_row (\fBnetsnmp_table_data\fP * table, \fBnetsnmp_table_row\fP * row)"
262
Adds a row of data to a given table (stored in proper lexographical order).
264
returns SNMPERR_SUCCESS on successful addition. or SNMPERR_GENERR on failure (E.G., indexes already existed)
231
Adds a row of data to a given table (stored in proper lexographical order). returns SNMPERR_SUCCESS on successful addition. or SNMPERR_GENERR on failure (E.G., indexes already existed)
266
233
xxx-rks: remove invalid row?
268
Definition at line 130 of file table_data.c.
270
References netsnmp_table_data_s::first_row, netsnmp_table_row_s::index_oid, netsnmp_table_row_s::index_oid_len, netsnmp_table_row_s::indexes, netsnmp_table_data_s::last_row, netsnmp_table_data_s::name, netsnmp_table_data_generate_index_oid(), netsnmp_table_row_s::next, NULL, netsnmp_table_row_s::prev, snmp_free_varbind(), snmp_log(), snmp_oid_compare(), and netsnmp_table_data_s::store_indexes.
272
Referenced by netsnmp_config_parse_add_row(), netsnmp_table_data_replace_row(), and netsnmp_table_dataset_add_row().
235
Definition at line 134 of file table_data.c.
273
236
.SS "\fBnetsnmp_table_row\fP* netsnmp_table_data_clone_row (\fBnetsnmp_table_row\fP * row)"
277
DOES NOT CLONE THE CONTAINED DATA.
238
clones a data row. DOES NOT CLONE THE CONTAINED DATA.
279
240
Definition at line 70 of file table_data.c.
281
References memdup(), NULL, and snmp_clone_varbind().
283
Referenced by netsnmp_table_data_set_clone_row().
284
241
.SS "void* netsnmp_table_data_delete_row (\fBnetsnmp_table_row\fP * row)"
286
deletes a row's memory.
288
returns the void data that it doesn't know how to delete.
290
Definition at line 101 of file table_data.c.
292
References netsnmp_table_row_s::data, netsnmp_table_row_s::index_oid, netsnmp_table_row_s::indexes, NULL, SNMP_FREE, and snmp_free_varbind().
294
Referenced by netsnmp_table_data_delete_table(), netsnmp_table_data_remove_and_delete_row(), and netsnmp_table_dataset_delete_row().
243
deletes a row's memory. returns the void data that it doesn't know how to delete.
245
Definition at line 105 of file table_data.c.
295
246
.SS "\fBnetsnmp_table_row\fP* netsnmp_table_data_get (\fBnetsnmp_table_data\fP * table, \fBnetsnmp_variable_list\fP * indexes)"
297
248
finds the data in 'datalist' stored at 'indexes'
299
Definition at line 804 of file table_data.c.
301
References build_oid_noalloc(), netsnmp_table_data_get_from_oid(), and NULL.
303
Referenced by netsnmp_table_data_row_get_byidx().
250
Definition at line 808 of file table_data.c.
304
251
.SS "\fBnetsnmp_table_row\fP* netsnmp_table_data_get_first_row (\fBnetsnmp_table_data\fP * table)"
306
253
returns the first row in the table
308
Definition at line 785 of file table_data.c.
310
References netsnmp_table_data_s::first_row, and NULL.
312
Referenced by netsnmp_table_data_entry_first(), netsnmp_table_data_row_first(), and netsnmp_table_data_set_get_first_row().
255
Definition at line 789 of file table_data.c.
313
256
.SS "\fBnetsnmp_table_row\fP* netsnmp_table_data_get_from_oid (\fBnetsnmp_table_data\fP * table, oid * searchfor, size_t searchfor_len)"
315
258
finds the data in 'datalist' stored at the searchfor oid
317
Definition at line 818 of file table_data.c.
319
References netsnmp_table_data_s::first_row, netsnmp_table_row_s::index_oid, netsnmp_table_row_s::index_oid_len, netsnmp_table_row_s::next, NULL, and snmp_oid_compare().
321
Referenced by netsnmp_table_data_get(), netsnmp_table_data_row_get(), and netsnmp_table_data_row_get_byoid().
260
Definition at line 822 of file table_data.c.
322
261
.SS "\fBnetsnmp_table_row\fP* netsnmp_table_data_get_next_row (\fBnetsnmp_table_data\fP * table, \fBnetsnmp_table_row\fP * row)"
324
263
returns the next row in the table
326
Definition at line 794 of file table_data.c.
328
References netsnmp_table_row_s::next, and NULL.
330
Referenced by netsnmp_table_data_row_next(), and netsnmp_table_data_set_get_next_row().
265
Definition at line 798 of file table_data.c.
331
266
.SS "void* netsnmp_table_data_remove_and_delete_row (\fBnetsnmp_table_data\fP * table, \fBnetsnmp_table_row\fP * row)"
333
removes and frees a row of data to a given table and returns the void *
335
returns the void * data on successful deletion. or NULL on failure (bad arguments)
337
Definition at line 270 of file table_data.c.
339
References netsnmp_table_data_delete_row(), netsnmp_table_data_remove_row(), and NULL.
341
Referenced by netsnmp_table_data_remove_delete_row(), netsnmp_table_dataset_remove_and_delete_row(), and netsnmp_table_dataset_remove_row().
268
removes and frees a row of data to a given table and returns the void * returns the void * data on successful deletion. or NULL on failure (bad arguments)
270
Definition at line 274 of file table_data.c.
342
271
.SS "\fBnetsnmp_table_row\fP* netsnmp_table_data_remove_row (\fBnetsnmp_table_data\fP * table, \fBnetsnmp_table_row\fP * row)"
344
removes a row of data to a given table and returns it (no free's called)
346
returns the row pointer itself on successful removing. or NULL on failure (bad arguments)
348
Definition at line 244 of file table_data.c.
350
References netsnmp_table_data_s::first_row, netsnmp_table_data_s::last_row, netsnmp_table_row_s::next, NULL, and netsnmp_table_row_s::prev.
352
Referenced by netsnmp_table_data_remove_and_delete_row(), and netsnmp_table_data_replace_row().
273
removes a row of data to a given table and returns it (no free's called) returns the row pointer itself on successful removing. or NULL on failure (bad arguments)
275
Definition at line 248 of file table_data.c.
353
276
.SS "NETSNMP_INLINE void netsnmp_table_data_replace_row (\fBnetsnmp_table_data\fP * table, \fBnetsnmp_table_row\fP * origrow, \fBnetsnmp_table_row\fP * newrow)"
355
swaps out origrow with newrow.
357
This does *not* delete/free anything!
359
Definition at line 229 of file table_data.c.
361
References netsnmp_table_data_add_row(), and netsnmp_table_data_remove_row().
363
Referenced by netsnmp_table_dataset_replace_row().
278
swaps out origrow with newrow. This does *not* delete/free anything!
280
Definition at line 233 of file table_data.c.
283
Generated automatically by Doxygen for net-snmp from the source code.