The rte_argparse_parse() and rte_argparse_parse_type() functions were added in 24.03 and rte_argparse_print_help() in 25.11. No prototype has changed and they are used by the EAL option parsing as well as several applications and examples, so the interface is settled.
This promotes the whole library, so the header no longer needs rte_compat.h. Signed-off-by: Stephen Hemminger <[email protected]> --- doc/guides/rel_notes/release_26_11.rst | 2 ++ lib/argparse/rte_argparse.c | 6 +++--- lib/argparse/rte_argparse.h | 13 ------------- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/doc/guides/rel_notes/release_26_11.rst b/doc/guides/rel_notes/release_26_11.rst index 5b60203afd..afe28eb754 100644 --- a/doc/guides/rel_notes/release_26_11.rst +++ b/doc/guides/rel_notes/release_26_11.rst @@ -221,6 +221,8 @@ API Changes Also, make sure to start the actual text at the margin. ======================================================= +* argparse: Promoted the whole library API from experimental to stable. + * cmdline: Promoted ``cmdline_token_bool_ops`` from experimental to stable. * dispatcher: Promoted the whole library API from experimental to stable. diff --git a/lib/argparse/rte_argparse.c b/lib/argparse/rte_argparse.c index 88c3e7740c..a056559965 100644 --- a/lib/argparse/rte_argparse.c +++ b/lib/argparse/rte_argparse.c @@ -899,7 +899,7 @@ show_args_opt_help(FILE *stream, const struct rte_argparse *obj, uint32_t align) } } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_argparse_print_help, 25.11) +RTE_EXPORT_SYMBOL(rte_argparse_print_help) void rte_argparse_print_help(FILE *stream, const struct rte_argparse *obj) { @@ -918,7 +918,7 @@ rte_argparse_print_help(FILE *stream, const struct rte_argparse *obj) fprintf(stream, "\n"); } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_argparse_parse, 24.03) +RTE_EXPORT_SYMBOL(rte_argparse_parse) int rte_argparse_parse(const struct rte_argparse *obj, int argc, char **argv) { @@ -960,7 +960,7 @@ rte_argparse_parse(const struct rte_argparse *obj, int argc, char **argv) return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_argparse_parse_type, 24.03) +RTE_EXPORT_SYMBOL(rte_argparse_parse_type) int rte_argparse_parse_type(const char *str, enum rte_argparse_value_type val_type, void *val) { diff --git a/lib/argparse/rte_argparse.h b/lib/argparse/rte_argparse.h index f184c9c37d..467bd2edd8 100644 --- a/lib/argparse/rte_argparse.h +++ b/lib/argparse/rte_argparse.h @@ -30,7 +30,6 @@ #include <stdint.h> #include <rte_bitops.h> -#include <rte_compat.h> #ifdef __cplusplus extern "C" { @@ -181,9 +180,6 @@ struct rte_argparse { #define ARGPARSE_ARG_END() { NULL } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Parse parameters passed until all are processed, * or until a "--" parameter is encountered. * @@ -198,13 +194,9 @@ struct rte_argparse { * number of arguments parsed (>= 0) on success. * Otherwise negative error code is returned. */ -__rte_experimental int rte_argparse_parse(const struct rte_argparse *obj, int argc, char **argv); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Output the help text information for the given argparse object. * * @param stream @@ -212,13 +204,9 @@ int rte_argparse_parse(const struct rte_argparse *obj, int argc, char **argv); * @param obj * Parser object. */ -__rte_experimental void rte_argparse_print_help(FILE *stream, const struct rte_argparse *obj); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Parse the value from the input string based on the value type. * * @param str @@ -231,7 +219,6 @@ void rte_argparse_print_help(FILE *stream, const struct rte_argparse *obj); * @return * 0 on success. Otherwise negative value is returned. */ -__rte_experimental int rte_argparse_parse_type(const char *str, enum rte_argparse_value_type val_type, void *val); #ifdef __cplusplus -- 2.53.0

