From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaddH-0007IK-RS for qemu-devel@nongnu.org; Thu, 09 May 2013 23:04:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaddG-00046w-Vb for qemu-devel@nongnu.org; Thu, 09 May 2013 23:04:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaddG-00046k-Nm for qemu-devel@nongnu.org; Thu, 09 May 2013 23:04:30 -0400 Date: Fri, 10 May 2013 11:04:22 +0800 From: Amos Kong Message-ID: <20130510030422.GA9013@t430s.nay.redhat.com> References: <1368152462-13219-1-git-send-email-mdroth@linux.vnet.ibm.com> <1368152462-13219-2-git-send-email-mdroth@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1368152462-13219-2-git-send-email-mdroth@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH 01/10] qapi: qapi-types.py, native list support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth Cc: lersek@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com On Thu, May 09, 2013 at 09:20:53PM -0500, Michael Roth wrote: > Teach type generators about native types so they can generate the > appropriate linked list types. > > Signed-off-by: Michael Roth > --- > scripts/qapi-types.py | 43 ++++++++++++++++++++++++++++++++++++++++--- > scripts/qapi.py | 21 +++++++++++++++++++++ > 2 files changed, 61 insertions(+), 3 deletions(-) > > diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py > index 9e19920..96cb26d 100644 > --- a/scripts/qapi-types.py > +++ b/scripts/qapi-types.py > @@ -16,7 +16,18 @@ import os > import getopt > import errno > diff --git a/scripts/qapi.py b/scripts/qapi.py > index afc5f32..0ac8c2b 100644 > --- a/scripts/qapi.py > +++ b/scripts/qapi.py > @@ -11,6 +11,10 @@ > > from ordereddict import OrderedDict > > +builtin_types = [ > + 'str', 'int', 'number', 'bool' Will we add size, int8, uint32, ... in future when they are needed? > +] > + -- Amos.