On Fri, 8 Jun 2007 12:01:05 -0700 (PDT) Need wrote: NH> Everything compiles now, but I have a question. Knowing that I have six tables which are extensions of Table1, then I would need to copy all of the data_context structures from these six extension tables into the Table1 header file to allow the "union" to work. NH> NH> Is there a better way to go about this? I mean, should Table1 header file include all data_context structure definitions from all extension tables?
Nope. Moving each data context structure into table1.h for a union is perfectly reasonable. NH> 2) Looking at how the ifTable/ifXTable code is implemented, I believe I do not need the following routines in my Table2 "interface.c" file. Would you please let me know if you agree that I can delete the following routines (also if you think there are more, then let me know): NH> NH> Table2_allocate_rowreq_ctx() NH> Table2_release_rowreq_ctx() NH> _cache_load() NH> _cache_free() NH> _container_item_free() NH> _container_free() Yeah, those can go. There a probably others, but I'd focus on getting some working code before I went around looking to optimize too much. NH> 3) I also decided I needed to update the _mfd_Table2_post_request() routine in Table2 to ... NH> NH> replace: NH> NH> Table2_release_rowreq_ctx(rowreq_ctx); NH> NH> with: NH> NH> Table1_release_rowreq_ctx(rowreq_ctx); NH> NH> NH> Does this seem correct? Yep. Or just update all the tableN headers to #define tableN_* to table1_* as needed. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders