OpenOCD
configuration.h File Reference
Include dependency graph for configuration.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void add_config_command (const char *cfg)
 
void add_script_search_dir (const char *dir)
 
int configuration_output_handler (struct command_context *cmd_ctx, const char *line)
 
char * find_file (const char *name)
 
void free_config (void)
 
char * get_home_dir (const char *append_path)
 
FILE * open_file_from_path (const char *file, const char *mode)
 
int parse_cmdline_args (struct command_context *cmd_ctx, int argc, char *argv[])
 
int parse_config_file (struct command_context *cmd_ctx)
 

Function Documentation

◆ add_config_command()

void add_config_command ( const char *  cfg)

Definition at line 36 of file configuration.c.

References config_file_names, NULL, and num_config_files.

Referenced by parse_cmdline_args().

◆ add_script_search_dir()

void add_script_search_dir ( const char *  dir)

◆ configuration_output_handler()

int configuration_output_handler ( struct command_context cmd_ctx,
const char *  line 
)

Definition at line 50 of file options.c.

References ERROR_OK, and LOG_USER_N.

Referenced by openocd_main().

◆ find_file()

char* find_file ( const char *  name)

Definition at line 61 of file configuration.c.

References alloc_printf(), LOG_DEBUG, mode, NULL, and script_search_dirs.

Referenced by jim_find(), and open_file_from_path().

◆ free_config()

void free_config ( void  )

Definition at line 45 of file configuration.c.

References config_file_names, NULL, num_config_files, num_script_dirs, and script_search_dirs.

Referenced by openocd_main().

◆ get_home_dir()

char* get_home_dir ( const char *  append_path)

Definition at line 138 of file configuration.c.

References alloc_printf().

Referenced by telnet_load_history(), and telnet_save_history().

◆ open_file_from_path()

FILE* open_file_from_path ( const char *  file,
const char *  mode 
)

Definition at line 97 of file configuration.c.

References find_file(), mode, and NULL.

Referenced by fileio_open_local().

◆ parse_cmdline_args()

int parse_cmdline_args ( struct command_context cmd_ctx,
int  argc,
char *  argv[] 
)

◆ parse_config_file()

int parse_config_file ( struct command_context cmd_ctx)

Definition at line 112 of file configuration.c.

References command_run_line(), config_file_names, and ERROR_OK.

Referenced by openocd_thread().