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 [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
