On 24 March 2011 09:25, ring <[email protected]> wrote:
> But in my real project,there are more than 50 para in the table.
So the table has 50 columns? That feels a little cumbersome.
It might be worth reviewing the design of the table
But that's a separate issue
Do any of these columns take "default" values?
If so, then you can omit these from the parameter list
and hardcode the relevant values in the createEntry routine.
Similarly if any of the values can be calculated or
inferred from other columns
But all independent column values would need to be supplied
to the createEntry() routine. How else can they be inserted
into the table?
> Should I use this method like this:
>
> "js50PMTable_createEntry(12,"test",4,"sgdf",4,............)"
Note that if these are known to definitely be printable strings,
then you could omit the length parameter, and pass this information
as
js50PMTable_createEntry(12,"test", "sgdf",............)"
Bottom line - the createEntry routine is a convenience function
to set up the data structure for one row of the table. It's only
ever using within your MIB module code, so you can tweak it
as much (or as little) as you like. Just as long as the data
structure gets constructed correctly to match what the handler expects
Dave
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
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