Add 3.0 APIs and sync APIs same as 2.4
[platform/core/convergence/service-adaptor.git] / common / ipc-client / sal_ipc_client.h
1 /*
2  * Service Adaptor Client IPC
3  *
4  * Copyright (c) 2014 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Yongjin Kim <youth.kim@samsung.com>
7  *          Jinhyeong Ahn <jinh.ahn@samsung.com>
8  *          Jiwon Kim <jiwon177.kim@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24 #ifndef __TIZEN_CONVERGENCE_SAL_IPC_CLIENT_H__
25 #define __TIZEN_CONVERGENCE_SAL_IPC_CLIENT_H__
26
27 #ifndef API
28 #define API __attribute__ ((visibility("default")))
29 #endif
30
31 #ifdef __cplusplus
32 extern "C"
33 {
34 #endif
35
36 #include <glib.h>
37 #include <gio/gio.h>
38
39 #include "service_adaptor_errors.h"
40 #include "sal_ipc.h"
41
42 service_adaptor_error_e sal_ipc_client_init();
43 service_adaptor_error_e sal_ipc_client_deinit();
44 service_adaptor_error_e sal_ipc_client_get_interface(GDBusProxy **interface);
45 int sal_ipc_client_call_request(const char *request_method, GVariant *request_data, const char *reply_type, GVariant **reply_info);
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif /* __TIZEN_CONVERGENCE_SAL_IPC_CLIENT_H__ */
52