tizen 2.3.1 release
[framework/appfw/aul-1.git] / am_daemon / amd_launch.h
1 /*
2  *  aul
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 #ifndef __AUL_AMD_LAUNCH_H_
23 #define __AUL_AMD_LAUNCH_H_
24
25 #ifndef _APPFW_FEATURE_PROCESS_POOL
26  #ifdef _APPFW_FEATURE_PROCESS_POOL_COMMON
27  #error _APPFW_FEATURE_PROCESS_POOL should be defined !!
28  #else
29   #ifdef _APPFW_FEATURE_PROCESS_POOL_HW_RENDERING
30   #error _APPFW_FEATURE_PROCESS_POOL should be defined !!
31   #endif
32  #endif
33 #endif
34
35 #include <glib.h>
36 #include <bundle.h>
37 #include "aul_util.h"
38 #include "amd_appinfo.h"
39
40 int _send_to_sigkill(int pid);
41 int _resume_app(int pid, int clifd);
42 int _term_app(int pid, int clifd);
43 int _fake_launch_app(int cmd, int pid, bundle * kb, int clifd);
44 int _start_app(char* appid, bundle* kb, int cmd, int caller_pid, uid_t caller_uid, int fd);
45 void service_release(const char *group);
46 int _start_srv(const struct appinfo *ai, bundle *kb);
47
48 int _launch_init(struct amdmgr* amd);
49 void _set_atom_effect(void);
50 void __set_appinfo_for_launchpad(const struct appinfo *ai, bundle *kb);
51 gboolean _get_platform_ready(void);
52
53 #endif /* __AUL_AMD_LAUNCH_H_ */