mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
d948cb1c6d
The smbconf library provides a generic interface for Samba configuration backends. In order to access these backends, including the read-write registry backend, we add a new python binding for smbconf - the general interface library. This initial set of bindings covers some basic read-only calls. This includes function calls for listing shares (config sections) and getting the parameters of the shares. The `init_txt` construction function must be used to get a new SMBConf object. This is done so that other backends, specifically the registry backend from source3 can be used in the future. Those will provide their own construction funcs. Signed-off-by: John Mulligan <jmulligan@redhat.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz Reviewed-by: David Mulder <dmulder@suse.com> Reviewed-by: Guenther Deschner <gd@samba.org>
11 lines
390 B
Plaintext
11 lines
390 B
Plaintext
bld.SAMBA_SUBSYSTEM('LIBSMBCONF',
|
|
source='smbconf.c smbconf_txt.c smbconf_util.c',
|
|
deps='talloc sendfile'
|
|
)
|
|
|
|
bld.SAMBA3_PYTHON('pysmbconf',
|
|
source='pysmbconf.c',
|
|
public_deps=' '.join(['samba-util', 'tdb', 'talloc', 'smbconf']),
|
|
realname='samba/smbconf.so'
|
|
)
|