I'm using:
netsnmp_create_table_data_row()
netsnmp_table_dataset_add_row()
to add rows into my table. Everything seems to work fine.
Now I need to delete a row. How do I do that? I want to
use:
netsnmp_table_dataset_remove_and_delete_row()
It takes two arguments, the 'table' and 'row' structures.
I know what my table struct needs to be, that's just the
table created from:
netsnmp_table_create_data_set()
But how about row? How do I set the struct 'row' with the
right values to it's members if all I know is the index of
the row that needs to be killed. That is, from the follow-
ing struct, what members do I need to initialize to have
things work right?
00021 typedef struct netsnmp_table_row_s {
00022 netsnmp_variable_list *indexes;
00023 oid *index_oid;
00024 size_t index_oid_len;
00025 void *data;
00026
00027 struct netsnmp_table_row_s *next, *prev;
00028 } netsnmp_table_row;
I think all I know is the value to set for index_oid. Is
that enough to get the desired results. I know, "suck it
and see", but I'd really like to know if that's all there
is to it. I'd hate to mess this part up after I've gotten
everything else working fine.
Thanks,
Carlos
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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