checkpatch: fix for flag --no-tree
[fw/openocd] / src / helper / configuration.h
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
26 int configuration_output_handler(struct command_context *cmd_ctx,
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 */