From patchwork Tue Oct 19 10:33:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 68306 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 56F5FB70DE for ; Tue, 19 Oct 2010 21:37:34 +1100 (EST) Received: from localhost ([127.0.0.1]:41707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P89ZS-0006r2-Cd for incoming@patchwork.ozlabs.org; Tue, 19 Oct 2010 06:37:30 -0400 Received: from [140.186.70.92] (port=33037 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P89Vn-0005XA-E2 for qemu-devel@nongnu.org; Tue, 19 Oct 2010 06:34:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P89Vf-0004nZ-JK for qemu-devel@nongnu.org; Tue, 19 Oct 2010 06:33:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P89Vf-0004nK-Cj for qemu-devel@nongnu.org; Tue, 19 Oct 2010 06:33:35 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9JAXYH1027411 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 19 Oct 2010 06:33:34 -0400 Received: from playa.tlv.redhat.com (dhcp-2-227.tlv.redhat.com [10.35.2.227]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9JAXW5p010122 for ; Tue, 19 Oct 2010 06:33:33 -0400 From: Alon Levy To: qemu-devel@nongnu.org Date: Tue, 19 Oct 2010 12:33:29 +0200 Message-Id: <1287484411-13611-2-git-send-email-alevy@redhat.com> In-Reply-To: <1287484411-13611-1-git-send-email-alevy@redhat.com> References: <1287484411-13611-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 1/3] qdev: make qdev_find_recursive public X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org --- hw/qdev.c | 2 +- hw/qdev.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 35858cb..d669a9d 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -477,7 +477,7 @@ static BusState *qbus_find_recursive(BusState *bus, const char *name, return NULL; } -static DeviceState *qdev_find_recursive(BusState *bus, const char *id) +DeviceState *qdev_find_recursive(BusState *bus, const char *id) { DeviceState *dev, *ret; BusState *child; diff --git a/hw/qdev.h b/hw/qdev.h index 579328a..214066e 100644 --- a/hw/qdev.h +++ b/hw/qdev.h @@ -177,6 +177,7 @@ void qbus_create_inplace(BusState *bus, BusInfo *info, DeviceState *parent, const char *name); BusState *qbus_create(BusInfo *info, DeviceState *parent, const char *name); void qbus_free(BusState *bus); +DeviceState *qdev_find_recursive(BusState *bus, const char *id); #define FROM_QBUS(type, dev) DO_UPCAST(type, qbus, dev)