tdb traveerse "state" parameter

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


andrew,

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.

luke



More information about the samba-technical mailing list