OpenOCD
configuration.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2004, 2005 by Dominic Rath *
5  * Dominic.Rath@gmx.de *
6  * *
7  * Copyright (C) 2007,2008 Øyvind Harboe *
8  * oyvind.harboe@zylin.com *
9  ***************************************************************************/
10 
11 #ifndef OPENOCD_HELPER_CONFIGURATION_H
12 #define OPENOCD_HELPER_CONFIGURATION_H
13 
14 #include <helper/command.h>
15 
16 int parse_cmdline_args(struct command_context *cmd_ctx,
17  int argc, char *argv[]);
18 
19 int parse_config_file(struct command_context *cmd_ctx);
20 void add_config_command(const char *cfg);
21 
22 void add_script_search_dir(const char *dir);
23 
24 void free_config(void);
25 
27  const char *line);
28 
29 FILE *open_file_from_path(const char *file, const char *mode);
30 
31 char *find_file(const char *name);
32 char *get_home_dir(const char *append_path);
33 
34 #endif /* OPENOCD_HELPER_CONFIGURATION_H */
enum arm_mode mode
Definition: armv4_5.c:277
const char * name
Definition: armv4_5.c:76
void add_config_command(const char *cfg)
Definition: configuration.c:36
char * find_file(const char *name)
Definition: configuration.c:61
FILE * open_file_from_path(const char *file, const char *mode)
Definition: configuration.c:97
int parse_config_file(struct command_context *cmd_ctx)
char * get_home_dir(const char *append_path)
int parse_cmdline_args(struct command_context *cmd_ctx, int argc, char *argv[])
Definition: options.c:265
void add_script_search_dir(const char *dir)
Definition: configuration.c:25
int configuration_output_handler(struct command_context *cmd_ctx, const char *line)
Definition: options.c:50
void free_config(void)
Definition: configuration.c:45