table_data
[table]

Helps you implement a table with datamatted storage. [詳細]


モジュール

 table_dataset
 Helps you implement a table with automatted storage.

関数

void netsnmp_table_data_generate_index_oid (netsnmp_table_row *row)
netsnmp_table_datanetsnmp_create_table_data (const char *name)
 creates and returns a pointer to table data set
netsnmp_table_rownetsnmp_create_table_data_row (void)
 creates and returns a pointer to table data set
netsnmp_table_rownetsnmp_table_data_clone_row (netsnmp_table_row *row)
 clones a data row.
void * netsnmp_table_data_delete_row (netsnmp_table_row *row)
 deletes a row's memory.
int netsnmp_table_data_add_row (netsnmp_table_data *table, netsnmp_table_row *row)
 Adds a row of data to a given table (stored in proper lexographical order).
NETSNMP_INLINE void netsnmp_table_data_replace_row (netsnmp_table_data *table, netsnmp_table_row *origrow, netsnmp_table_row *newrow)
 swaps out origrow with newrow.
netsnmp_table_rownetsnmp_table_data_remove_row (netsnmp_table_data *table, netsnmp_table_row *row)
 removes a row of data to a given table and returns it (no free's called)
void * netsnmp_table_data_remove_and_delete_row (netsnmp_table_data *table, netsnmp_table_row *row)
 removes and frees a row of data to a given table and returns the void *
netsnmp_table_datanetsnmp_table_data_create_table (const char *name, long flags)
void netsnmp_table_data_delete_table (netsnmp_table_data *table)
netsnmp_table_rownetsnmp_table_data_create_row (void *entry)
int netsnmp_table_data_copy_row (netsnmp_table_row *old_row, netsnmp_table_row *new_row)
void * netsnmp_table_data_remove_delete_row (netsnmp_table_data *table, netsnmp_table_row *row)
netsnmp_mib_handlernetsnmp_get_table_data_handler (netsnmp_table_data *table)
 Creates a table_data handler and returns it
int netsnmp_register_table_data (netsnmp_handler_registration *reginfo, netsnmp_table_data *table, netsnmp_table_registration_info *table_info)
 registers a handler as a data table.
int netsnmp_register_read_only_table_data (netsnmp_handler_registration *reginfo, netsnmp_table_data *table, netsnmp_table_registration_info *table_info)
 registers a handler as a read-only data table If table_info != NULL, it registers it as a normal table too.
int netsnmp_table_data_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests)
netsnmp_table_datanetsnmp_extract_table (netsnmp_request_info *request)
 extracts the table being accessed passed from the table_data helper
netsnmp_table_rownetsnmp_extract_table_row (netsnmp_request_info *request)
 extracts the row being accessed passed from the table_data helper
void * netsnmp_extract_table_row_data (netsnmp_request_info *request)
 extracts the data from the row being accessed passed from the table_data helper
NETSNMP_INLINE void netsnmp_insert_table_row (netsnmp_request_info *request, netsnmp_table_row *row)
 inserts a newly created table_data row into a request
int netsnmp_table_data_build_result (netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *request, netsnmp_table_row *row, int column, u_char type, u_char *result_data, size_t result_data_len)
netsnmp_table_rownetsnmp_table_data_get_first_row (netsnmp_table_data *table)
 returns the first row in the table
netsnmp_table_rownetsnmp_table_data_get_next_row (netsnmp_table_data *table, netsnmp_table_row *row)
 returns the next row in the table
netsnmp_table_rownetsnmp_table_data_get (netsnmp_table_data *table, netsnmp_variable_list *indexes)
 finds the data in "datalist" stored at "indexes"
netsnmp_table_rownetsnmp_table_data_get_from_oid (netsnmp_table_data *table, oid *searchfor, size_t searchfor_len)
 finds the data in "datalist" stored at the searchfor oid
int netsnmp_table_data_num_rows (netsnmp_table_data *table)
netsnmp_table_rownetsnmp_table_data_row_first (netsnmp_table_data *table)
netsnmp_table_rownetsnmp_table_data_row_get (netsnmp_table_data *table, netsnmp_table_row *row)
netsnmp_table_rownetsnmp_table_data_row_next (netsnmp_table_data *table, netsnmp_table_row *row)
netsnmp_table_rownetsnmp_table_data_row_get_byoid (netsnmp_table_data *table, oid *instance, size_t len)
netsnmp_table_rownetsnmp_table_data_row_next_byoid (netsnmp_table_data *table, oid *instance, size_t len)
netsnmp_table_rownetsnmp_table_data_row_get_byidx (netsnmp_table_data *table, netsnmp_variable_list *indexes)
netsnmp_table_rownetsnmp_table_data_row_next_byidx (netsnmp_table_data *table, netsnmp_variable_list *indexes)
int netsnmp_table_data_row_count (netsnmp_table_data *table)
void * netsnmp_table_data_entry_first (netsnmp_table_data *table)
void * netsnmp_table_data_entry_get (netsnmp_table_data *table, netsnmp_table_row *row)
void * netsnmp_table_data_entry_next (netsnmp_table_data *table, netsnmp_table_row *row)
void * netsnmp_table_data_entry_get_byidx (netsnmp_table_data *table, netsnmp_variable_list *indexes)
void * netsnmp_table_data_entry_next_byidx (netsnmp_table_data *table, netsnmp_variable_list *indexes)
void * netsnmp_table_data_entry_get_byoid (netsnmp_table_data *table, oid *instance, size_t len)
void * netsnmp_table_data_entry_next_byoid (netsnmp_table_data *table, oid *instance, size_t len)

説明

Helps you implement a table with datamatted storage.

This helper is obsolete. If you are writing a new module, please consider using the table_tdata helper instead.

This helper helps you implement a table where all the indexes are expected to be stored within the agent itself and not in some external storage location. It can be used to store a list of rows, where a row consists of the indexes to the table and a generic data pointer. You can then implement a subhandler which is passed the exact row definition and data it must return data for or accept data for. Complex GETNEXT handling is greatly simplified in this case.


関数

netsnmp_table_data* netsnmp_create_table_data ( const char *  name  ) 

creates and returns a pointer to table data set

table_data.c52 行で定義されています。

参照先 netsnmp_table_data_s::nameSNMP_MALLOC_TYPEDEF.

参照元 netsnmp_create_table_data_set()netsnmp_table_data_create_table().

netsnmp_table_row* netsnmp_create_table_data_row ( void   ) 

creates and returns a pointer to table data set

例:
data_set.c.

table_data.c62 行で定義されています。

参照先 SNMP_MALLOC_TYPEDEF.

参照元 netsnmp_config_parse_add_row()netsnmp_table_data_set_create_row_from_defaults().

netsnmp_table_data* netsnmp_extract_table ( netsnmp_request_info request  ) 

extracts the table being accessed passed from the table_data helper

table_data.c649 行で定義されています。

参照先 netsnmp_request_get_list_data().

netsnmp_table_row* netsnmp_extract_table_row ( netsnmp_request_info request  ) 

extracts the row being accessed passed from the table_data helper

table_data.c657 行で定義されています。

参照先 netsnmp_request_get_list_data().

参照元 netsnmp_extract_table_row_data()netsnmp_table_data_set_helper_handler().

void* netsnmp_extract_table_row_data ( netsnmp_request_info request  ) 

extracts the data from the row being accessed passed from the table_data helper

table_data.c666 行で定義されています。

参照先 netsnmp_table_row_s::datanetsnmp_extract_table_row()NULL.

参照元 netsnmp_extract_table_data_set_column().

netsnmp_mib_handler* netsnmp_get_table_data_handler ( netsnmp_table_data table  ) 

Creates a table_data handler and returns it

table_data.c371 行で定義されています。

参照先 netsnmp_mib_handler_s::flagsMIB_HANDLER_AUTO_NEXTnetsnmp_mib_handler_s::myvoidnetsnmp_create_handler()netsnmp_table_data_helper_handler()NULLsnmp_log().

参照元 netsnmp_register_table_data().

NETSNMP_INLINE void netsnmp_insert_table_row ( netsnmp_request_info request,
netsnmp_table_row row 
)

inserts a newly created table_data row into a request

table_data.c678 行で定義されています。

参照先 build_oid_noalloc()netsnmp_table_request_info_s::indexesnetsnmp_create_data_list()netsnmp_extract_table_info()netsnmp_request_add_list_data()netsnmp_request_info_s::nextNULLnetsnmp_request_info_s::prevsnmp_oid_compare().

int netsnmp_register_read_only_table_data ( netsnmp_handler_registration reginfo,
netsnmp_table_data table,
netsnmp_table_registration_info table_info 
)

registers a handler as a read-only data table If table_info != NULL, it registers it as a normal table too.

table_data.c405 行で定義されています。

参照先 netsnmp_get_read_only_handler()netsnmp_inject_handler()netsnmp_register_table_data().

int netsnmp_register_table_data ( netsnmp_handler_registration reginfo,
netsnmp_table_data table,
netsnmp_table_registration_info table_info 
)

registers a handler as a data table.

If table_info != NULL, it registers it as a normal table too.

table_data.c394 行で定義されています。

参照先 netsnmp_get_table_data_handler()netsnmp_inject_handler()netsnmp_register_table().

参照元 netsnmp_register_read_only_table_data()netsnmp_register_table_data_set().

int netsnmp_table_data_add_row ( netsnmp_table_data table,
netsnmp_table_row row 
)

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)

xxx-rks: remove invalid row?

table_data.c130 行で定義されています。

参照先 netsnmp_table_data_s::first_rownetsnmp_table_row_s::index_oidnetsnmp_table_row_s::index_oid_lennetsnmp_table_row_s::indexesnetsnmp_table_data_s::last_rownetsnmp_table_data_s::namenetsnmp_table_data_generate_index_oid()netsnmp_table_row_s::nextNULLnetsnmp_table_row_s::prevsnmp_free_varbind()snmp_log()snmp_oid_compare()netsnmp_table_data_s::store_indexes.

参照元 netsnmp_config_parse_add_row()netsnmp_table_data_replace_row()netsnmp_table_dataset_add_row().

netsnmp_table_row* netsnmp_table_data_clone_row ( netsnmp_table_row row  ) 

clones a data row.

DOES NOT CLONE THE CONTAINED DATA.

table_data.c70 行で定義されています。

参照先 memdup()NULLsnmp_clone_varbind().

参照元 netsnmp_table_data_set_clone_row().

void* netsnmp_table_data_delete_row ( netsnmp_table_row row  ) 

deletes a row's memory.

returns the void data that it doesn't know how to delete.

table_data.c101 行で定義されています。

参照先 netsnmp_table_row_s::datanetsnmp_table_row_s::index_oidnetsnmp_table_row_s::indexesNULLSNMP_FREEsnmp_free_varbind().

参照元 netsnmp_table_data_delete_table()netsnmp_table_data_remove_and_delete_row()netsnmp_table_dataset_delete_row().

netsnmp_table_row* netsnmp_table_data_get ( netsnmp_table_data table,
netsnmp_variable_list indexes 
)

finds the data in "datalist" stored at "indexes"

table_data.c804 行で定義されています。

参照先 build_oid_noalloc()netsnmp_table_data_get_from_oid()NULL.

参照元 netsnmp_table_data_row_get_byidx().

netsnmp_table_row* netsnmp_table_data_get_first_row ( netsnmp_table_data table  ) 

returns the first row in the table

table_data.c785 行で定義されています。

参照先 netsnmp_table_data_s::first_rowNULL.

参照元 netsnmp_table_data_entry_first()netsnmp_table_data_row_first()netsnmp_table_data_set_get_first_row().

netsnmp_table_row* netsnmp_table_data_get_from_oid ( netsnmp_table_data table,
oid *  searchfor,
size_t  searchfor_len 
)

finds the data in "datalist" stored at the searchfor oid

table_data.c818 行で定義されています。

参照先 netsnmp_table_data_s::first_rownetsnmp_table_row_s::index_oidnetsnmp_table_row_s::index_oid_lennetsnmp_table_row_s::nextNULLsnmp_oid_compare().

参照元 netsnmp_table_data_get()netsnmp_table_data_row_get()netsnmp_table_data_row_get_byoid().

netsnmp_table_row* netsnmp_table_data_get_next_row ( netsnmp_table_data table,
netsnmp_table_row row 
)

returns the next row in the table

table_data.c794 行で定義されています。

参照先 netsnmp_table_row_s::nextNULL.

参照元 netsnmp_table_data_row_next()netsnmp_table_data_set_get_next_row().

void* netsnmp_table_data_remove_and_delete_row ( netsnmp_table_data table,
netsnmp_table_row row 
)

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)

table_data.c270 行で定義されています。

参照先 netsnmp_table_data_delete_row()netsnmp_table_data_remove_row()NULL.

参照元 netsnmp_table_data_remove_delete_row()netsnmp_table_dataset_remove_and_delete_row()netsnmp_table_dataset_remove_row().

netsnmp_table_row* netsnmp_table_data_remove_row ( netsnmp_table_data table,
netsnmp_table_row row 
)

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)

table_data.c244 行で定義されています。

参照先 netsnmp_table_data_s::first_rownetsnmp_table_data_s::last_rownetsnmp_table_row_s::nextNULLnetsnmp_table_row_s::prev.

参照元 netsnmp_table_data_remove_and_delete_row()netsnmp_table_data_replace_row().

NETSNMP_INLINE void netsnmp_table_data_replace_row ( netsnmp_table_data table,
netsnmp_table_row origrow,
netsnmp_table_row newrow 
)

swaps out origrow with newrow.

This does *not* delete/free anything!

table_data.c229 行で定義されています。

参照先 netsnmp_table_data_add_row()netsnmp_table_data_remove_row().

参照元 netsnmp_table_dataset_replace_row().


net-snmpに対してSat Sep 5 13:14:30 2009に生成されました。  doxygen 1.4.7