logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

my_data_context pointer in the get_next_data_point: msg#00475

Subject: my_data_context pointer in the get_next_data_point
 I am implementing a table using the mib2c.iterate.conf. The value of the 
my_data_context pointer is always NULL in the get_next_data_point function. I 
am expecting to get the value that is set to my_data_context in the 
get_first_data_point function. However, my_loop_context value is set and 
returns correctly.

Quote from mib2c says:

"Set the my_loop_context variable to the first data point structure
     of your choice (from which you can find the next one).  This could
     be anything from the first node in a linked list, to an integer
     pointer containing the beginning of an array variable.

     Set the my_data_context variable to something to be returned to
     you later that will provide you with the data to return in a given
     row.  This could be the same pointer as what my_loop_context is
     set to, or something different.
  "

I think, my_data_context should have the value that is set in the first data 
point function. What does "something to be returned to you later" mean ? I am 
assuming "later" means get_next_data_point.

Has anyone seen this before ? How did you solve it ? I currently solve it with 
a static global pointer, but I am hoping there is a better way.

Thanks for any pointers.

Augustus.


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5


<Prev in Thread] Current Thread [Next in Thread>