2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef TASK_MANAGER_CLIENT_LIBPRIMARY_INCLUDE_PRI_MAIN_H_
18 #define TASK_MANAGER_CLIENT_LIBPRIMARY_INCLUDE_PRI_MAIN_H_
20 #include <native_service/frameworkunified_types.h>
22 #include "system_service/tskm_type.h"
23 #include "system_service/Primary_common.h"
24 #include "system_service/INI_API.hpp"
26 int pri_main(T_PRIM_PRM* p_prm, int argc, char* argv[]);
27 void pri_exitStart(void* rsv);
28 void pri_exitDone(int status);
29 void* pri_getPrivate();
30 HANDLE pri_getHandle();
31 int32_t pri_setMonitorTimeout(uint32_t timeout);
33 int32_t pri_stepForkComp(uint64_t id);
34 int32_t pri_accOffComp(uint64_t id);
36 int32_t pri_getBootInfo(T_SS_SM_START_DataStructType *info);
37 int32_t pri_getExtBootInfo(T_SS_SM_START_ExtDataStructType *info);
38 void pri_sendDebugDumpRes(const char *buf);
40 void pri_init(T_PRIM_PRM* p_prm, int argc, char* argv[], int *fdNum,
41 int fdlist[INI_FD_MAX]);
42 BOOL pri_handler(fd_set* p_fds);
44 int pri_setMonitorState(BOOL bIsRun, uint32_t timeout);
45 void pri_getAppHandle(void);
47 #endif // TASK_MANAGER_CLIENT_LIBPRIMARY_INCLUDE_PRI_MAIN_H_