From patchwork Tue Feb 23 11:26:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 8390971 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 40062C0553 for ; Tue, 23 Feb 2016 11:29:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B61920274 for ; Tue, 23 Feb 2016 11:29:57 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8F9CA20270 for ; Tue, 23 Feb 2016 11:29:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aYB7b-0001zt-Hb; Tue, 23 Feb 2016 11:27:15 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aYB7Y-0001zM-VF for xen-devel@lists.xen.org; Tue, 23 Feb 2016 11:27:13 +0000 Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id 8F/40-02994-0124CC65; Tue, 23 Feb 2016 11:27:12 +0000 X-Env-Sender: olaf@aepfle.de X-Msg-Ref: server-6.tower-206.messagelabs.com!1456226831!24040765!1 X-Originating-IP: [81.169.146.160] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: QmFkIElQOiA4MS4xNjkuMTQ2LjE2MCA9PiA1NTc3MTg=\n,sa_preprocessor: QmFkIElQOiA4MS4xNjkuMTQ2LjE2MCA9PiA1NTc3MTg=\n X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 53669 invoked from network); 23 Feb 2016 11:27:11 -0000 Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.160) by server-6.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 23 Feb 2016 11:27:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1456226830; l=1269; s=domk; d=aepfle.de; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Date: Subject:Cc:To:From; bh=D5Om89Z49zYk7KY8iGB5OHVj0Rk/B9wCVoG33d1FQX8=; b=X8AUDSKxgm40Lc2QXUJfR9G8AFC+AwcT7H95XiZM62dK8/olZOKz1nBi5G1DJvwSBoB 5n0BNnqjSrjsbUjm6OHtSj03nUFIyzpSwp7ynS3Rk9D+RFgxROZPtG2BZTGM4N9UL3YKw jcMw4U0fdadidL2HrItkfj9x2Y4wb8YTzn8= X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWi/zfN1cLnDYUgqTAeBk4W9EFtcJhQlEigjKrHZjO+/XyMB8ZtmWA== X-RZG-CLASS-ID: mo00 Received: from probook ([2001:a62:113c:45ff:2082:fb69:3bad:17fe]) by smtp.strato.de (RZmta 37.19 AUTH) with ESMTPSA id D02756s1NBRAdih (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 23 Feb 2016 12:27:10 +0100 (CET) Received: by probook (Postfix, from userid 1000) id 894EC5069B; Tue, 23 Feb 2016 12:27:07 +0100 (CET) From: Olaf Hering To: xen-devel@lists.xen.org Date: Tue, 23 Feb 2016 11:26:56 +0000 Message-Id: <1456226821-24545-2-git-send-email-olaf@aepfle.de> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456226821-24545-1-git-send-email-olaf@aepfle.de> References: <1456226821-24545-1-git-send-email-olaf@aepfle.de> MIME-Version: 1.0 Cc: Wei Liu , Olaf Hering , Ian Jackson , Ian Campbell , Stefano Stabellini Subject: [Xen-devel] [PATCH v9 1/6] libxl: Export libxl__device_nextid for internal use X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Olaf Hering Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Acked-by: Wei Liu --- tools/libxl/libxl.c | 2 +- tools/libxl/libxl_internal.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 2bde0f5..0b16618 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -2031,7 +2031,7 @@ out: } /* common function to get next device id */ -static int libxl__device_nextid(libxl__gc *gc, uint32_t domid, char *device) +int libxl__device_nextid(libxl__gc *gc, uint32_t domid, char *device) { char *dompath, **l; unsigned int nb; diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index b194e65..46f3e3e 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -1178,6 +1178,7 @@ _hidden int libxl__init_console_from_channel(libxl__gc *gc, libxl__device_console *console, int dev_num, libxl_device_channel *channel); +_hidden int libxl__device_nextid(libxl__gc *gc, uint32_t domid, char *device); /* * For each aggregate type which can be used as an input we provide: