summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-02-24 23:10:35 +0100
committerMichael Adam <obnox@samba.org>2009-02-26 13:22:52 +0100
commit63ed47c9e4c846d52c7a56b137d5059b1700007a (patch)
tree7b52a8ec326ae66c1fd0928549e1a3435959f33a
parent763f41f39c2b3c3488992297bc1c0e1ab785ad07 (diff)
downloadsamba-63ed47c9e4c846d52c7a56b137d5059b1700007a.tar.gz
samba-63ed47c9e4c846d52c7a56b137d5059b1700007a.tar.bz2
samba-63ed47c9e4c846d52c7a56b137d5059b1700007a.zip
s3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.
Michael
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/registry/reg_objects.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index dd4fa7b4aa..84ab0efbfe 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -5130,6 +5130,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/source3/registry/reg_objects.c b/source3/registry/reg_objects.c
index 10ad41e84b..20bc906cfe 100644
--- a/source3/registry/reg_objects.c
+++ b/source3/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
**********************************************************************/