tdb_parse_record()?

tridge at samba.org tridge at samba.org
Mon Feb 19 11:24:57 GMT 2007


Volker,

 > I wanted the API to be as close as possible to tdb_fetch.
 > This does not make a difference either. Or should we change
 > tdb_fetch as well?

ahh, ok, I see why you chose it.

tdb_fetch() returns a TDB_DATA type, so it had to do this. It was a
poor design choice - if I got to choose again I'd make tdb_fetch()
return an int and take a TDB_DATA* as an argument.

So I'd vote for making tdb_parse_record() like the other tdb functions
that return an int, and return an error when the record doesn't exist.

Cheers, Tridge


More information about the samba-technical mailing list