Received: from eggs.gnu.org ([2001:4830:134:3::10]:52701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7Mvq-0003uT-B3 for qemu-devel@nongnu.org; Thu, 17 Nov 2016 08:40:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7Mvn-0004qt-8E for qemu-devel@nongnu.org; Thu, 17 Nov 2016 08:40:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58300) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c7Mvn-0004pd-2D for qemu-devel@nongnu.org; Thu, 17 Nov 2016 08:40:47 -0500 Date: Thu, 17 Nov 2016 11:40:44 -0200 From: Eduardo Habkost Message-ID: <20161117134044.GV5057@thinpad.lan.raisama.net> References: <1479322664-2253-1-git-send-email-ehabkost@redhat.com> <1479322664-2253-3-git-send-email-ehabkost@redhat.com> <878tsil2bc.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878tsil2bc.fsf@dusky.pond.sub.org> Subject: Re: [Qemu-devel] [PATCH for-2.9 2/2] qdev: Change signature of PropertyInfo::release List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, Andreas =?iso-8859-1?Q?F=E4rber?= On Thu, Nov 17, 2016 at 01:26:47PM +0100, Markus Armbruster wrote: [...] > The transformation looks correct to me, but I'm not sure it's > worthwhile. > > Moreover, it creates an inconsistency between set()/get() and release(), > both here and in the concrete implementations. For instance, > get_string() and set_string() continue to take obj, name, opaque, while > release_string() is changed to take dev, prop. I don't like that. My main goal was just to make it more difficult to mistakenly use the qdev propery release functions (that should be called at object destruction time) as the release functions for class properties (that should be called at class destruction time). But this is not as important if patch 1/2 removes the class property release functions. We can drop this patch. -- Eduardo