blob: 937ae9e5f22eacaf1ab909dc67fcf85684d6da7b [file] [log] [blame]
.TH "netsnmp_iterator_info_s" 3 "13 Nov 2003" "net-snmp" \" -*- nroff -*-
.ad l
.nh
.SH NAME
netsnmp_iterator_info_s \- 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.
.SH SYNOPSIS
.br
.PP
\fC#include <table_iterator.h>\fP
.PP
.SS "Data Fields"
.in +1c
.ti -1c
.RI "Netsnmp_First_Data_Point * \fBget_first_data_point\fP"
.br
.RI "\fIResponsible for: returning the first set of 'index' data, a loop-context pointer, and optionally a data context pointer.\fP"
.ti -1c
.RI "Netsnmp_Next_Data_Point * \fBget_next_data_point\fP"
.br
.RI "\fIGiven the previous loop context, this should return the next loop context, assiocated index set and optionally a data context.\fP"
.ti -1c
.RI "Netsnmp_Make_Data_Context * \fBmake_data_context\fP"
.br
.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"
.ti -1c
.RI "Netsnmp_Free_Loop_Context * \fBfree_loop_context\fP"
.br
.RI "\fIA function which should free the loop context.\fP"
.ti -1c
.RI "Netsnmp_Free_Data_Context * \fBfree_data_context\fP"
.br
.RI "\fIFrees a data context.\fP"
.ti -1c
.RI "Netsnmp_Free_Loop_Context * \fBfree_loop_context_at_end\fP"
.br
.RI "\fIFrees a loop context at the end of the entire iteration sequence.\fP"
.ti -1c
.RI "void * \fBmyvoid\fP"
.br
.RI "\fIThis can be used by client handlers to store any information they need.\fP"
.ti -1c
.RI "netsnmp_table_registration_info * \fBtable_reginfo\fP"
.br
.RI "\fIA pointer to the netsnmp_table_registration_info object this iterator is registered along with.\fP"
.in -1c
.SH "DETAILED DESCRIPTION"
.PP
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.
.PP
The netsnmp_iterator_info typedef can be used instead of directly calling this struct if you would prefer.
.PP
Definition at line 57 of file table_iterator.h.
.SH "FIELD DOCUMENTATION"
.PP
.SS "Netsnmp_Free_Data_Context* netsnmp_iterator_info_s::free_data_context"
.PP
Frees a data context.
.PP
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.
.PP
Definition at line 86 of file table_iterator.h.
.PP
Referenced by netsnmp_table_iterator_helper_handler().
.SS "Netsnmp_Free_Loop_Context* netsnmp_iterator_info_s::free_loop_context"
.PP
A function which should free the loop context.
.PP
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.
.PP
Definition at line 79 of file table_iterator.h.
.PP
Referenced by netsnmp_table_iterator_helper_handler().
.SS "Netsnmp_Free_Loop_Context* netsnmp_iterator_info_s::free_loop_context_at_end"
.PP
Frees a loop context at the end of the entire iteration sequence.
.PP
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
.PP
Definition at line 94 of file table_iterator.h.
.PP
Referenced by netsnmp_table_iterator_helper_handler().
.SS "Netsnmp_First_Data_Point* netsnmp_iterator_info_s::get_first_data_point"
.PP
Responsible for: returning the first set of 'index' data, a loop-context pointer, and optionally a data context pointer.
.PP
Definition at line 61 of file table_iterator.h.
.PP
Referenced by netsnmp_table_iterator_helper_handler().
.SS "Netsnmp_Next_Data_Point* netsnmp_iterator_info_s::get_next_data_point"
.PP
Given the previous loop context, this should return the next loop context, assiocated index set and optionally a data context.
.PP
Definition at line 66 of file table_iterator.h.
.PP
Referenced by netsnmp_table_iterator_helper_handler().
.SS "Netsnmp_Make_Data_Context* netsnmp_iterator_info_s::make_data_context"
.PP
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.
.PP
Definition at line 72 of file table_iterator.h.
.SS "void* netsnmp_iterator_info_s::myvoid"
.PP
This can be used by client handlers to store any information they need.
.PP
Definition at line 98 of file table_iterator.h.
.SS "netsnmp_table_registration_info* netsnmp_iterator_info_s::table_reginfo"
.PP
A pointer to the netsnmp_table_registration_info object this iterator is registered along with.
.PP
Definition at line 104 of file table_iterator.h.
.PP
Referenced by netsnmp_register_table_iterator(), and netsnmp_table_iterator_helper_handler().
.SH "AUTHOR"
.PP
Generated automatically by Doxygen for net-snmp from the source code.