Logo
Home page Net-SNMP

Archive Search:

Require all words?

Site Search:
Google
Main Page | Modules | Data Structures | File List | Data Fields | Related Pages | Examples

table_generic.c

00001 /*
00002  * table_generic.c
00003  *
00004  *    Generic table API framework
00005  */
00006 
00019 /* =======================================================
00020  * 
00021  *  Table Maintenance:
00022  *      create/delete table
00023  *      create/copy/clone/delete row
00024  *      add/replace/remove row
00025  *
00026  * ======================================================= */
00027 
00060 void *
00061 netsnmp_generic_create_table( const char *name, int flags ) {
00062 }
00063 
00068 void
00069 netsnmp_generic_delete_table( void *table ) {
00070 }
00071 
00076 void *
00077 netsnmp_generic_create_row( void ) {
00078 }
00079 
00082 void *
00083 netsnmp_generic_clone_row( void *row ) {
00084 }
00085 
00090 int
00091 netsnmp_generic_copy_row( void *dst_row, void *src_row ) {
00092 }
00093 
00098 void
00099 netsnmp_generic_delete_row( void *row ) {
00100 }
00101 
00104 int
00105 netsnmp_generic_add_row( void *table, void *row ) {
00106 }
00107 
00113 int
00114 netsnmp_generic_replace_row( void *table, void *old_row, void *new_row ) {
00115 }
00116 
00121 void *
00122 netsnmp_generic_remove_row( void *table, void *row ) {
00123 }
00124 
00127 void
00128 netsnmp_generic_remove_delete_row( void *table, void *row ) {
00129 }
00130 
00133 /* =======================================================
00134  * 
00135  *  MIB Maintenance:
00136  *      create a handler registration
00137  *      register/unregister table
00138  *      extract table from request
00139  *      extract/insert row
00140  *
00141  * ======================================================= */
00142 
00158 netsnmp_mib_handler *
00159 netsnmp_generic_get_handler(void /* table specific */ ) {
00160 
00161 }
00162 
00166 netsnmp_generic_free_handler( netsnmp_mib_handler *handler ) {
00167 
00168 }
00169 
00172 int
00173 netsnmp_generic_register(netsnmp_handler_registration    *reginfo,
00174                          void                            *table,
00175                          netsnmp_table_registration_info *table_info) {
00176 }
00177 
00183 int
00184 netsnmp_generic_unregister(netsnmp_handler_registration    *reginfo) {
00185 }
00186 
00189 void
00190 netsnmp_generic_extract_table( netsnmp_request_info *request ) {
00191 }
00192 
00195 void
00196 netsnmp_generic_extract_row( netsnmp_request_info *request ) {
00197 }
00198 
00203 void
00204 netsnmp_generic_insert_row( netsnmp_request_info *request, void *row ) {
00205 }
00206 
00209 /* =======================================================
00210  * 
00211  *  Row Operations
00212  *      get first/this/next row
00213  *      get row/next row by index
00214  *      get row/next row by OID
00215  *      number of rows
00216  *
00217  * ======================================================= */
00218 
00228 void *
00229 netsnmp_generic_row_first( void *table ) {
00230 }
00231 
00240 void *
00241 netsnmp_generic_row_get( void *table, void *row ) {
00242 }
00243 
00249 void *
00250 netsnmp_generic_row_next( void *table, void *row ) {
00251 }
00252 
00255 void *
00256 netsnmp_generic_row_get_byidx(  void *table,
00257                                 netsnmp_variable_list *indexes ) {
00258 }
00259 
00262 void *
00263 netsnmp_generic_row_next_byidx( void *table,
00264                                 netsnmp_variable_list *indexes ) {
00265 
00266 }
00267 
00270 void *
00271 netsnmp_generic_row_get_byoid(  void *table, oid *instance, size_t len ) {
00272 }
00273 
00276 void *
00277 netsnmp_generic_row_next_byoid( void *table, oid *instance, size_t len ) {
00278 }
00279 
00282 int
00283 netsnmp_generic_row_count( void *table ) {
00284 }
00285 
00288 /* =======================================================
00289  * 
00290  *  Index Operations
00291  *      get table index structure
00292  *      get row index values/OIDs
00293  *      compare row with index/OIDs
00294  *      subtree comparisons (index/OIDs)
00295  *
00296  * ======================================================= */
00297 
00307 netsnmp_variable_list *
00308 netsnmp_generic_idx( void *table ) {
00309 }
00310 
00313 netsnmp_variable_list *
00314 netsnmp_generic_row_idx( void *row ) {
00315 }
00316 
00319 size_t
00320 netsnmp_generic_row_oid( void *row, oid *instances ) {
00321 }
00322 
00325 int
00326 netsnmp_generic_compare_idx( void *row, netsnmp_variable_list *index ) {
00327 }
00328 
00331 int
00332 netsnmp_generic_compare_oid( void *row, oid *instances, size_t len ) {
00333 }
00334 
00337 int
00338 netsnmp_generic_compare_subtree_idx( void *row, netsnmp_variable_list *index ) {
00339 }
00340 
00343 int
00344 netsnmp_generic_compare_subtree_oid( void *row, oid *instances, size_t len ) {
00345 }
00346 

Generated on Fri Dec 30 13:47:51 2005 for net-snmp by  doxygen 1.3.9.1

Valid CSS!


Last modified: Thursday, 01-Mar-2007 16:20:02 PST
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.