From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4vEe-0007at-Vr for qemu-devel@nongnu.org; Fri, 24 Aug 2012 10:51:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4vEd-0005Td-K3 for qemu-devel@nongnu.org; Fri, 24 Aug 2012 10:51:44 -0400 Received: from mail-ey0-f173.google.com ([209.85.215.173]:38582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4vEd-0005TX-D5 for qemu-devel@nongnu.org; Fri, 24 Aug 2012 10:51:43 -0400 Received: by eaac13 with SMTP id c13so613476eaa.4 for ; Fri, 24 Aug 2012 07:51:42 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <503794FC.4070207@redhat.com> Date: Fri, 24 Aug 2012 16:51:40 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1345801763-24227-1-git-send-email-qemulist@gmail.com> <1345801763-24227-4-git-send-email-qemulist@gmail.com> In-Reply-To: <1345801763-24227-4-git-send-email-qemulist@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 03/10] qom: export object_property_is_child, object_property_is_link List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Ping Fan Cc: Liu Ping Fan , qemu-devel@nongnu.org, Anthony Liguori , Avi Kivity Il 24/08/2012 11:49, Liu Ping Fan ha scritto: > From: Liu Ping Fan > > qdev will use them to judge how to remove the bus and device's > reference. So export them in object.h This series doesn't use them. Paolo > Signed-off-by: Liu Ping Fan > --- > include/qemu/object.h | 3 +++ > qom/object.c | 4 ++-- > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/include/qemu/object.h b/include/qemu/object.h > index cc75fee..7cc3ebb 100644 > --- a/include/qemu/object.h > +++ b/include/qemu/object.h > @@ -431,6 +431,9 @@ struct InterfaceClass > #define INTERFACE_CHECK(interface, obj, name) \ > ((interface *)object_dynamic_cast_assert(OBJECT((obj)), (name))) > > +inline bool object_property_is_child(ObjectProperty *prop); > +inline bool object_property_is_link(ObjectProperty *prop); > + > /** > * object_new: > * @typename: The name of the type of the object to instantiate. > diff --git a/qom/object.c b/qom/object.c > index 00f98d7..be460df 100644 > --- a/qom/object.c > +++ b/qom/object.c > @@ -318,12 +318,12 @@ void object_initialize(void *data, const char *typename) > object_initialize_with_type(data, type); > } > > -static inline bool object_property_is_child(ObjectProperty *prop) > +inline bool object_property_is_child(ObjectProperty *prop) > { > return strstart(prop->type, "child<", NULL); > } > > -static inline bool object_property_is_link(ObjectProperty *prop) > +inline bool object_property_is_link(ObjectProperty *prop) > { > return strstart(prop->type, "link<", NULL); > } >