NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
psp_gw_params.h File Reference
#include <string>
#include <vector>
#include <doca_error.h>
Include dependency graph for psp_gw_params.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_FILE_NAME   (255) /* Maximum file name length */
 

Functions

doca_error_t psp_gw_argp_exec (int &argc, char *argv[], psp_gw_app_config *app_config)
 Parses command-line arguments to the application. More...
 
doca_error_t psp_gw_parse_config_file (psp_gw_app_config *app_config)
 Parses the configuration JSON file that was passed to the application. More...
 

Macro Definition Documentation

◆ MAX_FILE_NAME

#define MAX_FILE_NAME   (255) /* Maximum file name length */

Definition at line 34 of file psp_gw_params.h.

Function Documentation

◆ psp_gw_argp_exec()

doca_error_t psp_gw_argp_exec ( int &  argc,
char *  argv[],
psp_gw_app_config app_config 
)

Parses command-line arguments to the application.

During processing of arguments, both DPDK and the application may remove arguments from argv, and argc will reflect the new size.

@argc [in/out]: The number of args passed to main() @argv [in/out]: The args passed to main @app_config [out]: The configuration of the application

Returns
: DOCA_SUCCESS on success and DOCA_ERROR otherwise

Definition at line 1425 of file psp_gw_params.cpp.

◆ psp_gw_parse_config_file()

doca_error_t psp_gw_parse_config_file ( psp_gw_app_config app_config)

Parses the configuration JSON file that was passed to the application.

@app_config [in/out]: The configuration of the application

Returns
: DOCA_SUCCESS on success and DOCA_ERROR otherwise

Definition at line 1094 of file psp_gw_params.cpp.