Add Check logic
[platform/core/security/privacy-manager.git] / client / inc / privacy_checker_client.h
1 /*\r
2  * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved\r
3  *\r
4  * Licensed under the Apache License, Version 2.0 (the License);\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *\r
8  * http://www.apache.org/licenses/LICENSE-2.0\r
9  *\r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an AS IS BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License. \r
15  */\r
16 \r
17 #ifndef _PRIVACY_CHECKER_CLIENT_H\r
18 #define _PRIVACY_CHECKER_CLIENT_H\r
19 \r
20 #include <privacy_manager_client_types.h>\r
21 \r
22 #ifdef __cplusplus\r
23 extern "C" {\r
24 #endif\r
25 \r
26 EXTERN_API int privacy_checker_initialize(const char *package_id);\r
27 EXTERN_API int privacy_checker_check_privacy(const char *privacy_id);\r
28 EXTERN_API int privacy_checker_check_by_privilege(const char *privilege_id);\r
29 EXTERN_API int privacy_checker_check_by_device_cap(const char *device_cap);\r
30 EXTERN_API int privacy_checker_finalize(void);\r
31 \r
32 EXTERN_API int privacy_checker_check_package_by_privilege(const char* package_id, const char *privilege_id);\r
33 EXTERN_API int privacy_checker_check_package_by_device_cap(const char* package_id, const char *device_cap);\r
34 \r
35 EXTERN_API int privacy_checker_finalize(void);\r
36 \r
37 #ifdef __cplusplus\r
38 }\r
39 #endif\r
40 \r
41 \r
42 #endif //_PRIVACY_CHECKER_CLIENT_H\r