summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-05-23 22:53:44 +0200
committerMichael Adam <obnox@samba.org>2010-05-25 10:35:28 +0200
commit6b331321e3d2bdf67c7acd63138b62fcf7cc5208 (patch)
tree4880e4b7313385ce3e1cfcb56250804bdd9ec78a /source3/registry
parente0d5bccfd381ebb83ee7d626ee94087d47f4b8dd (diff)
downloadsamba-6b331321e3d2bdf67c7acd63138b62fcf7cc5208.tar.gz
samba-6b331321e3d2bdf67c7acd63138b62fcf7cc5208.tar.bz2
samba-6b331321e3d2bdf67c7acd63138b62fcf7cc5208.zip
s3:registry:reg_objects: add regval_ctr_get_seqnum()
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_objects.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/registry/reg_objects.c b/source3/registry/reg_objects.c
index 148fdee7f2..b52d85fa4f 100644
--- a/source3/registry/reg_objects.c
+++ b/source3/registry/reg_objects.c
@@ -603,6 +603,15 @@ struct regval_blob* regval_ctr_getvalue(struct regval_ctr *ctr,
return NULL;
}
+int regval_ctr_get_seqnum(struct regval_ctr *ctr)
+{
+ if (ctr == NULL) {
+ return -1;
+ }
+
+ return ctr->seqnum;
+}
+
/***********************************************************************
return the data_p as a uint32
**********************************************************************/