From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQHF1-0003I0-Es for qemu-devel@nongnu.org; Mon, 22 Oct 2012 08:36:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQHEv-0003gs-PF for qemu-devel@nongnu.org; Mon, 22 Oct 2012 08:36:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQHEv-0003gk-H7 for qemu-devel@nongnu.org; Mon, 22 Oct 2012 08:36:17 -0400 Date: Mon, 22 Oct 2012 14:36:01 +0200 From: Igor Mammedov Message-ID: <20121022143601.3f8049a1@nial.usersys.redhat.com> In-Reply-To: <1350414523-8117-12-git-send-email-ehabkost@redhat.com> References: <1350414523-8117-1-git-send-email-ehabkost@redhat.com> <1350414523-8117-12-git-send-email-ehabkost@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Eduardo Habkost Cc: peter.maydell@linaro.org, riku.voipio@iki.fi, qemu-devel@nongnu.org, blauwirbel@gmail.com, Anthony Liguori , Andreas =?ISO-8859-1?B?RuRyYmVy?= 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"