mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qlit: use QLit prefix consistently
Rename from LiteralQ to QLit. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20170825105913.4060-4-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
28035bcdf4
commit
082696e767
3 changed files with 34 additions and 34 deletions
|
@ -17,33 +17,33 @@
|
|||
#include "qapi-types.h"
|
||||
#include "qobject.h"
|
||||
|
||||
typedef struct LiteralQDictEntry LiteralQDictEntry;
|
||||
typedef struct LiteralQObject LiteralQObject;
|
||||
typedef struct QLitDictEntry QLitDictEntry;
|
||||
typedef struct QLitObject QLitObject;
|
||||
|
||||
struct LiteralQObject {
|
||||
struct QLitObject {
|
||||
int type;
|
||||
union {
|
||||
int64_t qnum;
|
||||
const char *qstr;
|
||||
LiteralQDictEntry *qdict;
|
||||
LiteralQObject *qlist;
|
||||
QLitDictEntry *qdict;
|
||||
QLitObject *qlist;
|
||||
} value;
|
||||
};
|
||||
|
||||
struct LiteralQDictEntry {
|
||||
struct QLitDictEntry {
|
||||
const char *key;
|
||||
LiteralQObject value;
|
||||
QLitObject value;
|
||||
};
|
||||
|
||||
#define QLIT_QNUM(val) \
|
||||
(LiteralQObject){.type = QTYPE_QNUM, .value.qnum = (val)}
|
||||
(QLitObject){.type = QTYPE_QNUM, .value.qnum = (val)}
|
||||
#define QLIT_QSTR(val) \
|
||||
(LiteralQObject){.type = QTYPE_QSTRING, .value.qstr = (val)}
|
||||
(QLitObject){.type = QTYPE_QSTRING, .value.qstr = (val)}
|
||||
#define QLIT_QDICT(val) \
|
||||
(LiteralQObject){.type = QTYPE_QDICT, .value.qdict = (val)}
|
||||
(QLitObject){.type = QTYPE_QDICT, .value.qdict = (val)}
|
||||
#define QLIT_QLIST(val) \
|
||||
(LiteralQObject){.type = QTYPE_QLIST, .value.qlist = (val)}
|
||||
(QLitObject){.type = QTYPE_QLIST, .value.qlist = (val)}
|
||||
|
||||
int compare_litqobj_to_qobj(LiteralQObject *lhs, QObject *rhs);
|
||||
int compare_litqobj_to_qobj(QLitObject *lhs, QObject *rhs);
|
||||
|
||||
#endif /* QLIT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue