git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: simplify meson build of common directory
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_option.h
diff --git
a/lib/librte_eal/common/include/rte_option.h
b/lib/librte_eal/common/include/rte_option.h
index
bbcc6ce
..
7ad65a4
100644
(file)
--- a/
lib/librte_eal/common/include/rte_option.h
+++ b/
lib/librte_eal/common/include/rte_option.h
@@
-29,12
+29,16
@@
extern "C" {
typedef int (*rte_option_cb)(void);
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. */
*/
struct rte_option {
TAILQ_ENTRY(rte_option) next; /**< Next entry in the list. */
- c
har *opt_str;
/**< The option name. */
+ c
onst char *name;
/**< The option name. */
const char *usage; /**< Option summary string. */
rte_option_cb cb; /**< Function called when option is used. */
int enabled; /**< Set when the option is used. */
const char *usage; /**< Option summary string. */
rte_option_cb cb; /**< Function called when option is used. */
int enabled; /**< Set when the option is used. */
@@
-53,8
+57,12
@@
struct rte_option {
*
* @param opt
* Structure describing the option to parse.
*
* @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
rte_option_register(struct rte_option *opt);
#ifdef __cplusplus