diff options
author | Michael Adam <obnox@samba.org> | 2010-05-23 22:53:44 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-05-25 10:35:28 +0200 |
commit | 6b331321e3d2bdf67c7acd63138b62fcf7cc5208 (patch) | |
tree | 4880e4b7313385ce3e1cfcb56250804bdd9ec78a | |
parent | e0d5bccfd381ebb83ee7d626ee94087d47f4b8dd (diff) | |
download | samba-6b331321e3d2bdf67c7acd63138b62fcf7cc5208.tar.gz samba-6b331321e3d2bdf67c7acd63138b62fcf7cc5208.tar.bz2 samba-6b331321e3d2bdf67c7acd63138b62fcf7cc5208.zip |
s3:registry:reg_objects: add regval_ctr_get_seqnum()
-rw-r--r-- | source3/include/reg_objects.h | 1 | ||||
-rw-r--r-- | source3/registry/reg_objects.c | 9 |
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 **********************************************************************/ |