> It wouldn't be too hard to add a flag which could be set during
> registration, and would signal the helper to not create the row.
It wouldn't even have to change the API.
The final parameter to 'netsnmp_table_container_register' is currently
a boolean flag to control whether rows should be grouped or not.
If this was declared as a more general 'flags' parameter, with flag
definitions such as:
#define NS_ARRAY_FLAG_GROUPROWS 0x01
#define NS_ARRAY_FLAG_NOAUTOCREATE 0x02
then
netsnmp_table_container_register( ...., 1 );
would still mean exactly the same as it does now.
We'd just be adding the possibility of:
/* NS_ARRAY_FLAG_GROUPROWS | NS_ARRAY_FLAG_NOAUTOCREATE */
netsnmp_table_container_register( ...., 3 );
Dave
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders