Code sync
[apps/native/starter.git] / include / lockd-process-mgr.h
1  /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   *
4   * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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
19 #ifndef __LOCKD_PROCESS_MGR_H__
20 #define __LOCKD_PROCESS_MGR_H__
21
22 int lockd_process_mgr_start_lock(void *data, int (*dead_cb) (int, void *),
23                                  int phone_lock_state);
24
25 int lockd_process_mgr_restart_lock(int phone_lock_state);
26
27 int lockd_process_mgr_start_recovery_lock(void);
28
29 int lockd_process_mgr_start_phone_lock(void);
30
31 int lockd_process_mgr_start_normal_lock(void *data, int (*dead_cb) (int, void *));
32
33 void lockd_process_mgr_terminate_lock_app(int lock_app_pid,
34                                           int state);
35
36 void lockd_process_mgr_terminate_phone_lock(int phone_lock_pid);
37
38 int lockd_process_mgr_check_lock(int pid);
39
40 #endif                          /* __LOCKD_PROCESS_MGR_H__ */