Received: from eggs.gnu.org ([208.118.235.92]:42415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQHL6-0005Hu-Ba for qemu-devel@nongnu.org; Mon, 22 Oct 2012 08:42:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQHKy-0005JV-1z for qemu-devel@nongnu.org; Mon, 22 Oct 2012 08:42:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQHKx-0005JJ-Pz for qemu-devel@nongnu.org; Mon, 22 Oct 2012 08:42:31 -0400 Date: Mon, 22 Oct 2012 10:43:13 -0200 From: Eduardo Habkost Message-ID: <20121022124313.GC16289@otherpad.lan.raisama.net> References: <1350414523-8117-1-git-send-email-ehabkost@redhat.com> <1350414523-8117-12-git-send-email-ehabkost@redhat.com> <20121022143601.3f8049a1@nial.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121022143601.3f8049a1@nial.usersys.redhat.com> Subject: Re: [Qemu-devel] [PATCH 11/12] include core qdev code into *-user, too List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: peter.maydell@linaro.org, riku.voipio@iki.fi, qemu-devel@nongnu.org, blauwirbel@gmail.com, Anthony Liguori , Andreas =?iso-8859-1?Q?F=E4rber?= On Mon, Oct 22, 2012 at 02:36:01PM +0200, Igor Mammedov wrote: > On Tue, 16 Oct 2012 16:08:42 -0300 > Eduardo Habkost wrote: > [...] > > diff --git a/qom/qdev-properties.c b/qom/qdev-properties.c > > new file mode 100644 > > index 0000000..2e82cb9 > > --- /dev/null > > +++ b/qom/qdev-properties.c > [...] > > +void qdev_prop_set_globals(DeviceState *dev) > > +{ > > + ObjectClass *class = object_get_class(OBJECT(dev)); > > + > > + do { > > + GlobalProperty *prop; > > + QTAILQ_FOREACH(prop, &global_props, next) { > > + if (strcmp(object_class_get_name(class), prop->driver) != 0) { > > + continue; > > + } > > + if (qdev_prop_parse(dev, prop->property, prop->value) != 0) { > > + exit(1); > > + } > > + } > > + class = object_class_get_parent(class); > > + } while (class); > > +} > > + > ^^^ git complains "whitespace line at EOF" I will fix it on the next version. Thanks. -- Eduardo