qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

qapi/qnull: Add own header

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: 20171114180128.17076-2-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>

+36 -14
+1
include/qapi/qmp/qdict.h
··· 15 15 16 16 #include "qapi/qmp/qobject.h" 17 17 #include "qapi/qmp/qlist.h" 18 + #include "qapi/qmp/qnull.h" 18 19 #include "qapi/qmp/qnum.h" 19 20 #include "qemu/queue.h" 20 21
+30
include/qapi/qmp/qnull.h
··· 1 + /* 2 + * QNull 3 + * 4 + * Copyright (C) 2015 Red Hat, Inc. 5 + * 6 + * Authors: 7 + * Markus Armbruster <armbru@redhat.com> 8 + * 9 + * This work is licensed under the terms of the GNU LGPL, version 2.1 10 + * or later. See the COPYING.LIB file in the top-level directory. 11 + */ 12 + 13 + #ifndef QNULL_H 14 + #define QNULL_H 15 + 16 + #include "qapi/qmp/qobject.h" 17 + 18 + struct QNull { 19 + QObject base; 20 + }; 21 + 22 + extern QNull qnull_; 23 + 24 + static inline QNull *qnull(void) 25 + { 26 + QINCREF(&qnull_); 27 + return &qnull_; 28 + } 29 + 30 + #endif /* QNULL_H */
-12
include/qapi/qmp/qobject.h
··· 93 93 return obj->type; 94 94 } 95 95 96 - struct QNull { 97 - QObject base; 98 - }; 99 - 100 - extern QNull qnull_; 101 - 102 - static inline QNull *qnull(void) 103 - { 104 - QINCREF(&qnull_); 105 - return &qnull_; 106 - } 107 - 108 96 #endif /* QOBJECT_H */
+1
include/qapi/qmp/types.h
··· 19 19 #include "qapi/qmp/qstring.h" 20 20 #include "qapi/qmp/qdict.h" 21 21 #include "qapi/qmp/qlist.h" 22 + #include "qapi/qmp/qnull.h" 22 23 23 24 #endif /* QAPI_QMP_TYPES_H */
+1
qapi/qapi-clone-visitor.c
··· 12 12 #include "qapi/clone-visitor.h" 13 13 #include "qapi/visitor-impl.h" 14 14 #include "qapi/error.h" 15 + #include "qapi/qmp/qnull.h" 15 16 16 17 struct QapiCloneVisitor { 17 18 Visitor visitor;
+1
qapi/string-input-visitor.c
··· 16 16 #include "qapi/string-input-visitor.h" 17 17 #include "qapi/visitor-impl.h" 18 18 #include "qapi/qmp/qerror.h" 19 + #include "qapi/qmp/qnull.h" 19 20 #include "qemu/option.h" 20 21 #include "qemu/queue.h" 21 22 #include "qemu/range.h"
+1 -1
qobject/qnull.c
··· 12 12 13 13 #include "qemu/osdep.h" 14 14 #include "qemu-common.h" 15 - #include "qapi/qmp/qobject.h" 15 + #include "qapi/qmp/qnull.h" 16 16 17 17 QNull qnull_ = { 18 18 .base = {
+1 -1
tests/check-qnull.c
··· 8 8 */ 9 9 #include "qemu/osdep.h" 10 10 11 - #include "qapi/qmp/qobject.h" 11 + #include "qapi/qmp/qnull.h" 12 12 #include "qemu-common.h" 13 13 #include "qapi/qobject-input-visitor.h" 14 14 #include "qapi/qobject-output-visitor.h"