mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3-registry: add regval_ctr_addvalue_multi_sz.
Guenther
This commit is contained in:
parent
a6567cf198
commit
05e8e90976
@ -5120,6 +5120,7 @@ struct regval_blob *regval_compose(TALLOC_CTX *ctx, const char *name,
|
||||
int regval_ctr_addvalue(struct regval_ctr *ctr, const char *name, uint16 type,
|
||||
const char *data_p, size_t size);
|
||||
int regval_ctr_addvalue_sz(struct regval_ctr *ctr, const char *name, const char *data);
|
||||
int regval_ctr_addvalue_multi_sz(struct regval_ctr *ctr, const char *name, const char **data);
|
||||
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,
|
||||
|
@ -506,6 +506,23 @@ int regval_ctr_addvalue_sz(struct regval_ctr *ctr, const char *name, const char
|
||||
blob.length);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
Add a new registry MULTI_SZ value to the array
|
||||
**********************************************************************/
|
||||
|
||||
int regval_ctr_addvalue_multi_sz(struct regval_ctr *ctr, const char *name, const char **data)
|
||||
{
|
||||
DATA_BLOB blob;
|
||||
|
||||
if (!push_reg_multi_sz(ctr, &blob, data)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return regval_ctr_addvalue(ctr, name, REG_MULTI_SZ,
|
||||
(const char *)blob.data,
|
||||
blob.length);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
Add a new registry value to the array
|
||||
**********************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user