1 .TH "netsnmp_iterator_info_s" 3 "23 Sep 2009" "Version 5.5" "net-snmp" \" -*- nroff -*-
5 netsnmp_iterator_info_s \-
7 Holds iterator information containing functions which should be called by the iterator_handler to loop over your data set and sort it in a SNMP specific manner.
13 \fC#include <table_iterator.h>\fP
18 .RI "Netsnmp_First_Data_Point * \fBget_first_data_point\fP"
20 .RI "\fIResponsible for: returning the first set of 'index' data, a loop-context pointer, and optionally a data context pointer. \fP"
22 .RI "Netsnmp_Next_Data_Point * \fBget_next_data_point\fP"
24 .RI "\fIGiven the previous loop context, this should return the next loop context, associated index set and optionally a data context. \fP"
26 .RI "Netsnmp_Make_Data_Context * \fBmake_data_context\fP"
28 .RI "\fIIf a data context wasn't supplied by the get_first_data_point or get_next_data_point functions and the make_data_context pointer is defined, it will be called to convert a loop context into a data context. \fP"
30 .RI "Netsnmp_Free_Loop_Context * \fBfree_loop_context\fP"
32 .RI "\fIA function which should free the loop context. \fP"
34 .RI "Netsnmp_Free_Data_Context * \fBfree_data_context\fP"
36 .RI "\fIFrees a data context. \fP"
38 .RI "Netsnmp_Free_Loop_Context * \fBfree_loop_context_at_end\fP"
40 .RI "\fIFrees a loop context at the end of the entire iteration sequence. \fP"
42 .RI "void * \fBmyvoid\fP"
44 .RI "\fIThis can be used by client handlers to store any information they need. \fP"
49 .RI "\fBnetsnmp_table_registration_info\fP * \fBtable_reginfo\fP"
51 .RI "\fIA pointer to the netsnmp_table_registration_info object this iterator is registered along with. \fP"
53 .RI "Netsnmp_First_Data_Point * \fBget_row_indexes\fP"
56 .RI "\fBnetsnmp_variable_list\fP * \fBindexes\fP"
59 .SH "Detailed Description"
61 Holds iterator information containing functions which should be called by the iterator_handler to loop over your data set and sort it in a SNMP specific manner.
63 The netsnmp_iterator_info typedef can be used instead of directly calling this struct if you would prefer.
65 Definition at line 53 of file table_iterator.h.
66 .SH "Field Documentation"
68 .SS "Netsnmp_Free_Data_Context* \fBnetsnmp_iterator_info_s::free_data_context\fP"
70 Frees a data context. This will be called at any time a data context needs to be freed. This may be at the same time as a correspondng loop context is freed, or much much later. Multiple data contexts may be kept in existence at any time.
72 Definition at line 82 of file table_iterator.h.
73 .SS "Netsnmp_Free_Loop_Context* \fBnetsnmp_iterator_info_s::free_loop_context\fP"
75 A function which should free the loop context. This function is called at *each* iteration step, which is not-optimal for speed purposes. The use of free_loop_context_at_end instead is strongly encouraged. This can be set to NULL to avoid its usage.
77 Definition at line 75 of file table_iterator.h.
78 .SS "Netsnmp_Free_Loop_Context* \fBnetsnmp_iterator_info_s::free_loop_context_at_end\fP"
80 Frees a loop context at the end of the entire iteration sequence. Generally, this would free the loop context allocated by the get_first_data_point function (which would then be updated by each call to the get_next_data_point function). It is not called until the get_next_data_point function returns a NULL
82 Definition at line 90 of file table_iterator.h.
83 .SS "Netsnmp_First_Data_Point* \fBnetsnmp_iterator_info_s::get_first_data_point\fP"
85 Responsible for: returning the first set of 'index' data, a loop-context pointer, and optionally a data context pointer.
87 Definition at line 57 of file table_iterator.h.
88 .SS "Netsnmp_Next_Data_Point* \fBnetsnmp_iterator_info_s::get_next_data_point\fP"
90 Given the previous loop context, this should return the next loop context, associated index set and optionally a data context.
92 Definition at line 62 of file table_iterator.h.
93 .SS "Netsnmp_Make_Data_Context* \fBnetsnmp_iterator_info_s::make_data_context\fP"
95 If a data context wasn't supplied by the get_first_data_point or get_next_data_point functions and the make_data_context pointer is defined, it will be called to convert a loop context into a data context.
97 Definition at line 68 of file table_iterator.h.
98 .SS "void* \fBnetsnmp_iterator_info_s::myvoid\fP"
100 This can be used by client handlers to store any information they need.
102 Definition at line 94 of file table_iterator.h.
103 .SS "\fBnetsnmp_table_registration_info\fP* \fBnetsnmp_iterator_info_s::table_reginfo\fP"
105 A pointer to the netsnmp_table_registration_info object this iterator is registered along with.
107 Definition at line 100 of file table_iterator.h.
111 Generated automatically by Doxygen for net-snmp from the source code.