>>>>> On Wed, 27 Apr 2005 09:57:14 +0100, Dave Shield <[EMAIL PROTECTED]> said:
Dave> The public API for supplying index values has always been Dave> via netsnmp_table_row_add_index. Dave> That's my understanding anyway - Wes, care to correct any Dave> errors? Well, this is where we frequently differ in opinion. In C it is not possible to perfectly hide a structure from being messed with, and much of the time I'd even argue that you probably shouldn't. A defined structure *is* an API of sorts. Now, I am a fan of encapsulation where it makes sense. But frequently it adds complexity and/or overhead that isn't needed. Frequently it can hide complexity as well, which is where it is the most powerful and the most useful. Much of the time, when you decide to change an internal structure and you leave the encapsulating function around you end up deprecating it at the same time ;-) So much for the fundamental principal of encapsulation ;-) Anyway, I think we've never told people not to mess with the table structures and have even provided a few examples of being able to do so. Thus, I'd be hesitant to make changes to them without decent justification for doing so. -- Wes Hardaker Sparta, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders