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 00E244300E; Tue, 8 Aug 2023 19:35:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6B4D143262; Tue, 8 Aug 2023 19:35:43 +0200 (CEST) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id 4A75642D0B for ; Tue, 8 Aug 2023 19:35:41 +0200 (CEST) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-686ea67195dso4355865b3a.2 for ; Tue, 08 Aug 2023 10:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691516140; x=1692120940; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=22y+tBqiBCHk0grbjOfxkDdS6gs6cK21fSqb7LCRaKk=; b=vM1vn6CPHmGK4hlo5CDwBdhm85xhMIY55u+x2egKmDlrG7A83FWU00+86EA2uvAEBj 0Q1zS4ZU8RM2yBp6tCrcj6IZqJwK/OaV7dM2a4T3uT7tCgOOZC4zvcsLVhlaXr/OuxzX 5R+RmVAAgu2TD0s0Si4S9aw1kJlFiZciLC0fOiULigW9LfXRpa9+ZbZeltUPra0JNZC6 VSNlghZpvnTY1tTVd9n81PL5L6gEmZ609itI7FHStr9R03PKqjoMvxFJ4J9XkOO2m0Qv EBVbRlf7GeYWfhmq9hlo0+qjP9lHrDy8aWgt4zbc2L63zI7Yo1tt30d8c7ZpyiRMxvWo Mzbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691516140; x=1692120940; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=22y+tBqiBCHk0grbjOfxkDdS6gs6cK21fSqb7LCRaKk=; b=VvXNsEgWiwCMWcG97MMDV5cKXht0r1UtqUCzx9vqX8Razp6paHdLnDKaqLql+Usgm8 DkE/NC1OEds6gGVIK5l0ijwGVzG9xCKQlvRLG6Zo8Moj5y8WUMuBnJ6sUSVeQeIRt7QS xlgJxdBohwGklxGdk2QGkY8WEMpWfvo4IH+tO+54A9LmHCPpiz4pblwDALtRoPyQsOF5 Cv76pH1bMXJDxRbJlZ522npaTsvWX2KEZhwGQGy8TmxEqZSGnz+5bnFOEmO8VrH5Lf9k ZkDRWKkZQOZEW2ZDB9Mlji55xTuMMcy5atUr25UEbYSZ57KRNPZPUhrSUhHfjshacouT ddJA== X-Gm-Message-State: AOJu0YyCxatHUD5T3zXK+qP52PtICq/e90b38Gv6pY7rFV0pRkjzOpPG Ebr7DrNBUQjo7bgB5OC1ApdkqAmEdzbfg3+GTwLqOQ== X-Google-Smtp-Source: AGHT+IGwGNxbmnYjEYjSWslHLF1/opBd9SHgOCs0DjJ0AvEzAsamakxpansjWFA/s/Gv7VT4UbZvCA== X-Received: by 2002:a05:6a00:1a91:b0:67f:48a2:5d9f with SMTP id e17-20020a056a001a9100b0067f48a25d9fmr164723pfv.11.1691516140088; Tue, 08 Aug 2023 10:35:40 -0700 (PDT) Received: from hermes.local (204-195-127-207.wavecable.com. [204.195.127.207]) by smtp.gmail.com with ESMTPSA id m13-20020aa7900d000000b00682562bf479sm8328945pfo.53.2023.08.08.10.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 10:35:39 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Olivier Matz Subject: [PATCH 02/20] cmdline: make experimental API's stable Date: Tue, 8 Aug 2023 10:35:09 -0700 Message-Id: <20230808173527.186042-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230808173527.186042-1-stephen@networkplumber.org> References: <20230808173527.186042-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 These API's have all ben around for several releases. Signed-off-by: Stephen Hemminger --- lib/cmdline/cmdline.h | 1 - lib/cmdline/cmdline_parse.h | 4 ---- lib/cmdline/cmdline_rdline.h | 4 ---- lib/cmdline/version.map | 26 ++++++++------------------ 4 files changed, 8 insertions(+), 27 deletions(-) diff --git a/lib/cmdline/cmdline.h b/lib/cmdline/cmdline.h index d631cd4bd459..c41b0ca0b80e 100644 --- a/lib/cmdline/cmdline.h +++ b/lib/cmdline/cmdline.h @@ -39,7 +39,6 @@ void cmdline_printf(const struct cmdline *cl, const char *fmt, ...) int cmdline_in(struct cmdline *cl, const char *buf, int size); int cmdline_write_char(struct rdline *rdl, char c); -__rte_experimental struct rdline * cmdline_get_rdline(struct cmdline *cl); diff --git a/lib/cmdline/cmdline_parse.h b/lib/cmdline/cmdline_parse.h index a852ac411c59..41b4db1f76f9 100644 --- a/lib/cmdline/cmdline_parse.h +++ b/lib/cmdline/cmdline_parse.h @@ -155,9 +155,6 @@ typedef cmdline_parse_inst_t *cmdline_parse_ctx_t; int cmdline_parse(struct cmdline *cl, const char *buf); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Try to parse a buffer according to the specified context, but do not * perform any function calls if parse is successful. * @@ -166,7 +163,6 @@ int cmdline_parse(struct cmdline *cl, const char *buf); * CMDLINE_PARSE_BAD_ARGS on error and returns the parsed line length (>=0) * on successful parse. */ -__rte_experimental int cmdline_parse_check(struct cmdline *cl, const char *buf); /** diff --git a/lib/cmdline/cmdline_rdline.h b/lib/cmdline/cmdline_rdline.h index 1b4cc7ce5773..c6bb6bbbb36a 100644 --- a/lib/cmdline/cmdline_rdline.h +++ b/lib/cmdline/cmdline_rdline.h @@ -58,7 +58,6 @@ typedef int (rdline_complete_t)(struct rdline *rdl, const char *buf, * * \return New rdline object on success, NULL on failure. */ -__rte_experimental struct rdline *rdline_new(rdline_write_char_t *write_char, rdline_validate_t *validate, rdline_complete_t *complete, @@ -70,7 +69,6 @@ struct rdline *rdline_new(rdline_write_char_t *write_char, * \param rdl A pointer to an initialized struct rdline. * If NULL, this function is a no-op. */ -__rte_experimental void rdline_free(struct rdline *rdl); /** @@ -163,13 +161,11 @@ char *rdline_get_history_item(struct rdline *rdl, unsigned int i); /** * Get maximum history buffer size. */ -__rte_experimental size_t rdline_get_history_buffer_size(struct rdline *rdl); /** * Get the opaque pointer supplied on struct rdline creation. */ -__rte_experimental void *rdline_get_opaque(struct rdline *rdl); #ifdef __cplusplus diff --git a/lib/cmdline/version.map b/lib/cmdline/version.map index db4d904ffbdb..4f87027e1774 100644 --- a/lib/cmdline/version.map +++ b/lib/cmdline/version.map @@ -30,11 +30,13 @@ DPDK_24 { cmdline_get_help_num; cmdline_get_help_portlist; cmdline_get_help_string; + cmdline_get_rdline; cmdline_in; cmdline_interact; cmdline_isendoftoken; cmdline_new; cmdline_parse; + cmdline_parse_check; cmdline_parse_etheraddr; cmdline_parse_ipaddr; cmdline_parse_num; @@ -52,37 +54,25 @@ DPDK_24 { cmdline_token_portlist_ops; cmdline_token_string_ops; cmdline_write_char; + rdline_add_history; rdline_char_in; rdline_clear_history; + rdline_free; rdline_get_buffer; + rdline_get_history_buffer_size; rdline_get_history_item; + rdline_get_opaque; + rdline_new; rdline_newline; rdline_quit; rdline_redisplay; rdline_reset; rdline_restart; rdline_stop; + vt100_init; vt100_parser; local: *; }; - -EXPERIMENTAL { - global: - - # added in 20.11 - cmdline_get_rdline; - - # added in 21.11 - rdline_new; - rdline_free; - rdline_get_history_buffer_size; - rdline_get_opaque; - - # added in 22.07 - cmdline_parse_check; - - local: *; -}; -- 2.39.2