Proposal: libsmbclient API

Jeremy Allison jra at samba.org
Sat Mar 21 16:33:12 GMT 2009


On Fri, Mar 20, 2009 at 07:11:04PM +0100, Andreas Schneider wrote:
> Hi Derrell,
> 
> we already talked about making libsmbclient thread-safe and cleaning up the 
> API. I've created two header files and an example how to use it.
> 
> I've separated the options from the context. I think this makes it cleaner. I 
> think the most important is, that the context is always passed between the 
> functions and that there is a function to set errno and get it. errno is only 
> thread safe in glibc.
> 
> I haven't checked the doxygen documentation completely yet. 
> 
> Every kind of comment is welcome ;)

This is great - I've been fixing up the msdfs client code
to remove the globals and make it more thread-friendly.

There's a long way to go yet though, we need to make
talloc thread-safe as well, and all the underlying
socket and other functions we use (some of the lp_XXX
calls for example).

Nice start though but lots more to do :-).

Jeremy.


More information about the samba-technical mailing list