summaryrefslogtreecommitdiff
path: root/lib/smbconf
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-04-14 11:25:07 +0200
committerMichael Adam <obnox@samba.org>2011-05-10 19:13:24 +0200
commit529e0645860cf43f8a507c87fa7c581c29fa5987 (patch)
tree075235dc8370962d6b21436084c8548091d62055 /lib/smbconf
parent44fa842ae92ffd9a694b47339b8d19041c874117 (diff)
downloadsamba-529e0645860cf43f8a507c87fa7c581c29fa5987.tar.gz
samba-529e0645860cf43f8a507c87fa7c581c29fa5987.tar.bz2
samba-529e0645860cf43f8a507c87fa7c581c29fa5987.zip
libsmbconf: Document smbconf_create_share().
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib/smbconf')
-rw-r--r--lib/smbconf/smbconf.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/smbconf/smbconf.h b/lib/smbconf/smbconf.h
index d208af154c..8becb5f284 100644
--- a/lib/smbconf/smbconf.h
+++ b/lib/smbconf/smbconf.h
@@ -183,7 +183,18 @@ sbcErr smbconf_get_share_names(struct smbconf_ctx *ctx,
*/
bool smbconf_share_exists(struct smbconf_ctx *ctx, const char *servicename);
+/**
+ * @brief Add a service if it does not already exist.
+ *
+ * @param[in] ctx The smbconf context to use.
+ *
+ * @param[in] servicename The name of the service to add.
+ *
+ * @return SBC_ERR_OK on success, a corresponding sbcErr if an
+ * error occured.
+ */
sbcErr smbconf_create_share(struct smbconf_ctx *ctx, const char *servicename);
+
sbcErr smbconf_get_share(struct smbconf_ctx *ctx,
TALLOC_CTX *mem_ctx,
const char *servicename,