On Mon, 2005-11-07 at 15:07 +0200, Michael G wrote: > But I still miss something. > > The netsnmp_create_handler_registration() gets as parameter the > handler function.
Yes. > The code that was generated using the mib2c lacks some handler > function for the tables. Which mib2c config are you using? > The following functions were generated for one of the tables: > /** User-defined data access functions for data in table adiCamTable > */ > /** row level accessors */ > Netsnmp_First_Data_Point adiCamTable_get_first_data_point; > Netsnmp_Next_Data_Point adiCamTable_get_next_data_point; That sounds like an iterator-based config.... > int adiCamTable_commit_row(void **my_data_context, int new_or_del); > void * adiCamTable_create_data_context(netsnmp_variable_list > *index_data); ... and I think that probably means this is the iterator_access template. Yes? > > /** column accessors */ > long *get_adiCamSlotId(void *data_context, size_t *ret_len); > long *get_adiCamInputSource(void *data_context, size_t > *ret_len); > int set_adiCamInputSource(void *data_context, long *val, size_t > val_len); > long *get_adiCamState(void *data_context, size_t *ret_len); > long *get_adiCamManufacturerId(void *data_context, size_t > *ret_len); > char *get_adiCamMenuString(void *data_context, size_t *ret_len); > > > Do I have to write the handler myself? The handler should have been generated automatically (probably in the file 'adiCamTable.c'), and included as part of the registration call (in the same file). You shouldn't have to change any of this. Dave ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders