summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/include/reg_objects.h1
-rw-r--r--source3/registry/reg_objects.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/reg_objects.h b/source3/include/reg_objects.h
index 0cfb25d1f6..03483d86ab 100644
--- a/source3/include/reg_objects.h
+++ b/source3/include/reg_objects.h
@@ -195,6 +195,7 @@ int regval_ctr_copyvalue(struct regval_ctr *ctr, struct regval_blob *val);
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);
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 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
**********************************************************************/