Proposal: libsmbclient API

Andreas Schneider mail at cynapses.org
Fri Mar 20 18:11:04 GMT 2009


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 ;)

Cheers,

	-- andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsmbclient.h
Type: text/x-chdr
Size: 92221 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090320/54db1f49/libsmbclient.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsmbclient_private.h
Type: text/x-chdr
Size: 3994 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090320/54db1f49/libsmbclient_private.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.c
Type: text/x-csrc
Size: 1092 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090320/54db1f49/sample.bin


More information about the samba-technical mailing list