Add gitlab issue/merge request templates
[staging/basesystem.git] / service / system / task_manager / server / include / tskm_port_subsys.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 #ifndef TASK_MANAGER_SERVER_INCLUDE_TSKM_PORT_SUBSYS_H_
18 #define TASK_MANAGER_SERVER_INCLUDE_TSKM_PORT_SUBSYS_H_
19
20 #include "system_service/tskm_local_type.h"
21 #include "tskm_main.h"
22
23 typedef struct {
24   pid_t pid;
25   uint8_t type;  // CL_MonitorType_t
26 } TSKM_HUNG_INFO_t;
27
28 int tskm_sub_init(void);
29 int tskm_sub_term(void);
30 void tskm_sub_reboot(const TSKM_ERROR_REBOOT_t* p_info);
31 void tskm_sub_reboot_normal(void);
32 void tskm_sub_logging(const TSKM_LOGGING_INFO_t* p_info);
33 void tskm_sub_debugDumpRes(BOOL bIsNeedSvcName, const char *p_dumpMsg);
34 int tskm_sub_getExtBootInfo(T_SS_SM_START_ExtDataStructType *p_info);
35
36 TSKM_HUNG_INFO_t *tskm_sub_searchHungSvcs();
37 int tskm_sub_resmInit();
38 int tskm_sub_resmRcv(TSKM_EVENT_INFO_t* p_ev);
39 int tskm_sub_setWakeupOrder(const char* p_order);
40
41 #endif  // TASK_MANAGER_SERVER_INCLUDE_TSKM_PORT_SUBSYS_H_
42