From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOaWl-0003s0-PO for qemu-devel@nongnu.org; Tue, 24 Sep 2013 17:52:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOaWf-0007Pr-Pm for qemu-devel@nongnu.org; Tue, 24 Sep 2013 17:52:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOaWf-0007Pn-I5 for qemu-devel@nongnu.org; Tue, 24 Sep 2013 17:52:09 -0400 Date: Wed, 25 Sep 2013 00:54:24 +0300 From: "Michael S. Tsirkin" Message-ID: <1380059603-2075-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH v2 0/4] qom: add helpers for integer properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: anthony@codemonkey.ws, pbonzini@redhat.com, afaerber@suse.de, stefanha@redhat.com, kraxel@redhat.com Add helper functions for adding read-only properties, that work in the case where the value is in memory. This is part of the ACPI series, since there was a bug here I'm resending just this chunk for more review. Changes from v1: don't pass pointer to visitor directly since it writes there fixes crash reported by Gerd Michael S. Tsirkin (4): qemu: add Error to typedefs qom: pull in qemu/typedefs qom: cleanup struct Error references qom: add pointer to int property helpers include/qemu/typedefs.h | 1 + include/qom/object.h | 73 +++++++++++++++++++++++++++++++------------------ qom/object.c | 60 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+), 26 deletions(-) -- MST