summaryrefslogtreecommitdiff
path: root/lib/smbconf
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-04-14 11:23:56 +0200
committerMichael Adam <obnox@samba.org>2011-05-10 19:13:23 +0200
commit44fa842ae92ffd9a694b47339b8d19041c874117 (patch)
tree038bd0503975b9b4cf5935a717c14f1697f5f851 /lib/smbconf
parent211286042d4679b85ad1977af3ae8dd0245b4b43 (diff)
downloadsamba-44fa842ae92ffd9a694b47339b8d19041c874117.tar.gz
samba-44fa842ae92ffd9a694b47339b8d19041c874117.tar.bz2
samba-44fa842ae92ffd9a694b47339b8d19041c874117.zip
libsmbconf: Document smbconf_share_exists().
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib/smbconf')
-rw-r--r--lib/smbconf/smbconf.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/smbconf/smbconf.h b/lib/smbconf/smbconf.h
index 0a46874fc5..d208af154c 100644
--- a/lib/smbconf/smbconf.h
+++ b/lib/smbconf/smbconf.h
@@ -172,7 +172,17 @@ sbcErr smbconf_get_share_names(struct smbconf_ctx *ctx,
uint32_t *num_shares,
char ***share_names);
+/**
+ * @brief Check if a share/service of a given name exists.
+ *
+ * @param[in] ctx The smbconf context to use.
+ *
+ * @param[in] servicename The service name to check if it exists.
+ *
+ * @return True if it exists, false if not.
+ */
bool smbconf_share_exists(struct smbconf_ctx *ctx, const char *servicename);
+
sbcErr smbconf_create_share(struct smbconf_ctx *ctx, const char *servicename);
sbcErr smbconf_get_share(struct smbconf_ctx *ctx,
TALLOC_CTX *mem_ctx,