mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-03 16:05:47 +00:00
qapi/qnull: Add own header
Backports commit 84be629d5545b5ccc5bff2824e4288677e27de9c from qemu
This commit is contained in:
parent
f89de73110
commit
e42e3307f7
|
@ -15,7 +15,6 @@
|
|||
|
||||
#include "qapi/qmp/qobject.h"
|
||||
#include "qapi/qmp/qlist.h"
|
||||
#include "qapi/qmp/qnum.h"
|
||||
#include "qemu/queue.h"
|
||||
#include "unicorn/platform.h"
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#define QLIST_H
|
||||
|
||||
#include "qapi/qmp/qobject.h"
|
||||
#include "qapi/qmp/qnum.h"
|
||||
#include "qemu/queue.h"
|
||||
|
||||
typedef struct QListEntry {
|
||||
|
|
30
qemu/include/qapi/qmp/qnull.h
Normal file
30
qemu/include/qapi/qmp/qnull.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* QNull
|
||||
*
|
||||
* Copyright (C) 2015 Red Hat, Inc.
|
||||
*
|
||||
* Authors:
|
||||
* Markus Armbruster <armbru@redhat.com>
|
||||
*
|
||||
* This work is licensed under the terms of the GNU LGPL, version 2.1
|
||||
* or later. See the COPYING.LIB file in the top-level directory.
|
||||
*/
|
||||
|
||||
#ifndef QNULL_H
|
||||
#define QNULL_H
|
||||
|
||||
#include "qapi/qmp/qobject.h"
|
||||
|
||||
struct QNull {
|
||||
QObject base;
|
||||
};
|
||||
|
||||
extern QNull qnull_;
|
||||
|
||||
static inline QNull *qnull(void)
|
||||
{
|
||||
QINCREF(&qnull_);
|
||||
return &qnull_;
|
||||
}
|
||||
|
||||
#endif /* QNULL_H */
|
|
@ -99,16 +99,4 @@ static inline QType qobject_type(const QObject *obj)
|
|||
return obj->type;
|
||||
}
|
||||
|
||||
struct QNull {
|
||||
QObject base;
|
||||
};
|
||||
|
||||
extern QNull qnull_;
|
||||
|
||||
static inline QNull *qnull(void)
|
||||
{
|
||||
QINCREF(&qnull_);
|
||||
return &qnull_;
|
||||
}
|
||||
|
||||
#endif /* QOBJECT_H */
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "qapi/clone-visitor.h"
|
||||
#include "qapi/visitor-impl.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qnull.h"
|
||||
|
||||
struct QapiCloneVisitor {
|
||||
Visitor visitor;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "qapi/string-input-visitor.h"
|
||||
#include "qapi/visitor-impl.h"
|
||||
#include "qapi/qmp/qerror.h"
|
||||
#include "qapi/qmp/qnull.h"
|
||||
#include "qemu/queue.h"
|
||||
#include "qemu/range.h"
|
||||
#include <stdlib.h> // strtoll
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qapi/qmp/qobject.h"
|
||||
#include "qapi/qmp/qnull.h"
|
||||
|
||||
QNull qnull_ = {
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue