tdb traveerse "state" parameter

Luke Kenneth Casson Leighton lkcl at
Mon Jan 31 02:27:19 GMT 2000


in order to avoid static variables etc, i added a void* state  to the
tdb_traverse() function.

i need to be able to accumulate the results of a database search into a
data structure, so i will typecast the data structure to a void*, which
gets passed to tdb_traverse() which then gets called back to me on the
traverse_fn(), and at that point i can typecase it to my structure and add
the data to it.


More information about the samba-technical mailing list