From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TK9EI-0000AK-TM for qemu-devel@nongnu.org; Fri, 05 Oct 2012 10:50:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TK9EH-0001HW-Fk for qemu-devel@nongnu.org; Fri, 05 Oct 2012 10:50:18 -0400 Received: from mail-oa0-f45.google.com ([209.85.219.45]:54781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TK9EH-0001G1-AK for qemu-devel@nongnu.org; Fri, 05 Oct 2012 10:50:17 -0400 Received: by mail-oa0-f45.google.com with SMTP id i18so1685871oag.4 for ; Fri, 05 Oct 2012 07:50:16 -0700 (PDT) Sender: fluxion Date: Fri, 5 Oct 2012 09:50:08 -0500 From: Michael Roth Message-ID: <20121005145008.GJ16157@illuin> References: <1349372021-31212-1-git-send-email-mdroth@linux.vnet.ibm.com> <1349372021-31212-22-git-send-email-mdroth@linux.vnet.ibm.com> <506E96D1.8040005@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <506E96D1.8040005@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 21/22] qidl: qidl.h, definitions for qidl annotations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, peter.maydell@linaro.org, aliguori@us.ibm.com, qemu-devel@nongnu.org, blauwirbel@gmail.com, eblake@redhat.com On Fri, Oct 05, 2012 at 10:14:09AM +0200, Paolo Bonzini wrote: > Il 04/10/2012 19:33, Michael Roth ha scritto: > > +#define QIDL_SCHEMA_ADD_LINK(name, obj, path, errp) \ > > + g_assert(qidl_data_##name.schema_obj); \ > > + object_property_add_link(obj, path, "container", \ > > Why "container" as the type? I needed a path in the QOM tree where I can stick the json schema property, so I just used a "container" object, which is what this link points to. Don't have any plans on using the object for anything beyond that atm, so didn't really make sense to me to define a new object type. > > Paolo > > > + &qidl_data_##name.schema_obj, errp) > > + > >