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 <stdio.h>
15 #include <helper/command.h>
16 
17 int parse_cmdline_args(struct command_context *cmd_ctx,
18  int argc, char *argv[]);
19 
20 int parse_config_file(struct command_context *cmd_ctx);
21 void add_config_command(const char *cfg);
22 
23 void add_script_search_dir(const char *dir);
24 
25 void free_config(void);
26 
28  const char *line);
29 
30 FILE *open_file_from_path(const char *file, const char *mode);
31 
32 char *find_file(const char *name);
33 char *get_home_dir(const char *append_path);
34 
35 #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