From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4A2FF43C0C; Thu, 7 Mar 2024 17:14:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B62A4067E; Thu, 7 Mar 2024 17:14:12 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id DE15140272 for ; Thu, 7 Mar 2024 17:14:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709828050; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UpRI1U+OCFXI7eT8XZcZLZQncgGdUnKEuvZ79yiqFvk=; b=Oe2oO0l+CcuJ9dgT7YA2Ny8Wo/tI4JYEjf66xuMb9J2ixvkPEq8vUBuRHt1SxP/poItKtR 6OlmVFEp3hB2Ug7BlWEgLuww2Pf+wN2QOYqEPlo7JyWbEIBitlq7+VNklan38lwtzOucPM pZVsmdFj0/tGtIkabrOhl7yU4S67LT8= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-673-eGe9uFahOwibZZ4v5GfuJw-1; Thu, 07 Mar 2024 11:14:09 -0500 X-MC-Unique: eGe9uFahOwibZZ4v5GfuJw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D230A3C00085; Thu, 7 Mar 2024 16:14:08 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.225.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 034AD40C6CB9; Thu, 7 Mar 2024 16:14:07 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Chengwen Feng Subject: [PATCH] argparse: fix parser callback type name Date: Thu, 7 Mar 2024 17:14:02 +0100 Message-ID: <20240307161402.1460071-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org All types exposed in a public header must be prefixed with rte_. Fixes: e3e579f5bab5 ("argparse: introduce argparse library") Signed-off-by: David Marchand --- lib/argparse/rte_argparse.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/argparse/rte_argparse.h b/lib/argparse/rte_argparse.h index 47e231bef9..5e5936f96c 100644 --- a/lib/argparse/rte_argparse.h +++ b/lib/argparse/rte_argparse.h @@ -144,7 +144,7 @@ struct rte_argparse_arg { * @return * 0 on success. Otherwise negative value is returned. */ -typedef int (*arg_parser_t)(uint32_t index, const char *value, void *opaque); +typedef int (*rte_arg_parser_t)(uint32_t index, const char *value, void *opaque); /** * A structure used to hold argparse's configuration. @@ -161,7 +161,7 @@ struct rte_argparse { /** Whether exit when error. */ bool exit_on_error; /** User callback for parsing arguments. */ - arg_parser_t callback; + rte_arg_parser_t callback; /** Opaque which used to invoke callback. */ void *opaque; /** Reserved field used for future extension. */ -- 2.44.0