From patchwork Thu Oct 8 18:58:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark McLoughlin X-Patchwork-Id: 35509 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 78217B6F2B for ; Fri, 9 Oct 2009 06:16:45 +1100 (EST) Received: from localhost ([127.0.0.1]:59962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvyTi-0007eM-KX for incoming@patchwork.ozlabs.org; Thu, 08 Oct 2009 15:16:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvyER-0006Nb-OW for qemu-devel@nongnu.org; Thu, 08 Oct 2009 15:00:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvyEK-0006IS-64 for qemu-devel@nongnu.org; Thu, 08 Oct 2009 15:00:52 -0400 Received: from [199.232.76.173] (port=52366 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvyEJ-0006I0-So for qemu-devel@nongnu.org; Thu, 08 Oct 2009 15:00:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20108) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvyEE-00073k-Vq for qemu-devel@nongnu.org; Thu, 08 Oct 2009 15:00:43 -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 n98J0fTP005462 for ; Thu, 8 Oct 2009 15:00:42 -0400 Received: from blaa.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n98J09gZ013312; Thu, 8 Oct 2009 15:00:20 -0400 Received: by blaa.localdomain (Postfix, from userid 500) id 2240B1DB4F; Thu, 8 Oct 2009 19:58:32 +0100 (IST) From: Mark McLoughlin To: qemu-devel@nongnu.org Date: Thu, 8 Oct 2009 19:58:19 +0100 Message-Id: <1255028312-28180-4-git-send-email-markmc@redhat.com> In-Reply-To: <1255028312-28180-1-git-send-email-markmc@redhat.com> References: <1255028312-28180-1-git-send-email-markmc@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Mark McLoughlin Subject: [Qemu-devel] [PATCH 03/16] net: pass monitor handle to client init functions 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 Needed for e.g. looking up a file descriptor name using monitor_get_fd() in net_init_tap() Signed-off-by: Mark McLoughlin --- net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net.c b/net.c index e93017d..898b9af 100644 --- a/net.c +++ b/net.c @@ -3021,7 +3021,7 @@ int net_client_init(Monitor *mon, QemuOpts *opts) } if (net_client_types[i].init) { - return net_client_types[i].init(opts, NULL); + return net_client_types[i].init(opts, mon); } else { return 0; }