[ACR-187] Remove async APIs
[platform/core/pim/contacts-service.git] / client / ctsvc_client_ipc.h
1 /*
2  * Contacts Service
3  *
4  * Copyright (c) 2010 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef __TIZEN_SOCIAL_CTSVC_CLIENT_IPC_H__
21 #define __TIZEN_SOCIAL_CTSVC_CLIENT_IPC_H__
22
23 #include <pims-ipc.h>
24
25 pims_ipc_h ctsvc_get_ipc_handle();
26
27 int ctsvc_ipc_connect(void);
28 int ctsvc_ipc_disconnect(void);
29
30 int ctsvc_ipc_connect_on_thread(void);
31 int ctsvc_ipc_disconnect_on_thread(void);
32
33
34 bool ctsvc_ipc_is_busy();
35
36 pims_ipc_h ctsvc_ipc_get_handle_for_change_subsciption();
37 int ctsvc_ipc_create_for_change_subscription();
38 int ctsvc_ipc_destroy_for_change_subscription();
39
40 int ctsvc_ipc_call(char *module, char *function, pims_ipc_h data_in, pims_ipc_data_h *data_out);
41
42 void ctsvc_client_ipc_set_change_version(int version);
43 int ctsvc_client_ipc_get_change_version(void);
44
45 int ctsvc_ipc_client_check_permission(int permission, bool *result);
46
47 #endif /*  __TIZEN_SOCIAL_CTSVC_CLIENT_IPC_H__ */
48