Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 34) sorted by relevance

12

/illumos-kvm-cmd/
H A Dcheck-qjson.c49 QObject *obj; in START_TEST() local
89 QObject *obj; in START_TEST() local
124 QObject *obj; in START_TEST() local
152 QObject *obj; in START_TEST() local
185 QObject *obj; in START_TEST() local
223 QObject *obj; in START_TEST() local
248 QObject *obj; in START_TEST() local
286 QObject *obj; in START_TEST() local
458 QObject *obj; in START_TEST() local
522 QObject *obj; in START_TEST() local
[all …]
H A DMakefile.target134 obj-arm-y += $(addprefix nwfpe/, $(nwfpe-obj-y))
141 obj-y += $(addprefix ../libuser/, $(user-obj-y))
168 obj-y += $(addprefix ../libuser/, $(user-obj-y))
190 obj-y += $(addprefix ../libuser/, $(user-obj-y))
370 obj-y += $(addprefix ../, $(common-obj-y))
373 obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y))
377 obj-y += $(addprefix ../, $(trace-obj-y))
383 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
388 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
389 $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
[all …]
H A Dqobject.h66 #define QOBJECT(obj) (&(obj)->base) argument
69 #define QINCREF(obj) \ argument
70 qobject_incref(QOBJECT(obj))
74 qobject_decref(QOBJECT(obj))
79 obj->base.type = qtype_type
86 if (obj) in qobject_incref()
87 obj->refcnt++; in qobject_incref()
96 if (obj && --obj->refcnt == 0) { in qobject_decref()
99 obj->type->destroy(obj); in qobject_decref()
108 assert(obj->type != NULL); in qobject_type()
[all …]
H A Dqdict.c190 QObject *obj; in qdict_get_obj() local
193 assert(obj != NULL); in qdict_get_obj()
196 return obj; in qdict_get_obj()
211 assert(obj); in qdict_get_double()
301 QObject *obj; in qdict_get_try_int() local
304 if (!obj || qobject_type(obj) != QTYPE_QINT) in qdict_get_try_int()
319 QObject *obj; in qdict_get_try_bool() local
322 if (!obj || qobject_type(obj) != QTYPE_QBOOL) in qdict_get_try_bool()
338 QObject *obj; in qdict_get_try_str() local
341 if (!obj || qobject_type(obj) != QTYPE_QSTRING) in qdict_get_try_str()
[all …]
H A Djson-parser.c384 QObject *obj; in parse_array() local
387 if (obj == NULL) { in parse_array()
502 return obj; in parse_escape()
513 QObject *token, *obj; in parse_literal() local
536 return obj; in parse_literal()
547 QObject *obj; in parse_value() local
550 if (obj == NULL) { in parse_value()
553 if (obj == NULL) { in parse_value()
556 if (obj == NULL) { in parse_value()
559 if (obj == NULL) { in parse_value()
[all …]
H A Dqerror.c18 static void qerror_destroy_obj(QObject *obj);
249 QObject *obj; in qerror_set_data() local
252 if (!obj) { in qerror_set_data()
262 if (!obj) { in qerror_set_data()
270 if (!obj) { in qerror_set_data()
337 QObject *obj; in append_field() local
357 obj = qdict_get(qdict, key); in append_field()
358 if (!obj) { in append_field()
362 switch (qobject_type(obj)) { in append_field()
458 assert(obj != NULL); in qerror_destroy_obj()
[all …]
H A Dqjson.c62 QObject *obj; in qobject_from_jsonf() local
66 obj = qobject_from_jsonv(string, &ap); in qobject_from_jsonf()
69 assert(obj != NULL); in qobject_from_jsonf()
70 return obj; in qobject_from_jsonf()
127 switch (qobject_type(obj)) { in to_json()
129 QInt *val = qobject_to_qint(obj); in to_json()
206 QDict *val = qobject_to_qdict(obj); in to_json()
225 QList *val = qobject_to_qlist(obj); in to_json()
262 QBool *val = qobject_to_qbool(obj); in to_json()
282 to_json(obj, str, 0, 0); in qobject_to_json()
[all …]
H A Dqlist.c18 static void qlist_destroy_obj(QObject *obj);
41 static void qlist_copy_elem(QObject *obj, void *opaque) in qlist_copy_elem() argument
45 qobject_incref(obj); in qlist_copy_elem()
46 qlist_append_obj(dst, obj); in qlist_copy_elem()
80 void (*iter)(QObject *obj, void *opaque), void *opaque) in qlist_iter() argument
130 QList *qobject_to_qlist(const QObject *obj) in qobject_to_qlist() argument
132 if (qobject_type(obj) != QTYPE_QLIST) { in qobject_to_qlist()
136 return container_of(obj, QList, base); in qobject_to_qlist()
142 static void qlist_destroy_obj(QObject *obj) in qlist_destroy_obj() argument
147 assert(obj != NULL); in qlist_destroy_obj()
[all …]
H A Dqbool.c18 static void qbool_destroy_obj(QObject *obj);
52 QBool *qobject_to_qbool(const QObject *obj) in qobject_to_qbool() argument
54 if (qobject_type(obj) != QTYPE_QBOOL) in qobject_to_qbool()
57 return container_of(obj, QBool, base); in qobject_to_qbool()
64 static void qbool_destroy_obj(QObject *obj) in qbool_destroy_obj() argument
66 assert(obj != NULL); in qbool_destroy_obj()
67 qemu_free(qobject_to_qbool(obj)); in qbool_destroy_obj()
H A Dqfloat.c18 static void qfloat_destroy_obj(QObject *obj);
52 QFloat *qobject_to_qfloat(const QObject *obj) in qobject_to_qfloat() argument
54 if (qobject_type(obj) != QTYPE_QFLOAT) in qobject_to_qfloat()
57 return container_of(obj, QFloat, base); in qobject_to_qfloat()
64 static void qfloat_destroy_obj(QObject *obj) in qfloat_destroy_obj() argument
66 assert(obj != NULL); in qfloat_destroy_obj()
67 qemu_free(qobject_to_qfloat(obj)); in qfloat_destroy_obj()
H A Dqint.c17 static void qint_destroy_obj(QObject *obj);
51 QInt *qobject_to_qint(const QObject *obj) in qobject_to_qint() argument
53 if (qobject_type(obj) != QTYPE_QINT) in qobject_to_qint()
56 return container_of(obj, QInt, base); in qobject_to_qint()
63 static void qint_destroy_obj(QObject *obj) in qint_destroy_obj() argument
65 assert(obj != NULL); in qint_destroy_obj()
66 qemu_free(qobject_to_qint(obj)); in qint_destroy_obj()
H A Dqstring.c17 static void qstring_destroy_obj(QObject *obj);
110 QString *qobject_to_qstring(const QObject *obj) in qobject_to_qstring() argument
112 if (qobject_type(obj) != QTYPE_QSTRING) in qobject_to_qstring()
115 return container_of(obj, QString, base); in qobject_to_qstring()
133 static void qstring_destroy_obj(QObject *obj) in qstring_destroy_obj() argument
137 assert(obj != NULL); in qstring_destroy_obj()
138 qs = qobject_to_qstring(obj); in qstring_destroy_obj()
H A Dqlist.h30 #define qlist_append(qlist, obj) \ argument
31 qlist_append_obj(qlist, QOBJECT(obj))
45 void qlist_append_obj(QList *qlist, QObject *obj);
47 void (*iter)(QObject *obj, void *opaque), void *opaque);
51 QList *qobject_to_qlist(const QObject *obj);
H A DMakefile94 $(common-obj-y): $(GENERATED_HEADERS)
95 $(filter %-softmmu,$(SUBDIR_RULES)): $(trace-obj-y) $(common-obj-y) subdir-libdis
97 $(filter %-user,$(SUBDIR_RULES)): $(GENERATED_HEADERS) $(trace-obj-y) subdir-libdis-user subdir-lib…
155 version-obj-$(CONFIG_WIN32) += version.o
161 …emu-img.o qemu-tool.o qemu-error.o $(oslib-obj-y) $(trace-obj-y) $(block-obj-y) $(qobject-obj-y) $…
163 …emu-nbd.o qemu-tool.o qemu-error.o $(oslib-obj-y) $(trace-obj-y) $(block-obj-y) $(qobject-obj-y) $…
165 …o.o cmd.o qemu-tool.o qemu-error.o $(oslib-obj-y) $(trace-obj-y) $(block-obj-y) $(qobject-obj-y) $…
172 CHECK_PROG_DEPS = qemu-malloc.o $(oslib-obj-y) $(trace-obj-y)
H A Dqdict.h44 QDict *qobject_to_qdict(const QObject *obj);
46 void (*iter)(const char *key, QObject *obj, void *opaque),
52 #define qdict_put(qdict, key, obj) \ argument
53 qdict_put_obj(qdict, key, QOBJECT(obj))
H A Dqjson.h25 QString *qobject_to_json(const QObject *obj);
26 QString *qobject_to_json_pretty(const QObject *obj);
H A Dballoon.c65 static void print_balloon_stat(const char *key, QObject *obj, void *opaque) in print_balloon_stat() argument
71 qint_get_int(qobject_to_qint(obj))); in print_balloon_stat()
H A Dinput.c238 QObject *obj; in do_info_mice() local
239 obj = qobject_from_jsonf("{ 'name': %s," in do_info_mice()
247 qlist_append_obj(mice_list, obj); in do_info_mice()
H A Dcheck-qdict.c94 QObject *obj; in START_TEST() local
100 obj = qdict_get(tests_dict, key); in START_TEST()
101 fail_unless(obj != NULL); in START_TEST()
103 qi = qobject_to_qint(obj); in START_TEST()
H A Dcheck-qlist.c89 static void iter_func(QObject *obj, void *opaque) in iter_func() argument
95 qi = qobject_to_qint(obj); in iter_func()
H A Dqemu-option.c850 static void qemu_opts_from_qdict_1(const char *key, QObject *obj, void *opaque) in qemu_opts_from_qdict_1() argument
860 switch (qobject_type(obj)) { in qemu_opts_from_qdict_1()
862 value = qstring_get_str(qobject_to_qstring(obj)); in qemu_opts_from_qdict_1()
866 qint_get_int(qobject_to_qint(obj))); in qemu_opts_from_qdict_1()
872 qfloat_get_double(qobject_to_qfloat(obj))); in qemu_opts_from_qdict_1()
878 qbool_get_int(qobject_to_qbool(obj)) ? "on" : "off"); in qemu_opts_from_qdict_1()
H A Dqbool.h27 QBool *qobject_to_qbool(const QObject *obj);
H A Dqfloat.h27 QFloat *qobject_to_qfloat(const QObject *obj);
H A Dqint.h26 QInt *qobject_to_qint(const QObject *obj);
H A Dmigration.c219 QObject *obj; in migrate_put_status() local
221 obj = qobject_from_jsonf("{ 'transferred': %" PRId64 ", " in migrate_put_status()
224 qdict_put_obj(qdict, name, obj); in migrate_put_status()

Completed in 18 milliseconds

12