automotive-dlt
dlt-kpi-options.c File Reference
#include "dlt-kpi.h"
Include dependency graph for dlt-kpi-options.c:

Go to the source code of this file.

Functions

void usage (char *prog_name)
 
void dlt_kpi_init_cli_options (DltKpiOptions *options)
 
void dlt_kpi_free_cli_options (DltKpiOptions *options)
 
DltReturnValue dlt_kpi_read_command_line (DltKpiOptions *options, int argc, char **argv)
 
void dlt_kpi_init_configuration (DltKpiConfig *config)
 
DltReturnValue dlt_kpi_read_configuration_file (DltKpiConfig *config, char *file_name)
 
DltReturnValue dlt_kpi_init (int argc, char **argv, DltKpiConfig *config)
 

Detailed Description

Author
Sven Hassler sven_.nosp@m.hass.nosp@m.ler@m.nosp@m.ento.nosp@m.r.com

Definition in file dlt-kpi-options.c.

Function Documentation

void dlt_kpi_free_cli_options ( DltKpiOptions options)
void dlt_kpi_init_cli_options ( DltKpiOptions options)

Initialize command line options with default values.

Definition at line 50 of file dlt-kpi-options.c.

References DltKpiOptions::configurationFileName, DltKpiOptions::customConfigFile, and DEFAULT_CONF_FILE.

Referenced by dlt_kpi_read_command_line().

void dlt_kpi_init_configuration ( DltKpiConfig config)

Initialize configuration to default values.

Definition at line 107 of file dlt-kpi-options.c.

References DLT_LOG_DEFAULT, DltKpiConfig::irq_log_interval, DltKpiConfig::log_level, and DltKpiConfig::process_log_interval.

Referenced by dlt_kpi_read_configuration_file().

DltReturnValue dlt_kpi_read_command_line ( DltKpiOptions options,
int  argc,
char **  argv 
)
DltReturnValue dlt_kpi_read_configuration_file ( DltKpiConfig config,
char *  file_name 
)
void usage ( char *  prog_name)

Print information how to use this program.

Definition at line 32 of file dlt-kpi-options.c.

References DEFAULT_CONF_FILE, and dlt_get_version().

Referenced by dlt_kpi_read_command_line().