Lines Matching full:obj

34     const char *name;            /* Name of @obj in its parent, if any */
35 QObject *obj; /* QDict or QList being visited */ member
38 GHashTable *h; /* If @obj is QDict: unvisited keys */
39 const QListEntry *entry; /* If @obj is QList: unvisited tail */
40 unsigned index; /* If @obj is QList: list index of @entry */
90 } else if (qobject_type(so->obj) == QTYPE_QDICT) { in full_name_nth()
135 qobj = tos->obj; in qobject_input_try_get_object()
168 QObject *obj = qobject_input_try_get_object(qiv, name, consume); in qobject_input_get_object() local
170 if (!obj) { in qobject_input_get_object()
173 return obj; in qobject_input_get_object()
209 QObject *obj, void *qapi) in qobject_input_push() argument
213 QDict *qdict = qobject_to(QDict, obj); in qobject_input_push()
214 QList *qlist = qobject_to(QList, obj); in qobject_input_push()
217 assert(obj); in qobject_input_push()
219 tos->obj = obj; in qobject_input_push()
268 static void qobject_input_pop(Visitor *v, void **obj) in qobject_input_pop() argument
273 assert(tos && tos->qapi == obj); in qobject_input_pop()
278 static bool qobject_input_start_struct(Visitor *v, const char *name, void **obj, in qobject_input_start_struct() argument
284 if (obj) { in qobject_input_start_struct()
285 *obj = NULL; in qobject_input_start_struct()
296 qobject_input_push(qiv, name, qobj, obj); in qobject_input_start_struct()
298 if (obj) { in qobject_input_start_struct()
299 *obj = g_malloc0(size); in qobject_input_start_struct()
304 static void qobject_input_end_struct(Visitor *v, void **obj) in qobject_input_end_struct() argument
309 assert(qobject_type(tos->obj) == QTYPE_QDICT && tos->h); in qobject_input_end_struct()
310 qobject_input_pop(v, obj); in qobject_input_end_struct()
347 assert(tos && qobject_to(QList, tos->obj)); in qobject_input_next_list()
361 assert(tos && qobject_to(QList, tos->obj)); in qobject_input_check_list()
371 static void qobject_input_end_list(Visitor *v, void **obj) in qobject_input_end_list() argument
376 assert(qobject_type(tos->obj) == QTYPE_QLIST && !tos->h); in qobject_input_end_list()
377 qobject_input_pop(v, obj); in qobject_input_end_list()
381 GenericAlternate **obj, size_t size, in qobject_input_start_alternate() argument
388 *obj = NULL; in qobject_input_start_alternate()
391 *obj = g_malloc0(size); in qobject_input_start_alternate()
392 (*obj)->type = qobject_type(qobj); in qobject_input_start_alternate()
396 static bool qobject_input_type_int64(Visitor *v, const char *name, int64_t *obj, in qobject_input_type_int64() argument
407 if (!qnum || !qnum_get_try_int(qnum, obj)) { in qobject_input_type_int64()
416 int64_t *obj, Error **errp) in qobject_input_type_int64_keyval() argument
425 if (qemu_strtoi64(str, NULL, 0, obj) < 0) { in qobject_input_type_int64_keyval()
435 uint64_t *obj, Error **errp) in qobject_input_type_uint64() argument
450 if (qnum_get_try_uint(qnum, obj)) { in qobject_input_type_uint64()
456 *obj = val; in qobject_input_type_uint64()
467 uint64_t *obj, Error **errp) in qobject_input_type_uint64_keyval() argument
476 if (qemu_strtou64(str, NULL, 0, obj) < 0) { in qobject_input_type_uint64_keyval()
485 static bool qobject_input_type_bool(Visitor *v, const char *name, bool *obj, in qobject_input_type_bool() argument
502 *obj = qbool_get_bool(qbool); in qobject_input_type_bool()
507 bool *obj, Error **errp) in qobject_input_type_bool_keyval() argument
516 if (!qapi_bool_parse(name, str, obj, NULL)) { in qobject_input_type_bool_keyval()
524 static bool qobject_input_type_str(Visitor *v, const char *name, char **obj, in qobject_input_type_str() argument
531 *obj = NULL; in qobject_input_type_str()
542 *obj = g_strdup(qstring_get_str(qstr)); in qobject_input_type_str()
547 char **obj, Error **errp) in qobject_input_type_str_keyval() argument
552 *obj = g_strdup(str); in qobject_input_type_str_keyval()
556 static bool qobject_input_type_number(Visitor *v, const char *name, double *obj, in qobject_input_type_number() argument
573 *obj = qnum_get_double(qnum); in qobject_input_type_number()
578 double *obj, Error **errp) in qobject_input_type_number_keyval() argument
595 *obj = val; in qobject_input_type_number_keyval()
599 static bool qobject_input_type_any(Visitor *v, const char *name, QObject **obj, in qobject_input_type_any() argument
605 *obj = NULL; in qobject_input_type_any()
610 *obj = qobject_ref(qobj); in qobject_input_type_any()
615 QNull **obj, Error **errp) in qobject_input_type_null() argument
620 *obj = NULL; in qobject_input_type_null()
630 *obj = qnull(); in qobject_input_type_null()
635 uint64_t *obj, Error **errp) in qobject_input_type_size_keyval() argument
644 if (qemu_strtosz(str, NULL, obj) < 0) { in qobject_input_type_size_keyval()
693 static QObjectInputVisitor *qobject_input_visitor_base_new(QObject *obj) in qobject_input_visitor_base_new() argument
697 assert(obj); in qobject_input_visitor_base_new()
712 v->root = qobject_ref(obj); in qobject_input_visitor_base_new()
717 Visitor *qobject_input_visitor_new(QObject *obj) in qobject_input_visitor_new() argument
719 QObjectInputVisitor *v = qobject_input_visitor_base_new(obj); in qobject_input_visitor_new()
732 Visitor *qobject_input_visitor_new_keyval(QObject *obj) in qobject_input_visitor_new_keyval() argument
734 QObjectInputVisitor *v = qobject_input_visitor_base_new(obj); in qobject_input_visitor_new_keyval()
754 QObject *obj; in qobject_input_visitor_new_str() local
759 obj = qobject_from_json(str, errp); in qobject_input_visitor_new_str()
760 if (!obj) { in qobject_input_visitor_new_str()
763 args = qobject_to(QDict, obj); in qobject_input_visitor_new_str()