libsmbconf: Document smbconf_get_share().
authorAndreas Schneider <asn@samba.org>
Thu, 14 Apr 2011 09:27:03 +0000 (11:27 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 10 May 2011 17:13:24 +0000 (19:13 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
lib/smbconf/smbconf.h

index 8becb5f2849b5ee40c6631ca13686a097afff4a2..0ceca5a6d450540de92cd99a8b3a941911dd10b7 100644 (file)
@@ -195,10 +195,28 @@ bool smbconf_share_exists(struct smbconf_ctx *ctx, const char *servicename);
  */
 sbcErr smbconf_create_share(struct smbconf_ctx *ctx, const char *servicename);
 
+/**
+ * @brief Get a definition of a share (service) from configuration.
+ *
+ * @param[in] ctx       The smbconf context to use.
+ *
+ * @param[in] mem_ctx   A memory context to allocate the result.
+ *
+ * @param[in] servicename The service name to get the information from.
+ *
+ * @param[out] service  A pointer to store the service information about the
+ *                      share.
+ *
+ * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
+ *                      error occured.
+ *
+ * @see smbconf_service
+ */
 sbcErr smbconf_get_share(struct smbconf_ctx *ctx,
                         TALLOC_CTX *mem_ctx,
                         const char *servicename,
                         struct smbconf_service **service);
+
 sbcErr smbconf_delete_share(struct smbconf_ctx *ctx,
                            const char *servicename);
 sbcErr smbconf_set_parameter(struct smbconf_ctx *ctx,