libsmbconf: add smbconf_create_set_share
authorDavid Disseldorp <ddiss@samba.org>
Thu, 16 May 2013 09:55:04 +0000 (11:55 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 28 May 2013 16:12:26 +0000 (18:12 +0200)
commitcaf83bcb76f52b0628f6d59e95396d16b5e3c66e
tree99db971ae533f1b2bc57c97448e288eae25c7e36
parent57634fd87d7176a1f92281ad1b3e9a565b54cfc7
libsmbconf: add smbconf_create_set_share

This call creates a new share definition, using the parameters provided
with a smbconf_service structure.
Such an interface allows for simple cloning of services with:
smbconf_get_share(conf_ctx, mem_ctx, base_sharename, &base_service_def);
base_service_def->name = clone_sharename;
smbconf_create_set_share(conf_ctx, base_service_def);

Pair-Programmed-With: Michael Adam <obnox@samba.org>

Signed-off-by: David Disseldorp <ddiss@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
lib/smbconf/smbconf.c
lib/smbconf/smbconf.h