From nobody Mon Feb 9 15:08:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1604305644; cv=none; d=zohomail.com; s=zohoarc; b=Eco6wLRDw0emjNnGb1Wl6S0D46m3PNlIs4PlW++9p2CxQTXV0plB/r+NHxeKF5oyzSaYE3z5VDxnTQvYCXbdHz8fW34t4qkrt9rzfLjr9hdsv0RLuo7oHzpXixjhKVBdp34XtEo7PvkgJjoKEWZ5VgNBVLXHG9KgWa0ERmnbCEQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604305644; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=P2wOQeXibI2JaaTexQMMTRBxNoVCcJi51FJTnCj6w8s=; b=BaABoAdyiH4BjDNYUCHIyIHJWBqDTzTkMu3Jz9MwQ56XgFzE8+cw0kZpd9NeH3I9+t4gtdQPFVaBSg25ARKShd318TafUv9XjQTCLk6ZJ4t5X4NiICtl9LEFXTfHZmahKJZtZ6IZVRo+GwpL6JV4+YPZmp36zw+wO7ljoKzuGJ8= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1604305644254623.9066563138606; Mon, 2 Nov 2020 00:27:24 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-325-gpbtcxyVO2yC2rOggzjw0A-1; Mon, 02 Nov 2020 03:27:20 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9DDD6809DC7; Mon, 2 Nov 2020 08:27:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7BF4D62A14; Mon, 2 Nov 2020 08:27:14 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 48F31181A07D; Mon, 2 Nov 2020 08:27:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0A28QvnU031213 for ; Mon, 2 Nov 2020 03:26:58 -0500 Received: by smtp.corp.redhat.com (Postfix) id D1CB62156A36; Mon, 2 Nov 2020 08:26:57 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CB8682157F23 for ; Mon, 2 Nov 2020 08:26:56 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8B5D2185A790 for ; Mon, 2 Nov 2020 08:26:56 +0000 (UTC) Received: from de-smtp-delivery-102.mimecast.com (de-smtp-delivery-102.mimecast.com [51.163.158.102]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-559-o9_zzu1EPY6DnWj83AMYTQ-1; Mon, 02 Nov 2020 03:26:54 -0500 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01lp2054.outbound.protection.outlook.com [104.47.1.54]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-23-vv2YKATJM0iSUif2tvJmPg-7; Mon, 02 Nov 2020 09:26:51 +0100 Received: from AM6PR04MB5782.eurprd04.prod.outlook.com (2603:10a6:20b:aa::17) by AM6PR0402MB3624.eurprd04.prod.outlook.com (2603:10a6:209:4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.30; Mon, 2 Nov 2020 08:26:47 +0000 Received: from AM6PR04MB5782.eurprd04.prod.outlook.com ([fe80::b5ca:e454:9fad:8712]) by AM6PR04MB5782.eurprd04.prod.outlook.com ([fe80::b5ca:e454:9fad:8712%7]) with mapi id 15.20.3499.030; Mon, 2 Nov 2020 08:26:47 +0000 Received: from t440p.suse.asia (60.251.47.115) by AM9P191CA0007.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:21c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.19 via Frontend Transport; Mon, 2 Nov 2020 08:26:45 +0000 X-MC-Unique: gpbtcxyVO2yC2rOggzjw0A-1 X-MC-Unique: o9_zzu1EPY6DnWj83AMYTQ-1 X-MC-Unique: vv2YKATJM0iSUif2tvJmPg-7 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 04/19] virsh: Rename virshInterfaceNameCompleter to virshInterfaceCompleter Date: Mon, 2 Nov 2020 16:26:06 +0800 Message-ID: <20201102082621.13228-5-lma@suse.com> In-Reply-To: <20201102082621.13228-1-lma@suse.com> References: <20201102082621.13228-1-lma@suse.com> X-Originating-IP: [60.251.47.115] X-ClientProxiedBy: AM9P191CA0007.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:21c::12) To AM6PR04MB5782.eurprd04.prod.outlook.com (2603:10a6:20b:aa::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 01039335-164e-448a-a5e2-08d87f090a0b X-MS-TrafficTypeDiagnostic: AM6PR0402MB3624: X-LD-Processed: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba,ExtFwd X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: OIlckSk/YPttIB8onu85IhQupFvkvr4HXW1fHZn6kZJi9Vo6IGEx/O1nb/48vVWyWJptF4uKePoI4z+tL8C6dSpaD6GeRdSsxNwYGpVVCJfPivQL1hYFqU+94+hkve+XikLHynXfnIp/jpMA0T+qNRHILcG2MT7oXm5qSP00nqnSD0zjAx3YgnTHtLcK3Y5DLFLVFljfZ9AmWPeXV7tNsQ3ucC0guy6J2EH3rzdKcuRgldM86nkxCqPyudD43+RAxSrZS6svu6yBOs0p16ZfP36yTB0OdWGfhzGBBRzXYa6BhyM3Kv0WDwUSVyXxitunOD2qZmQvC695pCuRAUtWDe49gv2gOKwu+NYToDEAHwKJycSOL4/5W3WN6L44/Rmh X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB5782.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(39860400002)(396003)(376002)(136003)(366004)(107886003)(6666004)(5660300002)(16526019)(66556008)(66946007)(66476007)(2616005)(956004)(8676002)(6506007)(186003)(316002)(450100002)(4326008)(52116002)(26005)(478600001)(8936002)(2906002)(36756003)(55236004)(86362001)(1076003)(6916009)(6486002)(83380400001)(6512007)(145543001); DIR:OUT; SFP:1101 X-MS-Exchange-AntiSpam-MessageData: wrb9x4rfdqKxV8ua3LH669PCQdKMpmAETKN/G6cYMLXROQ+MnGntKYZ+DasF2DvM5ha7lUh+ydyyjhzaBea1nIFPNR2H1P0Sz3KufH/nRCrt7QwMAh3PCWOGXHtYD4IfKpXs4o835CEkWci2pulmBZEAogJ6cPLRoZE9SVvAz1ejnorKMR5+LjGZvw4jr7F6sK+Bf7x7eoZriT3QpVYS0ssOaAK0cy2QQMfehuVTwy/7uCYadq2L6tlmpJBhKjgj6mCcsHjEthVpVkD+4CPszkNl4cA0qEEesJbv4pccmpxwjQGCPxgmDjq2mImqhwrCw3ZfwwOEgIH1UJXtpqYWC4k/WNmqYaFMVhj1Xl30KXJ+yY+iB8spvZWxCCimG8bWHo76GA4cZIExJAbhBqxg/4ACpa4BpGQ5PhIQ3o2QLZGRpd7fM9wOUjxjKwtShuwQ7UQAGO6Os/XCzs35QXsdG0k4YHJa01xmeajjD4w3rSrNrHPwRu9mbXK46yw4/cfmWaPb4kn7i/LQ+uN0bDRHyAi+zjicGqJ/XikRoCujQQbrkEVSWYRbN451m5kGd41oUMSNigrRqHnyZflg6XRfFDNe8JNfcYc1JP3otXXLWhhBR5LU+tiwWWdMJK+LDvmacIKVUGeRBxf1KbILZ26AaQ== X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01039335-164e-448a-a5e2-08d87f090a0b X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB5782.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2020 08:26:47.6621 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: b6nHd6e4EQ1+aWMxUcsLrsaRcvRJ4dhyLcfi1ZX8riVy74LazYM805Gtmz1h/g0a X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3624 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 0A28QvnU031213 X-loop: libvir-list@redhat.com Cc: mprivozn@redhat.com, Lin Ma X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Rename the function virshInterfaceNameCompleter to virshInterfaceCompleter to make it a bit more generic. The upcoming patch invokes it for mac completion. Signed-off-by: Lin Ma --- tools/virsh-completer-interface.c | 6 +++--- tools/virsh-completer-interface.h | 6 +++--- tools/virsh-interface.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/virsh-completer-interface.c b/tools/virsh-completer-inte= rface.c index 8028db8746..777bb22b0b 100644 --- a/tools/virsh-completer-interface.c +++ b/tools/virsh-completer-interface.c @@ -26,9 +26,9 @@ #include "virstring.h" =20 char ** -virshInterfaceNameCompleter(vshControl *ctl, - const vshCmd *cmd G_GNUC_UNUSED, - unsigned int flags) +virshInterfaceCompleter(vshControl *ctl, + const vshCmd *cmd G_GNUC_UNUSED, + unsigned int flags) { virshControlPtr priv =3D ctl->privData; virInterfacePtr *ifaces =3D NULL; diff --git a/tools/virsh-completer-interface.h b/tools/virsh-completer-inte= rface.h index 893dee5a6b..2b382222d7 100644 --- a/tools/virsh-completer-interface.h +++ b/tools/virsh-completer-interface.h @@ -22,6 +22,6 @@ =20 #include "vsh.h" =20 -char ** virshInterfaceNameCompleter(vshControl *ctl, - const vshCmd *cmd, - unsigned int flags); +char ** virshInterfaceCompleter(vshControl *ctl, + const vshCmd *cmd, + unsigned int flags); diff --git a/tools/virsh-interface.c b/tools/virsh-interface.c index 8cdbc6e85f..bd57648779 100644 --- a/tools/virsh-interface.c +++ b/tools/virsh-interface.c @@ -23,7 +23,7 @@ .type =3D VSH_OT_DATA, \ .flags =3D VSH_OFLAG_REQ, \ .help =3D N_("interface name or MAC address"), \ - .completer =3D virshInterfaceNameCompleter, \ + .completer =3D virshInterfaceCompleter, \ .completer_flags =3D cflags, \ } =20 --=20 2.26.0