9248bfba855db003002f779dd218d5d84f7d7bd4
[profile/ivi/dlt-daemon.git] / src / daemon / dlt_daemon_common_cfg.h
1 /*\r
2  * Dlt- Diagnostic Log and Trace daemon\r
3  * @licence app begin@
4  *
5  * Copyright (C) 2011, BMW AG - Alexander Wenzel <alexander.wenzel@bmw.de>
6  * 
7  * This program is free software; you can redistribute it and/or modify it under the terms of the 
8  * GNU Lesser General Public License, version 2.1, as published by the Free Software Foundation.
9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even 
10  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General 
11  * Public License, version 2.1, for more details.
12  * 
13  * You should have received a copy of the GNU Lesser General Public License, version 2.1, along 
14  * with this program; if not, see <http://www.gnu.org/licenses/lgpl-2.1.html>.
15  * 
16  * Note that the copyright holders assume that the GNU Lesser General Public License, version 2.1, may 
17  * also be applicable to programs even in cases in which the program is not a library in the technical sense.
18  * 
19  * Linking DLT statically or dynamically with other modules is making a combined work based on DLT. You may 
20  * license such other modules under the GNU Lesser General Public License, version 2.1. If you do not want to 
21  * license your linked modules under the GNU Lesser General Public License, version 2.1, you 
22  * may use the program under the following exception.
23  * 
24  * As a special exception, the copyright holders of DLT give you permission to combine DLT 
25  * with software programs or libraries that are released under any license unless such a combination is not
26  * permitted by the license of such a software program or library. You may copy and distribute such a 
27  * system following the terms of the GNU Lesser General Public License, version 2.1, including this
28  * special exception, for DLT and the licenses of the other code concerned.
29  * 
30  * Note that people who make modified versions of DLT are not obligated to grant this special exception 
31  * for their modified versions; it is their choice whether to do so. The GNU Lesser General Public License, 
32  * version 2.1, gives permission to release a modified version without this exception; this exception 
33  * also makes it possible to release a modified version which carries forward this exception.
34  *
35  * @licence end@\r
36  */\r
37 \r
38 \r
39 /*******************************************************************************\r
40 **                                                                            **\r
41 **  SRC-MODULE: dlt_daemon_common_cfg.h                                       **\r
42 **                                                                            **\r
43 **  TARGET    : linux                                                         **\r
44 **                                                                            **\r
45 **  PROJECT   : DLT                                                           **\r
46 **                                                                            **\r
47 **  AUTHOR    : Alexander Wenzel Alexander.AW.Wenzel@bmw.de                   **\r
48 **              Markus Klein                                                  **\r
49 **                                                                            **\r
50 **  PURPOSE   :                                                               **\r
51 **                                                                            **\r
52 **  REMARKS   :                                                               **\r
53 **                                                                            **\r
54 **  PLATFORM DEPENDANT [yes/no]: yes                                          **\r
55 **                                                                            **\r
56 **  TO BE CHANGED BY USER [yes/no]: no                                        **\r
57 **                                                                            **\r
58 *******************************************************************************/\r
59 \r
60 /*******************************************************************************\r
61 **                      Author Identity                                       **\r
62 ********************************************************************************\r
63 **                                                                            **\r
64 ** Initials     Name                       Company                            **\r
65 ** --------     -------------------------  ---------------------------------- **\r
66 **  aw          Alexander Wenzel           BMW                                **\r
67 **  mk          Markus Klein               Fraunhofer ESK                     **\r
68 *******************************************************************************/\r
69 \r
70 /*******************************************************************************\r
71 **                      Author Identity                                       **\r
72 ********************************************************************************\r
73 **                                                                            **\r
74 ** Initials     Name                       Company                            **\r
75 ** --------     -------------------------  ---------------------------------- **\r
76 **  aw          Alexander Wenzel           BMW                                **\r
77 **  mk          Markus Klein               Fraunhofer ESK                     **\r
78 *******************************************************************************/\r
79 \r
80 #ifndef DLT_DAEMON_COMMON_CFG_H\r
81 #define DLT_DAEMON_COMMON_CFG_H\r
82 \r
83 /*************/\r
84 /* Changable */\r
85 /*************/\r
86 \r
87 /* Default Path for runtime configuration */\r
88 #define DLT_RUNTIME_DEFAULT_DIRECTORY "/tmp"\r
89 /* Path and filename for runtime configuration (applications) */\r
90 #define DLT_RUNTIME_APPLICATION_CFG "/dlt-runtime-application.cfg"\r
91 /* Path and filename for runtime configuration (contexts) */\r
92 #define DLT_RUNTIME_CONTEXT_CFG     "/dlt-runtime-context.cfg"\r
93 /* Path and filename for runtime configuration */\r
94 #define DLT_RUNTIME_CONFIGURATION     "/dlt-runtime.cfg"\r
95 \r
96 /* Size of text buffer */\r
97 #define DLT_DAEMON_TEXTBUFSIZE          255   \r
98 \r
99 /* Initial log level */\r
100 #define DLT_DAEMON_INITIAL_LOG_LEVEL    DLT_LOG_INFO\r
101 /* Initial trace status */\r
102 #define DLT_DAEMON_INITIAL_TRACE_STATUS DLT_TRACE_STATUS_OFF\r
103 \r
104 /* Application ID used when the dlt daemon creates a control message */\r
105 #define DLT_DAEMON_CTRL_APID             "DA1"\r
106 /* Context ID used when the dlt daemon creates a control message */\r
107 #define DLT_DAEMON_CTRL_CTID             "DC1"\r
108 \r
109 /* Number of entries to be allocated at one in application table, \r
110    when no more entries are available */\r
111 #define DLT_DAEMON_APPL_ALLOC_SIZE      500\r
112 /* Number of entries to be allocated at one in context table, \r
113    when no more entries are available */\r
114 #define DLT_DAEMON_CONTEXT_ALLOC_SIZE  1000\r
115 \r
116 /* Debug get log info function, \r
117    set to 1 to enable, 0 to disable debugging */\r
118 #define DLT_DEBUG_GETLOGINFO 0\r
119 \r
120 /************************/\r
121 /* Don't change please! */\r
122 /************************/\r
123 \r
124 /* Minimum ID for an injection message */\r
125 #define DLT_DAEMON_INJECTION_MIN      0xFFF\r
126 /* Maximum ID for an injection message */\r
127 #define DLT_DAEMON_INJECTION_MAX 0xFFFFFFFF\r
128 \r
129 /* Remote interface identifier */\r
130 #define DLT_DAEMON_REMO_STRING "remo"\r
131 \r
132 #endif /* DLT_DAEMON_COMMON_CFG_H */\r
133 \r