proposal: libsmbclient functionality addition
abartlet at samba.org
Wed Jun 19 17:55:11 GMT 2002
Matt Seitz wrote:
> >From: Andrew Bartlett [mailto:abartlet at samba.org]
> >If you want to know the kind of code I like, see the passdb subsystem.
> >It is complex, but I really like code that has only one entrypoint
> >(think namespace pollution), and puts the rest of the functions on a
> >struct, as function pointers. Each funciton takes the struct as an arg,
> >(becouse C doesn't have 'Current').
> I took a quick look through passdb.c but I didn't see any examples of
> structures containing function pointers. Where should I be looking?
passdb/pdb_interface.c for it in all its horrid glory. You will also
find an example of the 'backward compatiblity' there too.
More information about the samba-technical