summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-05-23 22:55:12 +0200
committerMichael Adam <obnox@samba.org>2010-05-25 10:35:28 +0200
commit987514d98d3cb8711b5c56b5416fa690ecb3b8eb (patch)
tree258711866deea4bfebe68761f9571febcbb8d3fd /source3
parent6b331321e3d2bdf67c7acd63138b62fcf7cc5208 (diff)
downloadsamba-987514d98d3cb8711b5c56b5416fa690ecb3b8eb.tar.gz
samba-987514d98d3cb8711b5c56b5416fa690ecb3b8eb.tar.bz2
samba-987514d98d3cb8711b5c56b5416fa690ecb3b8eb.zip
s3:registry:reg_objects: add regval_ctr_set_seqnum()
Diffstat (limited to 'source3')
-rw-r--r--source3/include/reg_objects.h1
-rw-r--r--source3/registry/reg_objects.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/source3/include/reg_objects.h b/source3/include/reg_objects.h
index 03483d86ab..282b1a63dd 100644
--- a/source3/include/reg_objects.h
+++ b/source3/include/reg_objects.h
@@ -196,6 +196,7 @@ int regval_ctr_delvalue(struct regval_ctr *ctr, const char *name);
struct regval_blob* regval_ctr_getvalue(struct regval_ctr *ctr,
const char *name);
int regval_ctr_get_seqnum(struct regval_ctr *ctr);
+WERROR regval_ctr_set_seqnum(struct regval_ctr *ctr, int seqnum);
uint32 regval_dword(struct regval_blob *val);
const char *regval_sz(struct regval_blob *val);
diff --git a/source3/registry/reg_objects.c b/source3/registry/reg_objects.c
index b52d85fa4f..6765a7d7d0 100644
--- a/source3/registry/reg_objects.c
+++ b/source3/registry/reg_objects.c
@@ -612,6 +612,17 @@ int regval_ctr_get_seqnum(struct regval_ctr *ctr)
return ctr->seqnum;
}
+WERROR regval_ctr_set_seqnum(struct regval_ctr *ctr, int seqnum)
+{
+ if (ctr == NULL) {
+ return WERR_INVALID_PARAM;
+ }
+
+ ctr->seqnum = seqnum;
+
+ return WERR_OK;
+}
+
/***********************************************************************
return the data_p as a uint32
**********************************************************************/