mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
util: json: Make first argument of virJSONValueObjectForeachKeyValue const
The iterator function (second argument) already requires that the object is handled as 'const' thus we won't modify the object itself.
This commit is contained in:
parent
4e3dbfa2a5
commit
bc4339719e
@ -1220,7 +1220,7 @@ virJSONValueObjectIsNull(virJSONValuePtr object,
|
||||
* during iteration and -1 on generic errors.
|
||||
*/
|
||||
int
|
||||
virJSONValueObjectForeachKeyValue(virJSONValuePtr object,
|
||||
virJSONValueObjectForeachKeyValue(const virJSONValue *object,
|
||||
virJSONValueObjectIteratorFunc cb,
|
||||
void *opaque)
|
||||
{
|
||||
|
@ -167,7 +167,7 @@ typedef int (*virJSONValueObjectIteratorFunc)(const char *key,
|
||||
const virJSONValue *value,
|
||||
void *opaque);
|
||||
|
||||
int virJSONValueObjectForeachKeyValue(virJSONValuePtr object,
|
||||
int virJSONValueObjectForeachKeyValue(const virJSONValue *object,
|
||||
virJSONValueObjectIteratorFunc cb,
|
||||
void *opaque);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user