Fixed the build error for gcc-14
[platform/core/pim/contacts-service.git] / client / ctsvc_client_ipc.h
1 /*
2  * Contacts Service
3  *
4  * Copyright (c) 2010 - 2015 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 __CTSVC_CLIENT_IPC_H__
21 #define __CTSVC_CLIENT_IPC_H__
22
23 #include <pims-ipc.h>
24 #include "contacts_types.h"
25
26 int ctsvc_ipc_connect(contacts_h contact, unsigned int handle_id);
27 int ctsvc_ipc_disconnect(contacts_h contact, unsigned int handle_id, int connection_count);
28
29 int ctsvc_ipc_connect_on_thread(contacts_h contact);
30 int ctsvc_ipc_disconnect_on_thread(contacts_h contact, int connection_count);
31
32
33 bool ctsvc_ipc_is_busy();
34
35 pims_ipc_h ctsvc_ipc_get_handle_for_change_subsciption();
36
37 int ctsvc_ipc_create_for_change_subscription();
38 int ctsvc_ipc_destroy_for_change_subscription(bool is_disconnect);
39 int ctsvc_ipc_recover_for_change_subscription();
40
41 int ctsvc_ipc_call(char *module, char *function, pims_ipc_h data_in, pims_ipc_data_h *data_out);
42
43 void ctsvc_client_ipc_set_change_version(contacts_h contact, int version);
44 int ctsvc_client_ipc_get_change_version(contacts_h contact);
45
46 int ctsvc_ipc_client_check_permission(int permission, bool *result);
47
48 int ctsvc_ipc_set_disconnected_cb(pims_ipc_h ipc, void (*cb)(void *), void *user_data);
49 int ctsvc_ipc_unset_disconnected_cb(pims_ipc_h ipc);
50 void ctsvc_ipc_set_disconnected(bool is_disconnected);
51 int ctsvc_ipc_get_disconnected();
52 void ctsvc_ipc_recovery();
53
54 #endif /* __CTSVC_CLIENT_IPC_H__ */
55