* during iteration and -1 on generic errors.
*/
int
-virJSONValueObjectForeachKeyValue(const virJSONValue *object,
+virJSONValueObjectForeachKeyValue(virJSONValuePtr object,
virJSONValueObjectIteratorFunc cb,
void *opaque)
{
bool pretty);
typedef int (*virJSONValueObjectIteratorFunc)(const char *key,
- const virJSONValue *value,
+ virJSONValuePtr value,
void *opaque);
-int virJSONValueObjectForeachKeyValue(const virJSONValue *object,
+int virJSONValueObjectForeachKeyValue(virJSONValuePtr object,
virJSONValueObjectIteratorFunc cb,
void *opaque);
static int
virQEMUBuildCommandLineJSONRecurse(const char *key,
- const virJSONValue *value,
+ virJSONValuePtr value,
virBufferPtr buf,
virQEMUBuildCommandLineJSONArrayFormatFunc arrayFunc,
bool nested);
int
virQEMUBuildCommandLineJSONArrayBitmap(const char *key,
- const virJSONValue *array,
+ virJSONValuePtr array,
virBufferPtr buf)
{
ssize_t pos = -1;
int
virQEMUBuildCommandLineJSONArrayNumbered(const char *key,
- const virJSONValue *array,
+ virJSONValuePtr array,
virBufferPtr buf)
{
- const virJSONValue *member;
+ virJSONValuePtr member;
char *prefix = NULL;
size_t i;
int ret = 0;
/* internal iterator to handle nested object formatting */
static int
virQEMUBuildCommandLineJSONIterate(const char *key,
- const virJSONValue *value,
+ virJSONValuePtr value,
void *opaque)
{
struct virQEMUCommandLineJSONIteratorData *data = opaque;
static int
virQEMUBuildCommandLineJSONRecurse(const char *key,
- const virJSONValue *value,
+ virJSONValuePtr value,
virBufferPtr buf,
virQEMUBuildCommandLineJSONArrayFormatFunc arrayFunc,
bool nested)
* Returns 0 on success -1 on error.
*/
int
-virQEMUBuildCommandLineJSON(const virJSONValue *value,
+virQEMUBuildCommandLineJSON(virJSONValuePtr value,
virBufferPtr buf,
virQEMUBuildCommandLineJSONArrayFormatFunc array)
{
char *
-virQEMUBuildDriveCommandlineFromJSON(const virJSONValue *srcdef)
+virQEMUBuildDriveCommandlineFromJSON(virJSONValuePtr srcdef)
{
virBuffer buf = VIR_BUFFER_INITIALIZER;
char *ret = NULL;
# include "virstorageencryption.h"
typedef int (*virQEMUBuildCommandLineJSONArrayFormatFunc)(const char *key,
- const virJSONValue *array,
+ virJSONValuePtr array,
virBufferPtr buf);
int virQEMUBuildCommandLineJSONArrayBitmap(const char *key,
- const virJSONValue *array,
+ virJSONValuePtr array,
virBufferPtr buf);
int virQEMUBuildCommandLineJSONArrayNumbered(const char *key,
- const virJSONValue *array,
+ virJSONValuePtr array,
virBufferPtr buf);
-int virQEMUBuildCommandLineJSON(const virJSONValue *value,
+int virQEMUBuildCommandLineJSON(virJSONValuePtr value,
virBufferPtr buf,
virQEMUBuildCommandLineJSONArrayFormatFunc array);
const char *alias,
virJSONValuePtr props);
-char *virQEMUBuildDriveCommandlineFromJSON(const virJSONValue *src);
+char *virQEMUBuildDriveCommandlineFromJSON(virJSONValuePtr src);
void virQEMUBuildBufferEscapeComma(virBufferPtr buf, const char *str);
void virQEMUBuildLuksOpts(virBufferPtr buf,
static int
virStorageSourceParseBackingJSONDeflattenWorker(const char *key,
- const virJSONValue *value,
+ virJSONValuePtr value,
void *opaque)
{
virJSONValuePtr retobj = opaque;