From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Me9JW-0007L5-Dp for qemu-devel@nongnu.org; Thu, 20 Aug 2009 11:12:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Me9JR-0007J6-Qo for qemu-devel@nongnu.org; Thu, 20 Aug 2009 11:12:30 -0400 Received: from [199.232.76.173] (port=59500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Me9JR-0007J2-Mh for qemu-devel@nongnu.org; Thu, 20 Aug 2009 11:12:25 -0400 Date: Thu, 20 Aug 2009 12:12:12 -0300 From: Luiz Capitulino Message-ID: <20090820121212.56936c79@doriath> In-Reply-To: <4A8D5C06.2040802@gnu.org> References: <1250723280-3509-1-git-send-email-lcapitulino@redhat.com> <1250723280-3509-2-git-send-email-lcapitulino@redhat.com> <4A8D0AA6.3010807@gnu.org> <20090820111713.09bcc1c6@doriath> <4A8D5C06.2040802@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 01/29] Introduce QObject List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, avi@redhat.com On Thu, 20 Aug 2009 16:21:58 +0200 Paolo Bonzini wrote: > On 08/20/2009 04:17 PM, Luiz Capitulino wrote: > > On Thu, 20 Aug 2009 10:34:46 +0200 > > Paolo Bonzini wrote: > > > >> > >>> +/* High-level interface for qobject_incref() */ > >>> +#define QINCREF(qtype) \ > >>> +#define QDECREF(qtype) \ > >> > >> Why "qtype"? > > > > Why not? > > Because it's an object, not a type. :-) Actually, I'm calling anything with QType_HEAD a QType, this implies that QINCREF() and QDECREF() expects a QType while qobject_decref() and qobject_incref() expects a QObject.