automotive-dlt
dlt_daemon_common_cfg.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 
29 /*******************************************************************************
30 ** **
31 ** SRC-MODULE: dlt_daemon_common_cfg.h **
32 ** **
33 ** TARGET : linux **
34 ** **
35 ** PROJECT : DLT **
36 ** **
37 ** AUTHOR : Alexander Wenzel Alexander.AW.Wenzel@bmw.de **
38 ** Markus Klein **
39 ** **
40 ** PURPOSE : **
41 ** **
42 ** REMARKS : **
43 ** **
44 ** PLATFORM DEPENDANT [yes/no]: yes **
45 ** **
46 ** TO BE CHANGED BY USER [yes/no]: no **
47 ** **
48 *******************************************************************************/
49 
50 /*******************************************************************************
51 ** Author Identity **
52 ********************************************************************************
53 ** **
54 ** Initials Name Company **
55 ** -------- ------------------------- ---------------------------------- **
56 ** aw Alexander Wenzel BMW **
57 ** mk Markus Klein Fraunhofer ESK **
58 *******************************************************************************/
59 
60 /*******************************************************************************
61 ** Author Identity **
62 ********************************************************************************
63 ** **
64 ** Initials Name Company **
65 ** -------- ------------------------- ---------------------------------- **
66 ** aw Alexander Wenzel BMW **
67 ** mk Markus Klein Fraunhofer ESK **
68 *******************************************************************************/
69 
70 #ifndef DLT_DAEMON_COMMON_CFG_H
71 #define DLT_DAEMON_COMMON_CFG_H
72 
73 /*************/
74 /* Changable */
75 /*************/
76 
77 
78 /* Default Path for runtime configuration */
79 #define DLT_RUNTIME_DEFAULT_DIRECTORY "/tmp"
80 /* Path and filename for runtime configuration (applications) */
81 #define DLT_RUNTIME_APPLICATION_CFG "/dlt-runtime-application.cfg"
82 /* Path and filename for runtime configuration (contexts) */
83 #define DLT_RUNTIME_CONTEXT_CFG "/dlt-runtime-context.cfg"
84 /* Path and filename for runtime configuration */
85 #define DLT_RUNTIME_CONFIGURATION "/dlt-runtime.cfg"
86 
87 /* Default Path for control socket */
88 #define DLT_DAEMON_DEFAULT_CTRL_SOCK_PATH DLT_RUNTIME_DEFAULT_DIRECTORY \
89  "/dlt-ctrl.sock"
90 
91 /* Size of text buffer */
92 #define DLT_DAEMON_COMMON_TEXTBUFSIZE 255
93 
94 /* Application ID used when the dlt daemon creates a control message */
95 #define DLT_DAEMON_CTRL_APID "DA1"
96 /* Context ID used when the dlt daemon creates a control message */
97 #define DLT_DAEMON_CTRL_CTID "DC1"
98 
99 /* Number of entries to be allocated at one in application table,
100  when no more entries are available */
101 #define DLT_DAEMON_APPL_ALLOC_SIZE 500
102 /* Number of entries to be allocated at one in context table,
103  when no more entries are available */
104 #define DLT_DAEMON_CONTEXT_ALLOC_SIZE 1000
105 
106 /* Debug get log info function,
107  set to 1 to enable, 0 to disable debugging */
108 #define DLT_DEBUG_GETLOGINFO 0
109 
110 /************************/
111 /* Don't change please! */
112 /************************/
113 
114 /* Minimum ID for an injection message */
115 #define DLT_DAEMON_INJECTION_MIN 0xFFF
116 /* Maximum ID for an injection message */
117 #define DLT_DAEMON_INJECTION_MAX 0xFFFFFFFF
118 
119 /* Remote interface identifier */
120 #define DLT_DAEMON_REMO_STRING "remo"
121 
122 #endif /* DLT_DAEMON_COMMON_CFG_H */