I think I figured it out The void **my_loop_context appears to be a way to pass the current position in the table (possibly an interator) from the get_first_data_point method to the get_next_data_point method (and to subsequent get_next_data_point calls) until the end of the table is reached. It does not appear to be used by whatever calls the methods in the module.
It appears that it might not even be necessary to use the **my_loop_context to do this. Simply declaring a global structure that contains the index data (or an interator) then initializing it in the get_first_data_point and updating it in the get_next_data_point appears to work without even using the **my_loop_context variable. -----Original Message----- From: Toth, Gregory S Sent: Wednesday, September 20, 2006 3:50 PM Cc: [email protected] Subject: RE: How to do doubly-indexed table Thanks, so now in the magazineTable_get_next_data_point(void **my_loop_context, void **my_data_context, netsnmp_variable_list * put_index_data, netsnmp_iterator_info *mydata) How do I extract the current values from the loop context? Neither printf("next mag data this_index %s\n",(const char*)*my_loop_context ); printf("next mag data this_int_index %u\n",(unsigned)*my_loop_context ); Show the current settings ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
