net-snmp 5.7
table_generic.c
00001 /*
00002  * table_generic.c
00003  *
00004  *    Generic table API framework
00005  */
00006 
00018 /* =======================================================
00019  * 
00020  *  Table Maintenance:
00021  *      create/delete table
00022  *      create/copy/clone/delete row
00023  *      add/replace/remove row
00024  *
00025  * ======================================================= */
00026 
00059 void *
00060 netsnmp_generic_create_table( const char *name, int flags ) {
00061 }
00062 
00067 void
00068 netsnmp_generic_delete_table( void *table ) {
00069 }
00070 
00075 void *
00076 netsnmp_generic_create_row( void ) {
00077 }
00078 
00081 void *
00082 netsnmp_generic_clone_row( void *row ) {
00083 }
00084 
00089 int
00090 netsnmp_generic_copy_row( void *dst_row, void *src_row ) {
00091 }
00092 
00097 void
00098 netsnmp_generic_delete_row( void *row ) {
00099 }
00100 
00103 int
00104 netsnmp_generic_add_row( void *table, void *row ) {
00105 }
00106 
00112 int
00113 netsnmp_generic_replace_row( void *table, void *old_row, void *new_row ) {
00114 }
00115 
00120 void *
00121 netsnmp_generic_remove_row( void *table, void *row ) {
00122 }
00123 
00126 void
00127 netsnmp_generic_remove_delete_row( void *table, void *row ) {
00128 }
00129 
00132 /* =======================================================
00133  * 
00134  *  MIB Maintenance:
00135  *      create a handler registration
00136  *      register/unregister table
00137  *      extract table from request
00138  *      extract/insert row
00139  *
00140  * ======================================================= */
00141 
00157 netsnmp_mib_handler *
00158 netsnmp_generic_get_handler(void /* table specific */ ) {
00159 
00160 }
00161 
00165 netsnmp_generic_free_handler( netsnmp_mib_handler *handler ) {
00166 
00167 }
00168 
00171 int
00172 netsnmp_generic_register(netsnmp_handler_registration    *reginfo,
00173                          void                            *table,
00174                          netsnmp_table_registration_info *table_info) {
00175 }
00176 
00182 int
00183 netsnmp_generic_unregister(netsnmp_handler_registration    *reginfo) {
00184 }
00185 
00188 void
00189 netsnmp_generic_extract_table( netsnmp_request_info *request ) {
00190 }
00191 
00194 void
00195 netsnmp_generic_extract_row( netsnmp_request_info *request ) {
00196 }
00197 
00202 void
00203 netsnmp_generic_insert_row( netsnmp_request_info *request, void *row ) {
00204 }
00205 
00208 /* =======================================================
00209  * 
00210  *  Row Operations
00211  *      get first/this/next row
00212  *      get row/next row by index
00213  *      get row/next row by OID
00214  *      number of rows
00215  *
00216  * ======================================================= */
00217 
00227 void *
00228 netsnmp_generic_row_first( void *table ) {
00229 }
00230 
00239 void *
00240 netsnmp_generic_row_get( void *table, void *row ) {
00241 }
00242 
00248 void *
00249 netsnmp_generic_row_next( void *table, void *row ) {
00250 }
00251 
00254 void *
00255 netsnmp_generic_row_get_byidx(  void *table,
00256                                 netsnmp_variable_list *indexes ) {
00257 }
00258 
00261 void *
00262 netsnmp_generic_row_next_byidx( void *table,
00263                                 netsnmp_variable_list *indexes ) {
00264 
00265 }
00266 
00269 void *
00270 netsnmp_generic_row_get_byoid(  void *table, oid *instance, size_t len ) {
00271 }
00272 
00275 void *
00276 netsnmp_generic_row_next_byoid( void *table, oid *instance, size_t len ) {
00277 }
00278 
00281 int
00282 netsnmp_generic_row_count( void *table ) {
00283 }
00284 
00287 /* =======================================================
00288  * 
00289  *  Index Operations
00290  *      get table index structure
00291  *      get row index values/OIDs
00292  *      compare row with index/OIDs
00293  *      subtree comparisons (index/OIDs)
00294  *
00295  * ======================================================= */
00296 
00306 netsnmp_variable_list *
00307 netsnmp_generic_idx( void *table ) {
00308 }
00309 
00312 netsnmp_variable_list *
00313 netsnmp_generic_row_idx( void *row ) {
00314 }
00315 
00318 size_t
00319 netsnmp_generic_row_oid( void *row, oid *instances ) {
00320 }
00321 
00324 int
00325 netsnmp_generic_compare_idx( void *row, netsnmp_variable_list *index ) {
00326 }
00327 
00330 int
00331 netsnmp_generic_compare_oid( void *row, oid *instances, size_t len ) {
00332 }
00333 
00336 int
00337 netsnmp_generic_compare_subtree_idx( void *row, netsnmp_variable_list *index ) {
00338 }
00339 
00342 int
00343 netsnmp_generic_compare_subtree_oid( void *row, oid *instances, size_t len ) {
00344 }
00345