summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-24 11:30:45 +0200
committerGünther Deschner <gd@samba.org>2009-09-30 00:29:56 +0200
commita50cc61ee6bc973f913a8c26a082ae99f63091db (patch)
tree90a462efe78c5d0b424def11f363cdff356b27ec /source3/registry
parent2c11b73391551723e4ada8664b1ba77873420217 (diff)
downloadsamba-a50cc61ee6bc973f913a8c26a082ae99f63091db.tar.gz
samba-a50cc61ee6bc973f913a8c26a082ae99f63091db.tar.bz2
samba-a50cc61ee6bc973f913a8c26a082ae99f63091db.zip
s3-registry: add regval_ctr_addvalue_sz.
Guenther
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_objects.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/registry/reg_objects.c b/source3/registry/reg_objects.c
index 0c0455aada..908cda5d2e 100644
--- a/source3/registry/reg_objects.c
+++ b/source3/registry/reg_objects.c
@@ -490,6 +490,23 @@ int regval_ctr_addvalue(struct regval_ctr *ctr, const char *name, uint16 type,
}
/***********************************************************************
+ Add a new registry SZ value to the array
+ **********************************************************************/
+
+int regval_ctr_addvalue_sz(struct regval_ctr *ctr, const char *name, const char *data)
+{
+ DATA_BLOB blob;
+
+ if (!push_reg_sz(ctr, &blob, data)) {
+ return -1;
+ }
+
+ return regval_ctr_addvalue(ctr, name, REG_SZ,
+ (const char *)blob.data,
+ blob.length);
+}
+
+/***********************************************************************
Add a new registry value to the array
**********************************************************************/