From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzCxN-0008Rz-JX for qemu-devel@nongnu.org; Wed, 18 Nov 2015 19:20:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzCxI-0003yj-LZ for qemu-devel@nongnu.org; Wed, 18 Nov 2015 19:20:09 -0500 Received: from resqmta-po-04v.sys.comcast.net ([96.114.154.163]:36591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzCxI-0003yZ-Fa for qemu-devel@nongnu.org; Wed, 18 Nov 2015 19:20:04 -0500 From: Eric Blake Date: Wed, 18 Nov 2015 17:19:56 -0700 Message-Id: <1447892396-23510-1-git-send-email-eblake@redhat.com> In-Reply-To: <1447836791-369-31-git-send-email-eblake@redhat.com> References: <1447836791-369-31-git-send-email-eblake@redhat.com> Subject: [Qemu-devel] [PATCH] fixup! qapi: Convert QType into qapi builtin enum type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com, Michael Roth [keep the original commit body, but change the title:] qapi: Convert QType into QAPI built-in enum type Signed-off-by: Eric Blake --- include/qemu/typedefs.h | 1 + scripts/qapi-types.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 6b1093d..3c88a05 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -80,6 +80,7 @@ typedef struct QEMUSGList QEMUSGList; typedef struct QEMUSizedBuffer QEMUSizedBuffer; typedef struct QEMUTimerListGroup QEMUTimerListGroup; typedef struct QEMUTimer QEMUTimer; +typedef struct QObject QObject; typedef struct Range Range; typedef struct RAMBlock RAMBlock; typedef struct SerialState SerialState; diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py index 99346ad..82635b0 100644 --- a/scripts/qapi-types.py +++ b/scripts/qapi-types.py @@ -326,8 +326,7 @@ fdef.write(mcgen(''' fdecl.write(mcgen(''' #include #include - -typedef struct QObject QObject; +#include "qemu/typedefs.h" ''')) schema = QAPISchema(input_file) -- 2.4.3