tizen 2.4 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 #include <glib.h>
26 #include <bundle.h>
27 #include "aul_util.h"
28 #include "amd_appinfo.h"
29
30 int _send_to_sigkill(int pid);
31 int _resume_app(int pid, int clifd);
32 int _pause_app(int pid, int clifd);
33 void _term_sub_app(int pid);
34 int _term_app(int pid, int clifd);
35 int _term_bgapp(int pid, int clifd);
36 int _term_req_app(int pid, int clifd);
37 int _fake_launch_app(int cmd, int pid, bundle * kb, int clifd);
38 int _start_app(const char* appid, bundle* kb, int cmd, int caller_pid, uid_t caller_uid, int fd);
39 void service_release(const char *group);
40 int _start_srv(const struct appinfo *ai);
41 int _revoke_temporary_permission(int pid);
42
43 int _launch_init(struct amdmgr* amd);
44 void _set_atom_effect(void);
45 void __set_appinfo_for_launchpad(const struct appinfo *ai, bundle *kb);
46 gboolean _get_platform_ready(void);
47 int _window_is_initialized(void);
48 int _amd_proc_remove_proc_info(pid_t pid);
49 void _amd_suspend_add_timer(pid_t pid);
50 void _amd_suspend_remove_timer(pid_t pid);
51 #endif /* __AUL_AMD_LAUNCH_H_ */