2 * Copyright IBM, Corp. 2009
3 * Copyright (c) 2013, 2015, 2017 Red Hat Inc.
6 * Anthony Liguori <aliguori@us.ibm.com>
7 * Markus Armbruster <armbru@redhat.com>
8 * Marc-André Lureau <marcandre.lureau@redhat.com>
10 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
11 * See the COPYING.LIB file in the top-level directory.
19 typedef struct QLitDictEntry QLitDictEntry
;
20 typedef struct QLitObject QLitObject
;
33 struct QLitDictEntry
{
39 { .type = QTYPE_QNULL }
40 #define QLIT_QBOOL(val) \
41 { .type = QTYPE_QBOOL, .value.qbool = (val) }
42 #define QLIT_QNUM(val) \
43 { .type = QTYPE_QNUM, .value.qnum = (val) }
44 #define QLIT_QSTR(val) \
45 { .type = QTYPE_QSTRING, .value.qstr = (val) }
46 #define QLIT_QDICT(val) \
47 { .type = QTYPE_QDICT, .value.qdict = (val) }
48 #define QLIT_QLIST(val) \
49 { .type = QTYPE_QLIST, .value.qlist = (val) }
51 bool qlit_equal_qobject(const QLitObject
*lhs
, const QObject
*rhs
);
53 QObject
*qobject_from_qlit(const QLitObject
*qlit
);