From 3e3df1bfe2ebce8b5c26cb5fb7d4c2f5c422fd97 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 18 Feb 2008 18:21:14 +0100 Subject: 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) --- source3/libnet/libnet_conf.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 @@ -481,6 +481,19 @@ void libnet_conf_close(struct libnet_conf_ctx *ctx) TALLOC_FREE(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). */ -- cgit