4 * Copyright (c) 2010 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #ifndef __TIZEN_SOCIAL_CTSVC_CLIENT_IPC_H__
21 #define __TIZEN_SOCIAL_CTSVC_CLIENT_IPC_H__
25 pims_ipc_h ctsvc_get_ipc_handle();
27 int ctsvc_ipc_connect(void);
28 int ctsvc_ipc_disconnect(void);
30 int ctsvc_ipc_connect_on_thread(void);
31 int ctsvc_ipc_disconnect_on_thread(void);
34 bool ctsvc_ipc_is_busy();
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();
40 int ctsvc_ipc_call(char *module, char *function, pims_ipc_h data_in, pims_ipc_data_h *data_out);
41 int ctsvc_ipc_call_async(char *module, char *function, pims_ipc_h data_in, pims_ipc_call_async_cb callback, void *userdata);
43 void ctsvc_client_ipc_set_change_version(int version);
44 int ctsvc_client_ipc_get_change_version(void);
46 int ctsvc_ipc_client_check_permission(int permission, bool *result);
48 #endif /* __TIZEN_SOCIAL_CTSVC_CLIENT_IPC_H__ */