On 02/04/2008, Vishal Nandanwar <[EMAIL PROTECTED]> wrote: > I have generated code for a table using command > > mib2c -S cache=1 -c mib2c.table_data.conf inputStatesTable > > I am not sure how to write code in "inputStateTable_load" function. Is > creating a entry of type netsnmp_tdata_row using function > inputStateTable_createEntry().
Yes. > Now how to populate this entry with column values? The routine 'inputStateTable_createEntry' returns a tdata_row structure. This is the table-independent representation of a row of the table. If you take the field 'data' of this structure, this is the table-specific representation of the table row. Cast this to be of type 'struct inputStateEntry' (or however this is defined). Then just assign suitable values to the fields of this structure. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
