CNDP  22.08.0
cli_map.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2019-2022 Intel Corporation.
3  */
4 
11 #ifndef _CLI_MAP_H_
12 #define _CLI_MAP_H_
13 
14 #include <netinet/in.h>
15 #include <cne_common.h> // for CNDP_API
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 struct cli_map {
22  int index;
23  const char *fmt;
24 };
25 
51 CNDP_API struct cli_map *cli_mapping(struct cli_map *maps, int argc, char **argv);
52 
61 CNDP_API void cli_map_show(struct cli_map *m);
62 
75 CNDP_API void cli_maps_show(struct cli_map *maps, int argc, char **argv);
76 
89 CNDP_API void cli_map_dump(struct cli_map *maps, int argc, char **argv);
90 
103 CNDP_API int cli_map_list_search(const char *fmt, char *item, int index);
104 
105 #ifdef __cplusplus
106 }
107 #endif
108 
109 #endif /* CLI_MAP_H */
CNDP_API void cli_map_dump(struct cli_map *maps, int argc, char **argv)
CNDP_API struct cli_map * cli_mapping(struct cli_map *maps, int argc, char **argv)
CNDP_API void cli_map_show(struct cli_map *m)
CNDP_API int cli_map_list_search(const char *fmt, char *item, int index)
CNDP_API void cli_maps_show(struct cli_map *maps, int argc, char **argv)