libsmbconf: Document smbconf_set_global_parameter().
authorAndreas Schneider <asn@samba.org>
Thu, 14 Apr 2011 09:32:06 +0000 (11:32 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 15 May 2011 18:20:10 +0000 (20:20 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 24af63e25f11fde79b1675f0d3c6e3b10fc69a04)

lib/smbconf/smbconf.h

index 2f1affaa1591d4bb45d06d980de846cb359cf0da..6bc00d43ff7f3325feb6c9a2915d1c54417a5854 100644 (file)
@@ -249,8 +249,24 @@ sbcErr smbconf_set_parameter(struct smbconf_ctx *ctx,
                             const char *param,
                             const char *valstr);
 
+/**
+ * @brief Set a global configuration parameter to the value provided.
+ *
+ * This adds a paramet in the [global] service. It also creates [global] if it
+ * does't exist.
+ *
+ * @param[in] ctx       The smbconf context to use.
+ *
+ * @param[in] param     The name of the parameter to set.
+ *
+ * @param[in] val       The value to set.
+ *
+ * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
+ *                      error occured.
+ */
 sbcErr smbconf_set_global_parameter(struct smbconf_ctx *ctx,
                                    const char *param, const char *val);
+
 sbcErr smbconf_get_parameter(struct smbconf_ctx *ctx,
                             TALLOC_CTX *mem_ctx,
                             const char *service,