X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_option.h;h=7ad65a4eb4c4dde3ad2f43eb00acf1b8ca5996eb;hb=4715bb162368cf75c5e8db62f54b5071b70d68f3;hp=eea95e477b83878c7c33f3b61a89f6cd0ce31989;hpb=42f6dbda0975bccc5344621215c183b45277480b;p=dpdk.git diff --git a/lib/librte_eal/common/include/rte_option.h b/lib/librte_eal/common/include/rte_option.h index eea95e477b..7ad65a4eb4 100644 --- a/lib/librte_eal/common/include/rte_option.h +++ b/lib/librte_eal/common/include/rte_option.h @@ -29,8 +29,12 @@ extern "C" { typedef int (*rte_option_cb)(void); -/* - * Structure describing the EAL command line option being registered. +/** + * Structure describing an EAL command line option dynamically registered. + * + * Common EAL options are mostly statically defined. + * Some libraries need additional options to be dynamically added. + * This structure describes such options. */ struct rte_option { TAILQ_ENTRY(rte_option) next; /**< Next entry in the list. */ @@ -53,8 +57,12 @@ struct rte_option { * * @param opt * Structure describing the option to parse. + * + * @return + * 0 on success, <0 otherwise. */ -void __rte_experimental +__rte_experimental +int rte_option_register(struct rte_option *opt); #ifdef __cplusplus