2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
4 * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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.
18 #ifndef __TTD_CMD_TYPE_H__
19 #define __TTD_CMD_TYPE_H__
22 TTD_CMD_STATE_UNKNOWN = -1,
23 TTD_CMD_STATE_CREATED,
24 TTD_CMD_STATE_RUNNING,
27 TTD_CMD_STATE_CANCELED,
31 TTD_CMD_TYPE_UNKNOWN = -1,
35 TTD_CMD_TYPE_DIAGNOSIS,
41 typedef enum { /* TBD */
42 TTD_CMD_POWER_OFF = 0,
43 TTD_CMD_POWER_RESTART,
47 typedef enum { /* TBD */
52 typedef enum { /* TBD */
53 TTD_CMD_CONFIG_SET_SERVER_URL,
54 TTD_CMD_CONFIG_SET_APP_ID,
55 TTD_CMD_CONFIG_ACTION_MAX,
56 } ttd_cmd_config_action_e;
59 TTD_CMD_PACKAGE_INSTALL,
60 TTD_CMD_PACKAGE_REMOVE,
61 TTD_CMD_PACKAGE_GET_APP_LIST,
62 TTD_CMD_PACKAGE_GET_PACKAGE_LIST,
66 typedef enum { /* TBD */
67 TTD_CMD_DIAGNOSIS_GET_LOG,
68 TTD_CMD_DIAGNOSIS_MAX,
69 } ttd_cmd_diagnosis_e;
71 typedef enum { /* TBD */
72 TTD_CMD_INFO_GET_SYSINFO,
73 TTD_CMD_INFO_GET_TASKINFO,
77 typedef enum { /* TBD */
78 TTD_CMD_LOCAL_SOMETHING,
79 TTD_CMD_LOCAL_GET_CMD,
84 TTD_CMD_RESULT_RUNNING,
85 TTD_CMD_RESULT_SUCCESS,
89 typedef void (*cmd_data_free_func)(void *data);
90 typedef int (*ttd_cmd_launch_func)(void *cmd_data);
92 typedef struct _ttd_cmd_data_s ttd_cmd_data;
94 #endif /* __TTD_CMD_TYPE_H__ */