summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-02-18 18:21:14 +0100
committerMichael Adam <obnox@samba.org>2008-02-19 09:09:04 +0100
commit3e3df1bfe2ebce8b5c26cb5fb7d4c2f5c422fd97 (patch)
tree79c037478d7cdc052aaa8c0ac603a85e13fe5cec /source3
parent1c9990fcfe7ac36050351f7c2b99d1e3e044a01a (diff)
downloadsamba-3e3df1bfe2ebce8b5c26cb5fb7d4c2f5c422fd97.tar.gz
samba-3e3df1bfe2ebce8b5c26cb5fb7d4c2f5c422fd97.tar.bz2
samba-3e3df1bfe2ebce8b5c26cb5fb7d4c2f5c422fd97.zip
Add a function libnet_conf_get_seqnum() to the libnet_conf API.
This is to provide a change sequence number to users, so that they can use it to detect change in the config and trigger a reload. Michael (This used to be commit a0b12f4d815fa92c8826954e6d73546c8a751583)
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_conf.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c
index c3872b68de..688097bc5e 100644
--- a/source3/libnet/libnet_conf.c
+++ b/source3/libnet/libnet_conf.c
@@ -482,6 +482,19 @@ void libnet_conf_close(struct libnet_conf_ctx *ctx)
}
/**
+ * Get the change sequence number of the given service/parameter.
+ *
+ * NOTE: Currently, for registry configuration, this is independent
+ * of the service and parameter, it returns the registry-sequence
+ * number.
+ */
+uint64_t libnet_conf_get_seqnum(struct libnet_conf_ctx *ctx,
+ const char *service, const char *param)
+{
+ return (uint64_t)regdb_get_seqnum();
+}
+
+/**
* Drop the whole configuration (restarting empty).
*/
WERROR libnet_conf_drop(struct libnet_conf_ctx *ctx)