Home
last modified time | relevance | path

Searched refs:QObject (Results 1 – 25 of 87) sorted by relevance

1234

/qemu/qobject/
H A Dqobject-internal.h22 void qbool_destroy_obj(QObject *obj);
23 bool qbool_is_equal(const QObject *x, const QObject *y);
25 void qdict_destroy_obj(QObject *obj);
26 bool qdict_is_equal(const QObject *x, const QObject *y);
28 void qlist_destroy_obj(QObject *obj);
29 bool qlist_is_equal(const QObject *x, const QObject *y);
31 bool qnull_is_equal(const QObject *x, const QObject *y);
33 void qnum_destroy_obj(QObject *obj);
34 bool qnum_is_equal(const QObject *x, const QObject *y);
36 void qstring_destroy_obj(QObject *obj);
[all …]
H A Dqjson.c27 QObject *result;
31 static void consume_json(void *opaque, QObject *json, Error *err) in consume_json()
62 static QObject *qobject_from_jsonv(const char *string, va_list *ap, in qobject_from_jsonv()
80 QObject *qobject_from_json(const char *string, Error **errp) in qobject_from_json()
90 QObject *qobject_from_vjsonf_nofail(const char *string, va_list ap) in qobject_from_vjsonf_nofail()
93 QObject *obj; in qobject_from_vjsonf_nofail()
109 QObject *qobject_from_jsonf_nofail(const char *string, ...) in qobject_from_jsonf_nofail()
111 QObject *obj; in qobject_from_jsonf_nofail()
152 const QObject *obj) in to_json()
221 GString *qobject_to_json_pretty(const QObject *obj, bool pretty) in qobject_to_json_pretty()
[all …]
H A Dqlist.c42 QObject *elt; in qlist_copy()
57 void qlist_append_obj(QList *qlist, QObject *value) in qlist_append_obj()
87 QObject *qlist_pop(QList *qlist) in qlist_pop()
90 QObject *ret; in qlist_pop()
105 QObject *qlist_peek(QList *qlist) in qlist_peek()
143 bool qlist_is_equal(const QObject *x, const QObject *y) in qlist_is_equal()
169 void qlist_destroy_obj(QObject *obj) in qlist_destroy_obj()
H A Dqobject.c28 static void (*qdestroy[QTYPE__MAX])(QObject *) = {
38 void qobject_destroy(QObject *obj) in qobject_destroy()
46 static bool (*qis_equal[QTYPE__MAX])(const QObject *, const QObject *) = {
56 bool qobject_is_equal(const QObject *x, const QObject *y) in qobject_is_equal()
H A Djson-parser.c52 static QObject *parse_value(JSONParserContext *ctxt);
259 QObject *key_obj = NULL; in parse_pair()
261 QObject *value; in parse_pair()
309 static QObject *parse_object(JSONParserContext *ctxt) in parse_object()
363 static QObject *parse_array(JSONParserContext *ctxt) in parse_array()
380 QObject *obj; in parse_array()
427 static QObject *parse_keyword(JSONParserContext *ctxt) in parse_keyword()
453 return va_arg(*ctxt->ap, QObject *); in parse_interpolation()
481 static QObject *parse_literal(JSONParserContext *ctxt) in parse_literal()
533 static QObject *parse_value(JSONParserContext *ctxt) in parse_value()
[all …]
H A Dqdict.c56 static QDictEntry *alloc_entry(const char *key, QObject *value) in alloc_entry()
72 QObject *qdict_entry_value(const QDictEntry *entry) in qdict_entry_value()
115 void qdict_put_obj(QDict *qdict, const char *key, QObject *value) in qdict_put_obj()
160 QObject *qdict_get(const QDict *qdict, const char *key) in qdict_get()
400 bool qdict_is_equal(const QObject *x, const QObject *y) in qdict_is_equal()
411 const QObject *obj_x = qdict_entry_value(e); in qdict_is_equal()
412 const QObject *obj_y = qdict_get(dict_y, qdict_entry_key(e)); in qdict_is_equal()
425 void qdict_destroy_obj(QObject *obj) in qdict_destroy_obj()
H A Dqbool.c45 bool qbool_is_equal(const QObject *x, const QObject *y) in qbool_is_equal()
54 void qbool_destroy_obj(QObject *obj) in qbool_destroy_obj()
H A Dblock-qdict.c27 QObject *val; in qdict_copy_default()
57 QObject *value; in qdict_flatten_qlist()
96 QObject *value; in qdict_flatten_qdict()
225 QObject *subqobj; in qdict_array_split()
423 QObject *qdict_crumple(const QDict *src, Error **errp) in qdict_crumple()
429 QObject *dst = NULL, *child; in qdict_crumple()
548 static QObject *qdict_crumple_for_keyval_qiv(QDict *src, Error **errp) in qdict_crumple_for_keyval_qiv()
554 QObject *dst; in qdict_crumple_for_keyval_qiv()
609 QObject *subqobj; in qdict_array_entries()
695 QObject *qobj; in qdict_rename_keys()
[all …]
H A Dqlit.c31 QObject *obj = qdict_get(qdict, lhs->value.qdict[i].key); in qlit_equal_qdict()
53 QObject *obj = qlist_entry_obj(e); in qlit_equal_qlist()
64 bool qlit_equal_qobject(const QLitObject *lhs, const QObject *rhs) in qlit_equal_qobject()
91 QObject *qobject_from_qlit(const QLitObject *qlit) in qobject_from_qlit()
H A Dqstring.c84 bool qstring_is_equal(const QObject *x, const QObject *y) in qstring_is_equal()
94 void qstring_destroy_obj(QObject *obj) in qstring_destroy_obj()
H A Dqnull.c28 bool qnull_is_equal(const QObject *x, const QObject *y) in qnull_is_equal()
/qemu/include/qapi/qmp/
H A Dqobject.h44 struct QObject { struct
55 _obj ? container_of(&_obj->base, QObject, base) : NULL; \
73 static inline void qobject_ref_impl(QObject *obj) in qobject_ref_impl()
87 bool qobject_is_equal(const QObject *x, const QObject *y);
93 void qobject_destroy(QObject *obj);
95 static inline void qobject_unref_impl(QObject *obj) in qobject_unref_impl()
124 static inline QType qobject_type(const QObject *obj) in qobject_type()
135 static inline QObject *qobject_check_type(const QObject *obj, QType type) in qobject_check_type()
138 return (QObject *)obj; in qobject_check_type()
H A Dqjson.h17 QObject *qobject_from_json(const char *string, Error **errp);
19 QObject *qobject_from_vjsonf_nofail(const char *string, va_list ap)
21 QObject *qobject_from_jsonf_nofail(const char *string, ...)
28 GString *qobject_to_json(const QObject *obj);
29 GString *qobject_to_json_pretty(const QObject *obj, bool pretty);
H A Dqlist.h20 QObject *value;
46 static inline QObject *qlist_entry_obj(const QListEntry *entry) in qlist_entry_obj()
53 void qlist_append_obj(QList *qlist, QObject *obj);
54 QObject *qlist_pop(QList *qlist);
55 QObject *qlist_peek(QList *qlist);
H A Dqdict.h23 QObject *value;
40 QObject *qdict_entry_value(const QDictEntry *entry);
42 void qdict_put_obj(QDict *qdict, const char *key, QObject *value);
45 QObject *qdict_get(const QDict *qdict, const char *key);
/qemu/qapi/
H A Dqobject-input-visitor.c35 QObject *obj; /* QDict or QList being visited */
49 QObject *root;
124 QObject *qobj; in qobject_input_try_get_object()
125 QObject *ret; in qobject_input_try_get_object()
164 static QObject *qobject_input_get_object(QObjectInputVisitor *qiv, in qobject_input_get_object()
168 QObject *obj = qobject_input_try_get_object(qiv, name, consume); in qobject_input_get_object()
180 QObject *qobj; in qobject_input_get_keyval()
282 QObject *qobj = qobject_input_get_object(qiv, name, true, errp); in qobject_input_start_struct()
717 Visitor *qobject_input_visitor_new(QObject *obj) in qobject_input_visitor_new()
732 Visitor *qobject_input_visitor_new_keyval(QObject *obj) in qobject_input_visitor_new_keyval()
[all …]
H A Dqobject-output-visitor.c28 QObject *value;
37 QObject *root; /* Root of the output visit */
38 QObject **result; /* User's storage location for result */
65 static QObject *qobject_output_pop(QObjectOutputVisitor *qov, void *qapi) in qobject_output_pop()
68 QObject *value; in qobject_output_pop()
83 QObject *value) in qobject_output_add_obj()
86 QObject *cur = e ? e->value : NULL; in qobject_output_add_obj()
122 QObject *value = qobject_output_pop(qov, obj); in qobject_output_end_struct()
147 QObject *value = qobject_output_pop(qov, obj); in qobject_output_end_list()
196 QObject **obj, Error **errp) in qobject_output_type_any()
[all …]
H A Dqmp-dispatch.c28 Visitor *qobject_input_visitor_new_qmp(QObject *obj) in qobject_input_visitor_new_qmp()
36 Visitor *qobject_output_visitor_new_qmp(QObject **result) in qobject_output_visitor_new_qmp()
50 const QObject *arg_obj; in qmp_dispatch_check_obj()
117 QObject **ret;
137 QDict *coroutine_mixed_fn qmp_dispatch(const QmpCommandList *cmds, QObject *request, in qmp_dispatch()
146 QObject *id; in qmp_dispatch()
147 QObject *ret = NULL; in qmp_dispatch()
/qemu/tests/unit/
H A Dcheck-qjson.c914 QObject *obj; in keyword_literal()
968 QObject *qobj; in interpolation_valid()
1085 QObject *obj; in simple_dict()
1143 QObject *obj; in large_dict()
1194 QObject *obj; in simple_list()
1276 QObject *obj; in simple_interpolation()
1298 QObject *obj; in empty_input()
1308 QObject *obj; in blank_input()
1319 QObject *obj; in junk_input()
1449 QObject *obj; in limits_nesting()
[all …]
H A Dcheck-qlit.c37 static QObject *make_qobject(void) in make_qobject()
56 QObject *qobj = make_qobject(); in qlit_equal_qobject_test()
70 QObject *obj, *qobj = qobject_from_qlit(&qlit); in qobject_from_qlit_test()
/qemu/util/
H A Dkeyval.c145 static QObject *keyval_parse_put(QDict *cur, in keyval_parse_put()
150 QObject *old, *new; in keyval_parse_put()
193 QObject *next; in keyval_parse_one()
326 QObject *old_value; in keyval_do_merge()
402 static QObject *keyval_listify(QDict *cur, GSList *key_of_cur, Error **errp) in keyval_listify()
408 QObject *val; in keyval_listify()
411 QObject **elt; in keyval_listify()
457 elt = g_new0(QObject *, nelt); in keyval_listify()
524 QObject *listified; in keyval_parse_into()
/qemu/qom/
H A Dqom-qobject.c21 const char *name, QObject *value, in object_property_set_qobject()
33 QObject *object_property_get_qobject(Object *obj, const char *name, in object_property_get_qobject()
36 QObject *ret = NULL; in object_property_get_qobject()
/qemu/monitor/
H A Dqmp.c67 QObject *req;
134 const QObject *data = QOBJECT(rsp); in qmp_send_response()
163 static void monitor_qmp_dispatch(MonitorQMP *mon, QObject *req) in monitor_qmp_dispatch()
328 QObject *id = qdict ? qdict_get(qdict, "id") : NULL; in monitor_qmp_dispatcher_co()
364 static void handle_qmp_command(void *opaque, QObject *req, Error *err) in handle_qmp_command()
381 QObject *id = qdict_get(qdict, "id"); in handle_qmp_command()
438 QObject *ver = NULL; in qmp_greeting()
/qemu/include/qom/
H A Dqom-qobject.h25 struct QObject *object_property_get_qobject(Object *obj, const char *name,
40 const char *name, struct QObject *value,
/qemu/include/qapi/
H A Dqobject-input-visitor.h59 Visitor *qobject_input_visitor_new(QObject *obj);
68 Visitor *qobject_input_visitor_new_keyval(QObject *obj);

1234