common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / systemservice / system_manager / server / include / ss_sm_launch_configuration.h
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 ///////////////////////////////////////////////////////////////////////////////
18 /// \ingroup  tag_SystemManager
19 /// \brief    This file provides support for System Manager process launching.
20 ///
21 ///////////////////////////////////////////////////////////////////////////////
22
23 #ifndef SS_SM_LAUNCH_CONFIGURATION_H_  // NOLINT
24 #define SS_SM_LAUNCH_CONFIGURATION_H_
25
26 #include <native_service/frameworkunified_types.h>
27 #include <system_service/ss_services.h>
28 #include <system_service/ss_client_names.h>
29
30 typedef struct _DefaultModuleLaunchParams {
31   const PCHAR name;
32   const PCHAR binary_name;
33   const PCHAR arguments;
34   const PCHAR restart;
35   UI_32       priority;
36   BOOL        critical;
37   UI_32       retry_cnt;
38   const PCHAR logging_msk_str;
39   BOOL        is_start_required;
40   BOOL        shutdown_critical;
41   UI_32       shutdown_wait_time;
42 } DefaultModuleLaunchParams;
43
44 typedef struct _DefaultGroupLaunchInfo {
45   const PCHAR                name;
46   UI_32                      id;
47   DefaultModuleLaunchParams *modules;
48 } DefaultGroupLaunchInfo;
49
50
51 #define prefix
52
53 prefix DefaultModuleLaunchParams CoreModulesGroup[] = {
54              // Queue name                           binary_name                arguments
55   {(const PCHAR)SERVICE_NS_SHARED_MEM,
56       (const PCHAR)"NS_SharedMem",      (const PCHAR)"", (const PCHAR)"me",
57       10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0},
58   {(const PCHAR)SERVICE_NS_NPP,         (const PCHAR)"NS_NPPService",
59    (const PCHAR)"", (const PCHAR)"me",    20, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", FALSE, TRUE,  15},
60   {(const PCHAR)SERVICE_LOGGER,         (const PCHAR)SERVICE_LOGGER,
61    (const PCHAR)"", (const PCHAR)"me",    10, FALSE, 3, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0},
62   {(const PCHAR)SERVICE__CWORD69_,           (const PCHAR)"_CWORD69_.exe",
63    (const PCHAR)"", (const PCHAR)"me",    10, FALSE, 3, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0},
64   {(const PCHAR)0,                      (const PCHAR)0,
65    (const PCHAR)0,  (const PCHAR)0,        0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
66 };
67
68 prefix DefaultModuleLaunchParams ShadowModulesGroup[] = {
69              // Queue name                           binary_name                arguments
70   {(const PCHAR)SERVICE_PS_IPC,         (const PCHAR)"PS_IPC",
71    (const PCHAR)"", (const PCHAR)"group", 50, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0},
72   {(const PCHAR)SERVICE_PSM_SHADOW,     (const PCHAR)"PS_PSMShadow",
73    (const PCHAR)"", (const PCHAR)"group", 12, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
74   {(const PCHAR)SERVICE_KEY_HANDLER,    (const PCHAR)"PS_KeyHandler",
75    (const PCHAR)"", (const PCHAR)"group", 12, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
76   {(const PCHAR)SERVICE_IPC_MP_SHADOW,  (const PCHAR)"PS_IPC_MP_Shadow",
77    (const PCHAR)"", (const PCHAR)"group", 20, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
78   {(const PCHAR)0,                      (const PCHAR)0,
79    (const PCHAR)0,  (const PCHAR)0,        0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
80 };
81
82 prefix DefaultModuleLaunchParams SystemModulesGroup[] = {
83   {(const PCHAR)SERVICE_POWER,          (const PCHAR)SERVICE_POWER,
84    (const PCHAR)"", (const PCHAR)"me",    12, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
85   {(const PCHAR)SS_DEV_DETECT_SRV,      (const PCHAR)SS_DEV_DETECT_SRV,
86    (const PCHAR)"", (const PCHAR)"me",    12, FALSE, 3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
87   {(const PCHAR)SS_PLM_SERVICE,         (const PCHAR)SS_PLM_SERVICE,
88    (const PCHAR)"", (const PCHAR)"me",    12, FALSE, 3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
89   {(const PCHAR)0,                      (const PCHAR)0,
90    (const PCHAR)0,  (const PCHAR)0,        0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
91 };
92
93 prefix DefaultModuleLaunchParams AudioModulesGroup[] = {
94   {(const PCHAR)SERVICE_AS_AUDIO,       (const PCHAR)"AS_AudioService",
95    (const PCHAR)"", (const PCHAR)"me",    10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
96   {(const PCHAR)SERVICE_AS_MODE,        (const PCHAR)"AS_ModeService",
97    (const PCHAR)"", (const PCHAR)"me",    10, FALSE, 3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
98   {(const PCHAR)0,                      (const PCHAR)0,
99    (const PCHAR)0,  (const PCHAR)0,        0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
100 };
101
102 prefix DefaultModuleLaunchParams RadioModulesGroup[] = {
103   {(const PCHAR)SERVICE_TUNER,          (const PCHAR)"Radio",
104    (const PCHAR)"", (const PCHAR)"me",    10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
105   {(const PCHAR)SERVICE_DAB,            (const PCHAR)"Master_Tuner",
106    (const PCHAR)"", (const PCHAR)"me",    10, FALSE, 3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
107   {(const PCHAR)SERVICE_SDARS,          (const PCHAR)"Ext_SDARS_Service",
108    (const PCHAR)"", (const PCHAR)"me",    10, FALSE, 3,
109    (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
110   {(const PCHAR)0,                      (const PCHAR)0,
111    (const PCHAR)0,  (const PCHAR)0,        0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
112 };
113
114 prefix DefaultModuleLaunchParams MultimediaModulesGroup[] = {
115   {(const PCHAR)SERVICE_MM_ICD,         (const PCHAR)"MM_ICDService",
116    (const PCHAR)"", (const PCHAR)"me",    10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
117   {(const PCHAR)SERVICE_MM_MEDIA,       (const PCHAR)"MediaService",
118    (const PCHAR)"", (const PCHAR)"me",    10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
119   {(const PCHAR)0,                      (const PCHAR)0,
120    (const PCHAR)0,  (const PCHAR)0,        0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
121 };
122
123 prefix DefaultModuleLaunchParams HMIModulesGroup[] = {
124   {(const PCHAR)SERVICE_HMI,            (const PCHAR)"GtfStartup",
125    (const PCHAR)"/eb/gtf_5.2.1/models/PastModel004/gtfStartup.cfg", (const PCHAR)"me",
126     13, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0},
127   {(const PCHAR)SERVICE_HMI__CWORD77_,        (const PCHAR)"HMI__CWORD77_",
128    (const PCHAR)"", (const PCHAR)"me",    10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
129   {(const PCHAR)SERVICE_HMI__CWORD46_,      (const PCHAR)"HMI__CWORD46_Service",  (const PCHAR)"",
130    (const PCHAR)"me",    10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
131   {(const PCHAR)0,                      (const PCHAR)0,                   (const PCHAR)0,
132    (const PCHAR)0,        0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
133 };
134
135 prefix DefaultModuleLaunchParams NavigationModulesGroup[] = {
136   {(const PCHAR)SERVICE_NAV_LOC,    (const PCHAR)"NAV_LocationService",   (const PCHAR)"", (const PCHAR)"me",
137    10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
138   {(const PCHAR)SERVICE_NAV,        (const PCHAR)"NAV_NavigationService", (const PCHAR)"", (const PCHAR)"me",
139    10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
140   {(const PCHAR)0,                  (const PCHAR)0,                       (const PCHAR)0,  (const PCHAR)0,
141     0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
142 };
143
144 prefix DefaultModuleLaunchParams SoftwareUpdateModulesGroup[] = {
145   {(const PCHAR)SERVICE_SOFTWAREUPDATE, (const PCHAR)"SS_SoftwareUpdateService",
146       (const PCHAR)"", (const PCHAR)"me", 10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
147   {(const PCHAR)SERVICE_PS_SWDL_SHADOW, (const PCHAR)"PS_SoftwareUpdateShadow",
148       (const PCHAR)"", (const PCHAR)"me", 10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
149   {(const PCHAR)0,                      (const PCHAR)0,
150    (const PCHAR)0,  (const PCHAR)0,     0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
151 };
152
153 prefix DefaultModuleLaunchParams NetworkingModulesGroup[] = {
154   {(const PCHAR)SERVICE__CWORD51__BT,      (const PCHAR)"_CWORD51__BT.exe",
155    (const PCHAR)"", (const PCHAR)"me",  10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
156   {(const PCHAR)SERVICE_NW_BT,         (const PCHAR)"NW_BluetoothService",
157    (const PCHAR)"", (const PCHAR)"me",  10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
158   {(const PCHAR)SERVICE_NW_CONNECTION, (const PCHAR)"NW_ConnectionService",
159    (const PCHAR)"", (const PCHAR)"me",  10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
160   {(const PCHAR)SERVICE_NW_PHONE,      (const PCHAR)"NW_PhoneService",
161    (const PCHAR)"", (const PCHAR)"me",  10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
162   {(const PCHAR)SERVICE_NW_PHONE_BOOK, (const PCHAR)"NW_PhoneBookService",
163    (const PCHAR)"", (const PCHAR)"me",  10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
164   {(const PCHAR)SERVICE_NW_MESSAGING,  (const PCHAR)"NW_MessagingService",
165    (const PCHAR)"", (const PCHAR)"me",  10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
166   {(const PCHAR)0,                     (const PCHAR)0,
167    (const PCHAR)0,  (const PCHAR)0,      0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
168 };
169
170 prefix DefaultModuleLaunchParams BrowserModulesGroup[] = {
171   {(const PCHAR)SERVICE_BR_BROWSER,    (const PCHAR)"BR_BrowserService",
172    (const PCHAR)"", (const PCHAR)"me",  10, TRUE,  3, (const PCHAR)"0x00000000, 0x00000000", TRUE,  FALSE,  0},
173   {(const PCHAR)0,                     (const PCHAR)0,
174    (const PCHAR)0,  (const PCHAR)0,      0, FALSE, 0, (const PCHAR)"0x00000000, 0x00000000", FALSE, FALSE,  0}
175 };
176
177 prefix DefaultGroupLaunchInfo g_arrLaunchTable[] = {
178   {(const PCHAR)"CoreModules",     1, CoreModulesGroup           },
179   {(const PCHAR)"ShadowModules",   2, ShadowModulesGroup         },
180   {(const PCHAR)"SystemModules",   3, SystemModulesGroup         },
181   {(const PCHAR)"Audio",           4, AudioModulesGroup          },
182   {(const PCHAR)"Radio",           5, RadioModulesGroup          },
183   {(const PCHAR)"Multimedia",      6, MultimediaModulesGroup     },
184   {(const PCHAR)"HMI",             7, HMIModulesGroup            },
185   {(const PCHAR)"Navigation",      8, NavigationModulesGroup     },
186   {(const PCHAR)"SoftwareUpdate",  9, SoftwareUpdateModulesGroup },
187   {(const PCHAR)"Networking",     10, NetworkingModulesGroup     },
188   {(const PCHAR)"Browser",        11, BrowserModulesGroup        },
189 };
190
191 #endif  // SS_SM_LAUNCH_CONFIGURATION_H_  // NOLINT