tizen 2.4 release
[apps/home/starter.git] / include / process_mgr.h
1 /*
2  * Copyright (c) 2000 - 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 #ifndef __PROCESS_MGR_H__
18 #define __PROCESS_MGR_H__
19
20 typedef struct _process_mgr_s *process_mgr_h;
21
22 typedef void (*after_func)(int pid);
23 typedef int (*change_func)(const char *, const char *, const char *, void *, void *);
24
25 void process_mgr_must_launch(const char *appid, const char *key, const char *value, change_func cfn, after_func afn);
26 void process_mgr_must_open(const char *appid, change_func cfn, after_func afn);
27 void process_mgr_must_syspopup_launch(const char *appid, const char *key, const char *value, change_func cfn, after_func afn);
28
29 extern void process_mgr_terminate_app(int lock_app_pid, int state);
30 extern void process_mgr_kill_app(int lock_app_pid);
31
32 extern int process_mgr_validate_app(int pid);
33 extern int process_mgr_validate_call(int pid);
34
35 extern int process_mgr_set_lock_priority(int pid);
36 extern int process_mgr_set_pwlock_priority(int pid);
37
38 #endif /* __PROCESS_MGR_H__ */