#define PARSE_INT(VAR, FIELD) \
PARSE_SET(virJSONValueObjectGetNumberInt, VAR, FIELD)
+#define PARSE_ULONG(VAR, FIELD) \
+ PARSE_SET(virJSONValueObjectGetNumberUlong, VAR, FIELD)
+
#define PARSE_STR(VAR, FIELD) \
do { \
const char *str; \
PARSE_INT(cpuThrottleIncrement, "cpu-throttle-increment");
PARSE_STR(migrateTLSAlias, "tls-creds");
PARSE_STR(migrateTLSHostname, "tls-hostname");
+ PARSE_ULONG(downtimeLimit, "downtime-limit");
#undef PARSE_SET
#undef PARSE_INT
+#undef PARSE_ULONG
#undef PARSE_STR
- if (virJSONValueObjectGetNumberUlong(result, "downtime-limit",
- ¶ms->downtimeLimit) == 0)
- params->downtimeLimit_set = true;
-
ret = 0;
cleanup:
virJSONValueFree(cmd);