summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-02-24 23:10:35 +0100
committerKarolin Seeger <kseeger@samba.org>2009-03-27 14:15:43 +0100
commit0263c1f7959fcefde38e29fee3942740e546afc0 (patch)
tree7aacf184965e17bb4522e585d970e2c09a3f3d12 /source
parent80e4fa5545e6d455fe0a324248b42f616a00132f (diff)
downloadsamba-0263c1f7959fcefde38e29fee3942740e546afc0.tar.gz
samba-0263c1f7959fcefde38e29fee3942740e546afc0.tar.xz
samba-0263c1f7959fcefde38e29fee3942740e546afc0.zip
s3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.
Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit d119cd129c6acd2f0eb16fcf3281744d717cd291)
Diffstat (limited to 'source')
-rw-r--r--source/include/proto.h1
-rw-r--r--source/registry/reg_objects.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/source/include/proto.h b/source/include/proto.h
index ddc0e0500dd..8d2b1ed0f7e 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -6802,6 +6802,7 @@ WERROR registry_init_smbconf(const char *keyname);
/* The following definitions come from registry/reg_objects.c */
WERROR regsubkey_ctr_init(TALLOC_CTX *mem_ctx, struct regsubkey_ctr **ctr);
+WERROR regsubkey_ctr_set_seqnum(struct regsubkey_ctr *ctr, int seqnum);
WERROR regsubkey_ctr_addkey( struct regsubkey_ctr *ctr, const char *keyname );
int regsubkey_ctr_delkey( struct regsubkey_ctr *ctr, const char *keyname );
bool regsubkey_ctr_key_exists( struct regsubkey_ctr *ctr, const char *keyname );
diff --git a/source/registry/reg_objects.c b/source/registry/reg_objects.c
index 10ad41e84b3..20bc906cfe7 100644
--- a/source/registry/reg_objects.c
+++ b/source/registry/reg_objects.c
@@ -50,6 +50,17 @@ WERROR regsubkey_ctr_init(TALLOC_CTX *mem_ctx, struct regsubkey_ctr **ctr)
return WERR_OK;
}
+WERROR regsubkey_ctr_set_seqnum(struct regsubkey_ctr *ctr, int seqnum)
+{
+ if (ctr == NULL) {
+ return WERR_INVALID_PARAM;
+ }
+
+ ctr->seqnum = seqnum;
+
+ return WERR_OK;
+}
+
/***********************************************************************
Add a new key to the array
**********************************************************************/