Add APIs to set/unset alias appid
[platform/core/appfw/aul-1.git] / include / aul_cmd.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
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 #pragma once
19
20 enum app_cmd {
21         APP_START = 0,
22         APP_OPEN,
23         APP_RESUME,
24         APP_RESUME_BY_PID,
25         APP_TERM_BY_PID,
26         APP_TERM_BY_PID_WITHOUT_RESTART,
27         APP_RESULT,
28         APP_START_RES,
29         APP_CANCEL,
30         APP_KILL_BY_PID,
31         APP_UPDATE_RUA_STAT,
32         APP_ADD_HISTORY,
33         APP_REMOVE_HISTORY,
34         APP_RUNNING_INFO,
35         APP_RUNNING_INFO_RESULT,
36         APP_IS_RUNNING,
37         APP_GET_APPID_BYPID,
38         APP_GET_PKGID_BYPID,
39         APP_GET_INFO_OK,
40         APP_GET_INFO_ERROR,
41         APP_KEY_EVENT,
42         APP_KEY_RESERVE,
43         APP_KEY_RELEASE,
44         APP_STATUS_UPDATE,
45         APP_RUNNING_LIST_UPDATE,
46         APP_TERM_REQ_BY_PID,
47         APP_TERM_BY_PID_ASYNC,
48         APP_TERM_BGAPP_BY_PID,
49         APP_PAUSE,
50         APP_PAUSE_BY_PID,
51         APP_GROUP_GET_WINDOW,
52         APP_GROUP_SET_WINDOW,
53         APP_GROUP_GET_FG,
54         APP_GROUP_GET_LEADER_PID,
55         APP_GROUP_GET_LEADER_PIDS,
56         APP_GROUP_GET_GROUP_PIDS,
57         APP_GROUP_GET_IDLE_PIDS,
58         APP_GROUP_LOWER,
59         APP_GROUP_CLEAR_TOP,
60         APP_GROUP_ACTIVATE_BELOW,
61         APP_GET_STATUS,
62         APP_ADD_LOADER,
63         APP_REMOVE_LOADER,
64         APP_GET_PID,
65
66         /* for data-control */
67         APP_GET_DC_SOCKET_PAIR,
68
69         /* for message-port */
70         APP_GET_MP_SOCKET_PAIR,
71
72         APP_COM_CREATE,
73         APP_COM_JOIN,
74         APP_COM_SEND,
75         APP_COM_LEAVE,
76         APP_COM_MESSAGE,
77         APP_DATA_NEW,
78         APP_DATA_GET_RAW,
79         APP_DATA_PUT,
80         APP_DATA_GET,
81         APP_DATA_GET_OWNER,
82         APP_DATA_DEL,
83
84         WIDGET_ADD,
85         WIDGET_DEL,
86         WIDGET_LIST,
87         WIDGET_UPDATE,
88         WIDGET_COUNT,
89
90         APP_REGISTER_PID,
91
92         /* background category */
93         APP_WAKE,
94         APP_SUSPEND,
95
96         /* for special purpose */
97         AMD_RELOAD_APPINFO,
98         /* reserved for AMD Agent */
99         AGENT_DEAD_SIGNAL,
100
101         APP_ALL_RUNNING_INFO,
102         APP_SET_APP_CONTROL_DEFAULT_APP,
103         APP_UNSET_APP_CONTROL_DEFAULT_APP,
104         APP_START_ASYNC,
105         APP_SET_PROCESS_GROUP,
106         APP_PREPARE_CANDIDATE_PROCESS,
107         APP_TERM_BY_PID_SYNC,
108         APP_GET_STATUS_BY_APPID,
109         APP_GET_LAST_CALLER_PID,
110         APP_TERM_BY_PID_SYNC_WITHOUT_RESTART,
111         APP_RESUME_BY_PID_ASYNC,
112         APP_SET_ALIAS_APPID,
113         APP_UNSET_ALIAS_APPID,
114         APP_CMD_MAX
115 };
116
117