summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-04-14 11:52:30 +0200
committerMichael Adam <obnox@samba.org>2011-05-10 19:13:25 +0200
commit6babdaf6b742760fc1db9c0c9fcf92e92a9aafdc (patch)
tree26458e84e322e794effc1f3dad0defc62fa2dfbe
parentd9407a5a558ce8eb229070cec980a3ef7a02584f (diff)
downloadsamba-6babdaf6b742760fc1db9c0c9fcf92e92a9aafdc.tar.gz
samba-6babdaf6b742760fc1db9c0c9fcf92e92a9aafdc.tar.bz2
samba-6babdaf6b742760fc1db9c0c9fcf92e92a9aafdc.zip
libsmbconf: Document smbconf_transaction_start().
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--lib/smbconf/smbconf.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/smbconf/smbconf.h b/lib/smbconf/smbconf.h
index 0268ad4bd4..c3cd2b34ed 100644
--- a/lib/smbconf/smbconf.h
+++ b/lib/smbconf/smbconf.h
@@ -435,7 +435,18 @@ sbcErr smbconf_delete_includes(struct smbconf_ctx *ctx, const char *service);
*/
sbcErr smbconf_delete_global_includes(struct smbconf_ctx *ctx);
+/**
+ * @brief Start a transaction on the configuration backend.
+ *
+ * This is to speed up writes to the registry based backend.
+ *
+ * @param[in] ctx The smbconf context to start the transaction.
+ *
+ * @return SBC_ERR_OK on success, a corresponding sbcErr if an
+ * error occured.
+ */
sbcErr smbconf_transaction_start(struct smbconf_ctx *ctx);
+
sbcErr smbconf_transaction_commit(struct smbconf_ctx *ctx);
sbcErr smbconf_transaction_cancel(struct smbconf_ctx *ctx);