On Fri, 2005-05-27 at 09:01, Victor Yeo wrote:
> but in the callback handler, i want to ... add a row to table,
> but i don't have access to ds (netsnmp_table_data_set) variable,
a) You should have thought of that when you created the table :-)
Rather than declare
netsnmp_table_data_set* ds;
as a local variable within the initialisation routine, you could
always declare it as a global (file-scoped) variable. It'll then
be accessible from anywhere. Ugly, but it works.
b) We should have thought of that when we created the helper :-(
You're quite correct - this is a missing API, which would avoid
the need for such poor programming techniques as the above.
Dave
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users