automotive-dlt
dlt-system-options.c File Reference
#include "dlt-system.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for dlt-system-options.c:

Go to the source code of this file.

Functions

void usage (char *prog_name)
 
void init_cli_options (DltSystemCliOptions *options)
 
int read_command_line (DltSystemCliOptions *options, int argc, char *argv[])
 
void init_configuration (DltSystemConfiguration *config)
 
int read_configuration_file (DltSystemConfiguration *config, char *file_name)
 

Detailed Description

Author
Lassi Marttala lassi.nosp@m..lm..nosp@m.martt.nosp@m.ala@.nosp@m.partn.nosp@m.er.b.nosp@m.mw.de

Definition in file dlt-system-options.c.

Function Documentation

void init_cli_options ( DltSystemCliOptions options)

Initialize command line options with default values.

Definition at line 84 of file dlt-system-options.c.

References DltSystemCliOptions::ConfigurationFileName, DltSystemCliOptions::Daemonize, and DEFAULT_CONF_FILE.

Referenced by read_command_line().

int read_command_line ( DltSystemCliOptions options,
int  argc,
char *  argv[] 
)

Read command line options and set the values in provided structure

Definition at line 93 of file dlt-system-options.c.

References DltSystemCliOptions::ConfigurationFileName, DltSystemCliOptions::Daemonize, init_cli_options(), MALLOC_ASSERT, and usage().

void usage ( char *  prog_name)

Print information how to use this program.

Definition at line 66 of file dlt-system-options.c.

References DEFAULT_CONF_FILE, and dlt_get_version().

Referenced by read_command_line().