libsmbconf: Document smbconf_get_share_names().
authorAndreas Schneider <asn@samba.org>
Thu, 14 Apr 2011 09:22:25 +0000 (11:22 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 11 May 2011 10:03:29 +0000 (12:03 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
lib/smbconf/smbconf.h

index 000d5ccf597abe638ddaf2b87eeab9d4e3941487..0a46874fc5bb9987fd72d0edbfbd9561f05204b5 100644 (file)
@@ -153,10 +153,25 @@ sbcErr smbconf_get_config(struct smbconf_ctx *ctx,
                          uint32_t *num_shares,
                          struct smbconf_service ***services);
 
+/**
+ * @brief Get the list of share names defined in the configuration.
+ *
+ * @param[in] ctx       The smbconf context to use.
+ *
+ * @param[in] mem_ctx   The memory context to use.
+ *
+ * @param[in] num_shares A pointer to store the number of shares.
+ *
+ * @param[in] share_names A pointer to store the share names.
+ *
+ * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
+ *                      error occured.
+ */
 sbcErr smbconf_get_share_names(struct smbconf_ctx *ctx,
                               TALLOC_CTX *mem_ctx,
                               uint32_t *num_shares,
                               char ***share_names);
+
 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,