]> git.ipfire.org Git - thirdparty/samba.git/commit
lib/smbconf: add create_set_share method to SMBConf
authorJohn Mulligan <jmulligan@redhat.com>
Sun, 24 Apr 2022 15:48:41 +0000 (11:48 -0400)
committerJeremy Allison <jra@samba.org>
Fri, 6 May 2022 17:16:30 +0000 (17:16 +0000)
commit2b6bd70cdccf5077377f7da74bd53ed1295280fd
tree83907026982a513406da328d71f8ced5c808018f
parent7e4bc41983a8660f1d16c14ba60d9f3c26e9fc60
lib/smbconf: add create_set_share method to SMBConf

Add the create_set_share method wrapping smbconf_create_set_share.
This method is one of the most complex as it must "unpack" the list
of key-value pairs from python and convert that to a `struct
smbconf_service` for the smbconfig C API.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/smbconf/pysmbconf.c
python/samba/tests/smbconf.py