summaryrefslogtreecommitdiff
path: root/source3/registry
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/registry
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/registry')
-rw-r--r--source3/registry/reg_objects.c11
1 files changed, 11 insertions, 0 deletions
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
**********************************************************************/