構造体 netsnmp_iterator_info_s
[table_iteratortable_iterator]

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. [詳細]

#include <table_iterator.h>


変数

Netsnmp_First_Data_Pointget_first_data_point
 Responsible for: returning the first set of "index" data, a loop-context pointer, and optionally a data context pointer
Netsnmp_Next_Data_Pointget_next_data_point
 Given the previous loop context, this should return the next loop context, associated index set and optionally a data context
Netsnmp_Make_Data_Contextmake_data_context
 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.
Netsnmp_Free_Loop_Contextfree_loop_context
 A function which should free the loop context.
Netsnmp_Free_Data_Contextfree_data_context
 Frees a data context.
Netsnmp_Free_Loop_Contextfree_loop_context_at_end
 Frees a loop context at the end of the entire iteration sequence.
void * myvoid
 This can be used by client handlers to store any information they need
int flags
netsnmp_table_registration_infotable_reginfo
 A pointer to the netsnmp_table_registration_info object this iterator is registered along with.
Netsnmp_First_Data_Pointget_row_indexes
netsnmp_variable_listindexes


説明

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.

The netsnmp_iterator_info typedef can be used instead of directly calling this struct if you would prefer.

table_iterator.h53 行で定義されています。


構造体

Netsnmp_Free_Data_Context* netsnmp_iterator_info_s::free_data_context

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.

table_iterator.h82 行で定義されています。

Netsnmp_Free_Loop_Context* netsnmp_iterator_info_s::free_loop_context

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.

table_iterator.h75 行で定義されています。

Netsnmp_Free_Loop_Context* netsnmp_iterator_info_s::free_loop_context_at_end

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

table_iterator.h90 行で定義されています。

Netsnmp_First_Data_Point* netsnmp_iterator_info_s::get_first_data_point

Responsible for: returning the first set of "index" data, a loop-context pointer, and optionally a data context pointer

table_iterator.h57 行で定義されています。

参照元 netsnmp_iterator_create_table()netsnmp_iterator_row_count()netsnmp_iterator_row_first()netsnmp_iterator_row_get_byoid()netsnmp_iterator_row_next_byoid()netsnmp_table_iterator_helper_handler().

Netsnmp_Next_Data_Point* netsnmp_iterator_info_s::get_next_data_point

Given the previous loop context, this should return the next loop context, associated index set and optionally a data context

table_iterator.h62 行で定義されています。

参照元 netsnmp_iterator_create_table()netsnmp_iterator_row_count()netsnmp_iterator_row_get_byoid()netsnmp_iterator_row_next_byoid()netsnmp_table_iterator_helper_handler().

Netsnmp_Make_Data_Context* netsnmp_iterator_info_s::make_data_context

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.

table_iterator.h68 行で定義されています。

void* netsnmp_iterator_info_s::myvoid

This can be used by client handlers to store any information they need

table_iterator.h94 行で定義されています。

netsnmp_table_registration_info* netsnmp_iterator_info_s::table_reginfo

A pointer to the netsnmp_table_registration_info object this iterator is registered along with.

table_iterator.h100 行で定義されています。

参照元 netsnmp_register_table_iterator()netsnmp_table_iterator_helper_handler().


この構造体の説明は次のファイルから生成されました:
net-snmpに対してSat Sep 5 13:14:31 2009に生成されました。  doxygen 1.4.7