Hello Dave, Sorry, I didn't cc my message to net-snmp-coders, so I am resending it.
I am not sure what initalisation code that you are referring to? The way I understand it, the myvoid pointer can only be set/accessed from within the get_*_data functions. If there was some way to initalise this pointer when the cache is loaded, that would be perfect (as I want to use the cached data from within the get_*_data functions). However, I cannot see how I could initialise this pointer from outside those functions? Maybe I am missing something. The only way I can see is by declaring my cached data globally which I would prefer to avoid. Thanks, Anthony On 8/22/05, Dave Shield <[EMAIL PROTECTED]> wrote: > On Thu, 2005-08-18 at 20:06 +0200, Anthony Novatsis wrote: > > I know it is possible to use the cache and the table iterator > > handlers. However, I would like to know whether it is possible to > > retrieve the netsnmp_cache structure within the get_first_data_point > > function (without the use of a global variable ;) in order to access > > the loaded cache data which would be stored in the magic pointer. > > It doesn't look as if this is easily available from the data > structures as they're currently organised (though I haven't worked > through all the various interlinked pointers to be certain). > > However, there is a 'myvoid' pointer in the iterator info structure, > which doesn't appear to be used anywhere. So you could set this > to hold the cache structure as part of the initialisation code, > and hence retrieve this during the get_*_data_point routines. > > Is that any use to you? > > Dave > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders