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

index f3d5909998d98124365235bba418a690941d07e1..5c0f84d1727cf6cbbe2b88bb5ae99e97ceebbf11 100644 (file)
@@ -99,8 +99,28 @@ bool smbconf_is_writeable(struct smbconf_ctx *ctx);
  */
 void smbconf_shutdown(struct smbconf_ctx *ctx);
 
+/**
+ * @brief Detect changes in the configuration.
+ *
+ * Get the change sequence number of the given service/parameter. Service and
+ * parameter strings may be NULL.
+ *
+ * The given change sequence number (csn) struct is filled with the current
+ * csn. smbconf_changed() can also be used for initial retrieval of the csn.
+ *
+ * @param[in] ctx       The smbconf context to check for changes.
+ *
+ * @param[inout] csn    The smbconf csn to be filled.
+ *
+ * @param[in] service   The service name to check or NULL.
+ *
+ * @param[in] param     The param to check or NULL.
+ *
+ * @return              True if it has been changed, false if not.
+ */
 bool smbconf_changed(struct smbconf_ctx *ctx, struct smbconf_csn *csn,
                     const char *service, const char *param);
+
 sbcErr smbconf_drop(struct smbconf_ctx *ctx);
 sbcErr smbconf_get_config(struct smbconf_ctx *ctx,
                          TALLOC_CTX *mem_ctx,