OpenOCD
|
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) |
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().
void add_script_search_dir | ( | const char * | dir | ) |
Definition at line 25 of file configuration.c.
References LOG_DEBUG, NULL, num_script_dirs, and script_search_dirs.
Referenced by add_default_dirs(), add_user_dirs(), COMMAND_HANDLER(), and parse_cmdline_args().
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().
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().
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().
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().
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().
int parse_cmdline_args | ( | struct command_context * | cmd_ctx, |
int | argc, | ||
char * | argv[] | ||
) |
Definition at line 265 of file options.c.
References add_config_command(), add_default_dirs(), add_script_search_dir(), alloc_printf(), command_run_linef(), ERROR_FAIL, ERROR_OK, help_flag, LOG_OUTPUT, long_options, and version_flag.
Referenced by openocd_thread().
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().