summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf/smbconf.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-18 23:29:11 +0100
committerMichael Adam <obnox@samba.org>2008-03-21 02:25:55 +0100
commit7621b4c3d80f411aac6e40ea5cce787cec108af5 (patch)
treea29f96067b1b90fa0428dfbfbac56334b9fc6438 /source3/lib/smbconf/smbconf.h
parent77dd53ad5c2568a2f06d4ecd524c971ae967b17b (diff)
downloadsamba-7621b4c3d80f411aac6e40ea5cce787cec108af5.tar.gz
samba-7621b4c3d80f411aac6e40ea5cce787cec108af5.tar.bz2
samba-7621b4c3d80f411aac6e40ea5cce787cec108af5.zip
libsmbconf: change smbconf_get_seqnum() to smbconf_changed().
The former seqnum is hidden inside a struct smbconf_csn. And the get_seqnum is united with a changed function that stores the seqnum inside the given csn. Michael (This used to be commit 5b6b90900a1a3eab24cb5612d78f9678a363cf73)
Diffstat (limited to 'source3/lib/smbconf/smbconf.h')
-rw-r--r--source3/lib/smbconf/smbconf.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/lib/smbconf/smbconf.h b/source3/lib/smbconf/smbconf.h
index d2e05045f7..134dc29c09 100644
--- a/source3/lib/smbconf/smbconf.h
+++ b/source3/lib/smbconf/smbconf.h
@@ -24,6 +24,11 @@ struct smbconf_ctx {
NT_USER_TOKEN *token;
};
+/* the change sequence number */
+struct smbconf_csn {
+ uint64_t csn;
+};
+
/*
* WARNING:
* Of this API, at least the open function is still subject to change.
@@ -32,8 +37,8 @@ struct smbconf_ctx {
WERROR smbconf_open(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx);
void smbconf_close(struct smbconf_ctx *ctx);
-uint64_t smbconf_get_seqnum(struct smbconf_ctx *ctx,
- const char *service, const char *param);
+bool smbconf_changed(struct smbconf_ctx *ctx, struct smbconf_csn *csn,
+ const char *service, const char *param);
WERROR smbconf_drop(struct smbconf_ctx *ctx);
WERROR smbconf_get_config(TALLOC_CTX *mem_ctx,
struct smbconf_ctx *ctx, uint32_t *num_shares,