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