DPDK
19.08.2
Main Page
Related Pages
Data Structures
Files
Examples
File List
Globals
lib
librte_eal
common
include
rte_option.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2018 Intel Corporation.
3
*/
4
5
#ifndef __INCLUDE_RTE_OPTION_H__
6
#define __INCLUDE_RTE_OPTION_H__
7
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
typedef
int (*rte_option_cb)(void);
31
39
struct
rte_option
{
40
TAILQ_ENTRY
(
rte_option
) next;
41
const
char
*
name
;
42
const
char
*
usage
;
43
rte_option_cb
cb
;
44
int
enabled
;
45
};
46
64
__rte_experimental
65
int
66
rte_option_register
(
struct
rte_option
*opt);
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
rte_option_register
__rte_experimental int rte_option_register(struct rte_option *opt)
rte_option::TAILQ_ENTRY
TAILQ_ENTRY(rte_option) next
rte_option::cb
rte_option_cb cb
Definition:
rte_option.h:43
rte_option::enabled
int enabled
Definition:
rte_option.h:44
rte_option::usage
const char * usage
Definition:
rte_option.h:42
rte_option
Definition:
rte_option.h:39
rte_option::name
const char * name
Definition:
rte_option.h:41
Generated by
1.8.9.1