From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbuRZ-0006Ej-OP for qemu-devel@nongnu.org; Tue, 05 Jun 2012 10:09:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbuRS-0004fo-VO for qemu-devel@nongnu.org; Tue, 05 Jun 2012 10:09:09 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:52183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbuRS-0004fT-M5 for qemu-devel@nongnu.org; Tue, 05 Jun 2012 10:09:02 -0400 Received: by dadv2 with SMTP id v2so7950009dad.4 for ; Tue, 05 Jun 2012 07:09:00 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4FCE12F7.9010206@redhat.com> Date: Tue, 05 Jun 2012 16:08:55 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1338858018-17189-1-git-send-email-mdroth@linux.vnet.ibm.com> <1338858018-17189-3-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1338858018-17189-3-git-send-email-mdroth@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 02/17] qidl: add qc definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth Cc: aliguori@us.ibm.com, yamahata@valinux.co.jp, quintela@redhat.com, qemu-devel@nongnu.org, owasserm@redhat.com, akong@redhat.com, afaerber@suse.de Il 05/06/2012 03:00, Michael Roth ha scritto: > Signed-off-by: Michael Roth > --- > qapi/qc.h | 11 +++++++++++ > 1 files changed, 11 insertions(+), 0 deletions(-) > create mode 100644 qapi/qc.h > > diff --git a/qapi/qc.h b/qapi/qc.h > new file mode 100644 > index 0000000..3b3a8b9 > --- /dev/null > +++ b/qapi/qc.h > @@ -0,0 +1,11 @@ > +#ifndef QC_H > +#define QC_H > + > +#define qc_declaration > +#define _immutable > +#define _derived > +#define _broken > +#define _version(x) > +#define _size_is(x) Would it be feasible to make the declaration look like the GCC attribute extension, e.g. struct RTCState QIDL() { int foo QIDL(immutable); int bar QIDL(derived); }; so that you can just use "#define QIDL(...)"? This is how GCC developers did their introspection annotations. Paolo