OpenOCD
options.c File Reference
Include dependency graph for options.c:

Go to the source code of this file.

Functions

static void add_default_dirs (void)
 
int configuration_output_handler (struct command_context *context, const char *line)
 
static char * find_exe_path (void)
 
static char * find_relative_path (const char *from, const char *to)
 
int parse_cmdline_args (struct command_context *cmd_ctx, int argc, char *argv[])
 

Variables

static int help_flag
 
static const struct option long_options []
 
static int version_flag
 

Function Documentation

static void add_default_dirs ( void  )
static
int configuration_output_handler ( struct command_context context,
const char *  line 
)

Definition at line 58 of file options.c.

References ERROR_OK, and LOG_USER_N.

Referenced by openocd_main().

static char* find_exe_path ( void  )
static

Definition at line 68 of file options.c.

References ARRAY_SIZE, LOG_DEBUG, LOG_WARNING, and NULL.

Referenced by add_default_dirs().

static char* find_relative_path ( const char *  from,
const char *  to 
)
static

Definition at line 140 of file options.c.

References NULL.

Referenced by add_default_dirs().

int parse_cmdline_args ( struct command_context cmd_ctx,
int  argc,
char *  argv[] 
)

Variable Documentation

int help_flag
static

Definition at line 44 of file options.c.

Referenced by parse_cmdline_args().

const struct option long_options[]
static
Initial value:
= {
{"help", no_argument, &help_flag, 1},
{"version", no_argument, &version_flag, 1},
{"debug", optional_argument, 0, 'd'},
{"file", required_argument, 0, 'f'},
{"search", required_argument, 0, 's'},
{"log_output", required_argument, 0, 'l'},
{"command", required_argument, 0, 'c'},
{"pipe", no_argument, 0, 'p'},
{0, 0, 0, 0}
}
static int version_flag
Definition: options.c:44
static int help_flag
Definition: options.c:44

Definition at line 46 of file options.c.

Referenced by parse_cmdline_args().

int version_flag
static

Definition at line 44 of file options.c.

Referenced by parse_cmdline_args().