Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / systemservice / system_manager / server / include / system_launcher_cfg_format.h
1
2 /*
3  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 ///////////////////////////////////////////////////////////////////////////////
19 /// \ingroup  tag_SystemManager
20 /// \brief    This file provides support for System Manager process launching.
21 ///
22 ///////////////////////////////////////////////////////////////////////////////
23
24 #ifndef SS_SM_LAUNCH_CONFIG_H_  // NOLINT
25 #define SS_SM_LAUNCH_CONFIG_H_
26
27 #include <native_service/frameworkunified_types.h>
28
29 typedef struct _tLaunchParams {
30   const PCHAR group_name;
31   UI_32     group_id;
32   UI_32     group_launch_wait;
33   const PCHAR name;
34   const PCHAR binary_name;
35   UI_32     priority;
36   BOOL    critical;
37   UI_32     retry_cnt;
38   const PCHAR arguments;
39   const PCHAR logging_msk_str;
40   const PCHAR restart;
41   BOOL    is_start_required;
42   BOOL    shutdown_critical;
43   UI_32     shutdown_wait_time;
44   UI_32     fast_shutdown_wait_time;
45
46  public:
47   BOOL IsAGLUnit(void) const { return is_agl_unit; }
48   BOOL IsAGLResetHistoryDisable(void) const { return disable_agl_resethistory; }
49   BOOL IsNonAGLResetHistoryDisable(void) const { return disable_nonagl_resethistory; }
50   void SetAGLUnit(BOOL f_is_agl_unit) { is_agl_unit = f_is_agl_unit; }
51   void SetAGLResetHistoryDisable(BOOL f_disable_agl_resethistory) {
52     disable_agl_resethistory = f_disable_agl_resethistory;
53   }
54   void SetNonAGLResetHisoryDisable(BOOL f_disable_nonagl_resethistory) {
55     disable_nonagl_resethistory = f_disable_nonagl_resethistory;
56   }
57
58  private:
59   BOOL        is_agl_unit;
60   BOOL        disable_agl_resethistory;
61   BOOL        disable_nonagl_resethistory;
62 } LaunchInfo;
63
64 LaunchInfo g_arrLaunchTableCfg[] = {
65 };
66 #endif  // SS_SM_LAUNCH_CONFIG_H_  // NOLINT