On Fri, 2005-10-07 at 17:39 -0400, Robert Story wrote: > RS> I was surprised that this didn't include something to deal with > RS> saving default values for columns, to be used during row creation. > DS> I'm not at all sure what you mean by that. > DS> Rather than responding to a (probably erroneous) guess, perhaps you > DS> could expand a bit? > > I was thinking of the table-specific stuff... Doesn't > table_data/table_data_set keep a row with default values?
No. The data_set helper does, but not the table_data (and similar) helpers. As far as they are concerned, the contents of a row are Somebody Else's Problem. They've been asked to look after a collection of rows forming a table - what those rows contain is Nothing To Do With Me, Squire. The table API framework that I've been putting forward is *purely* working at the row level. I haven't had a chance to look at what extensions would be needed for a helper that looked after the column values as well. In fact, I think that I'll delete the 'table_dataset2' helper code altogether until someone can look at this properly. (With the couple of MIBs that currently use it reverting to the original dataset helper). > RS> Suggest a wrapper using the new container iterator stuff too, which > RS> would be much more efficient for someone traversing the whole table. > The iterator stuff has knowledge of the internals, requires a pointer to keep > context. Thus iterating over 10 items will (increment internal index | advance > internal next pointer | etc) for efficient traversal. Fair enough. What's the interface to this iteration mechanism? I've had a quick poke through the 'container_binary_array.c' file, and found mention of various _ba_iterator routines. But what's the public interface that I should be using? Dave ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders