1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2004, 2005 by Dominic Rath *
5 * Dominic.Rath@gmx.de *
7 * Copyright (C) 2007,2008 Øyvind Harboe *
8 * oyvind.harboe@zylin.com *
9 ***************************************************************************/
11 #ifndef OPENOCD_HELPER_CONFIGURATION_H
12 #define OPENOCD_HELPER_CONFIGURATION_H
14 #include <helper/command.h>
16 int parse_cmdline_args(struct command_context
*cmd_ctx
,
17 int argc
, char *argv
[]);
19 int parse_config_file(struct command_context
*cmd_ctx
);
20 void add_config_command(const char *cfg
);
22 void add_script_search_dir(const char *dir
);
24 void free_config(void);
26 int configuration_output_handler(struct command_context
*cmd_ctx
,
29 FILE *open_file_from_path(const char *file
, const char *mode
);
31 char *find_file(const char *name
);
32 char *get_home_dir(const char *append_path
);
34 #endif /* OPENOCD_HELPER_CONFIGURATION_H */