99fc1e68cf4035085933837768e7dd25d580ee08
[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
78         APP_REGISTER_PID,
79
80         /* background category */
81         APP_WAKE,
82         APP_SUSPEND,
83
84         /* for special purpose */
85         AMD_RELOAD_APPINFO,
86         /* reserved for AMD Agent */
87         AGENT_DEAD_SIGNAL,
88
89         APP_ALL_RUNNING_INFO,
90         APP_SET_APP_CONTROL_DEFAULT_APP,
91         APP_UNSET_APP_CONTROL_DEFAULT_APP,
92         APP_START_ASYNC,
93         APP_SET_PROCESS_GROUP,
94         APP_PREPARE_CANDIDATE_PROCESS,
95         APP_TERM_BY_PID_SYNC,
96         APP_GET_STATUS_BY_APPID,
97         APP_CMD_MAX
98 };
99
100