automotive-dlt
dlt-dbus.h
Go to the documentation of this file.
1 /*
2  * @licence app begin@
3  * SPDX license identifier: MPL-2.0
4  *
5  * Copyright (C) 2011-2015, BMW AG
6  *
7  * This file is part of GENIVI Project DLT - Diagnostic Log and Trace.
8  *
9  * This Source Code Form is subject to the terms of the
10  * Mozilla Public License (MPL), v. 2.0.
11  * If a copy of the MPL was not distributed with this file,
12  * You can obtain one at http://mozilla.org/MPL/2.0/.
13  *
14  * For further information see http://www.genivi.org/.
15  * @licence end@
16  */
17 
27 #ifndef DLT_DBUS_H_
28 #define DLT_DBUS_H_
29 
30 // DLT related includes.
31 #include "dlt.h"
32 #include "dlt_common.h"
33 
34 #define DEFAULT_CONF_FILE "/etc/dlt-dbus.conf"
35 
36 #define DLT_DBUS_FILTER_MAX 32
37 
38 // Macros
39 #define UNUSED(x) (void)(x)
40 #define MALLOC_ASSERT(x) if(x == NULL) {\
41  fprintf(stderr, "Out of memory\n");\
42  abort();}
43 
44 #define MAX_LINE 1024
45 
46 // Command line options
47 typedef struct {
50  char *BusType;
51  int Daemonize;
53 
54 // Configuration dbus options
55 typedef struct {
56  char *ContextId;
57  char *BusType;
59  char *FilterMatch[DLT_DBUS_FILTER_MAX];
60 } DBusOptions;
61 
62 typedef struct {
65 
67 
68 extern void init_cli_options(DltDBusCliOptions *options);
69 extern int read_command_line(DltDBusCliOptions *options, int argc, char *argv[]);
70 extern int read_configuration_file(DltDBusConfiguration *config, char *file_name);
71 
72 #endif /* DLT_DBUS_H_ */
#define DLT_DBUS_FILTER_MAX
Definition: dlt-dbus.h:36
DBusOptions DBus
Definition: dlt-dbus.h:64
char * ApplicationId
Definition: dlt-dbus.h:63
DltKpiConfig config
Definition: dlt-kpi.c:37
int FilterCount
Definition: dlt-dbus.h:58
void init_cli_options(DltDBusCliOptions *options)
char * ContextId
Definition: dlt-dbus.h:56
char * ConfigurationFileName
Definition: dlt-dbus.h:48
int read_configuration_file(DltDBusConfiguration *config, char *file_name)
int read_command_line(DltDBusCliOptions *options, int argc, char *argv[])
char * BusType
Definition: dlt-dbus.h:57
char * BusType
Definition: dlt-dbus.h:50
char * ApplicationId
Definition: dlt-dbus.h:49