2022-06-26 22:58:56 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
|
2006-06-02 10:36:31 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2004, 2005 by Dominic Rath *
|
|
|
|
* Dominic.Rath@gmx.de *
|
|
|
|
* *
|
2009-07-17 19:54:25 +00:00
|
|
|
* Copyright (C) 2007,2008 Øyvind Harboe *
|
2008-07-25 06:54:17 +00:00
|
|
|
* oyvind.harboe@zylin.com *
|
2006-06-02 10:36:31 +00:00
|
|
|
***************************************************************************/
|
2012-01-30 14:31:21 +00:00
|
|
|
|
2015-09-21 19:07:46 +00:00
|
|
|
#ifndef OPENOCD_HELPER_CONFIGURATION_H
|
|
|
|
#define OPENOCD_HELPER_CONFIGURATION_H
|
2006-06-02 10:36:31 +00:00
|
|
|
|
2009-12-03 12:14:25 +00:00
|
|
|
#include <helper/command.h>
|
2006-06-02 10:36:31 +00:00
|
|
|
|
2009-11-13 21:25:47 +00:00
|
|
|
int parse_cmdline_args(struct command_context *cmd_ctx,
|
2009-11-09 10:47:00 +00:00
|
|
|
int argc, char *argv[]);
|
|
|
|
|
2009-11-13 21:25:47 +00:00
|
|
|
int parse_config_file(struct command_context *cmd_ctx);
|
2009-11-09 10:47:00 +00:00
|
|
|
void add_config_command(const char *cfg);
|
|
|
|
|
|
|
|
void add_script_search_dir(const char *dir);
|
|
|
|
|
2018-02-14 21:38:13 +00:00
|
|
|
void free_config(void);
|
|
|
|
|
2009-11-13 21:25:47 +00:00
|
|
|
int configuration_output_handler(struct command_context *cmd_ctx,
|
2009-11-09 10:47:00 +00:00
|
|
|
const char *line);
|
|
|
|
|
2009-11-13 22:21:56 +00:00
|
|
|
FILE *open_file_from_path(const char *file, const char *mode);
|
2009-11-09 10:47:00 +00:00
|
|
|
|
|
|
|
char *find_file(const char *name);
|
2013-03-27 16:28:31 +00:00
|
|
|
char *get_home_dir(const char *append_path);
|
2006-06-02 10:36:31 +00:00
|
|
|
|
2015-09-21 19:07:46 +00:00
|
|
|
#endif /* OPENOCD_HELPER_CONFIGURATION_H */
|