Home | History | Annotate | Download | only in qemu

Lines Matching refs:obj

22 static void qdict_destroy_obj(QObject *obj);
47 QDict *qobject_to_qdict(const QObject *obj)
49 if (qobject_type(obj) != QTYPE_QDICT)
52 return container_of(obj, QDict, base);
169 QObject *obj;
171 obj = qdict_get(qdict, key);
172 assert(obj != NULL);
173 assert(qobject_type(obj) == type);
175 return obj;
188 QObject *obj = qdict_get(qdict, key);
190 assert(obj);
191 switch (qobject_type(obj)) {
193 return qfloat_get_double(qobject_to_qfloat(obj));
195 return qint_get_int(qobject_to_qint(obj));
211 QObject *obj = qdict_get_obj(qdict, key, QTYPE_QINT);
212 return qint_get_int(qobject_to_qint(obj));
225 QObject *obj = qdict_get_obj(qdict, key, QTYPE_QBOOL);
226 return qbool_get_int(qobject_to_qbool(obj));
266 QObject *obj = qdict_get_obj(qdict, key, QTYPE_QSTRING);
267 return qstring_get_str(qobject_to_qstring(obj));
280 QObject *obj;
282 obj = qdict_get(qdict, key);
283 if (!obj || qobject_type(obj) != QTYPE_QINT)
286 return qint_get_int(qobject_to_qint(obj));
299 QObject *obj;
301 obj = qdict_get(qdict, key);
302 if (!obj || qobject_type(obj) != QTYPE_QSTRING)
305 return qstring_get_str(qobject_to_qstring(obj));
315 void (*iter)(const char *key, QObject *obj, void *opaque),
361 static void qdict_destroy_obj(QObject *obj)
366 assert(obj != NULL);
367 qdict = qobject_to_qdict(obj);