b010f6b47e959fb3d37beee4d81e74ab5b3aa18a
[framework/telephony/tel-plugin-socket_communicator.git] / libclient / src / tapi_common_sipc.h
1 /*
2  * tel-plugin-socket-communicator
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Ja-young Gu <jygu@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20
21 #ifndef __TAPI_COMMON_SIPC_H__
22 #define __TAPI_COMMON_SIPC_H__
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 #include <glib.h>
29 #include <glib-object.h>
30 #include <sipc.h>
31
32 #include "tapi_type.h"
33 #include "tapi_common.h"
34
35 struct _tapi_service_object*    _tapi_service_object_create( tapi_service_command_e c );
36 gboolean                                                _tapi_service_object_add_data(struct _tapi_service_object *so, const gchar* key,
37                                                                         void *in_data, tapi_object_data_type_e type);
38 gboolean                                                _tapi_service_object_get_data(struct _tapi_service_object *so, const gchar* key,
39                                                                         void **out_data, tapi_object_data_type_e type);
40 gchar                                                   _tapi_service_object_get_char(struct _tapi_service_object *so, const gchar* key);
41 gboolean                                                _tapi_service_object_get_boolean(struct _tapi_service_object *so, const gchar* key);
42 gint                                                    _tapi_service_object_get_int(struct _tapi_service_object *so, const gchar* key);
43 gdouble                                                 _tapi_service_object_get_double(struct _tapi_service_object *so, const gchar* key);
44 gchar*                                                  _tapi_service_object_get_string(struct _tapi_service_object *so, const gchar* key);
45 struct _tapi_service_object*    _tapi_service_object_get_object(struct _tapi_service_object *so, const gchar* key);
46 struct _tapi_service_object*    _tapi_service_object_extract_async_data(const gchar *data);
47 gboolean                                                _tapi_service_object_remove_data(struct _tapi_service_object *so, const gchar* key);
48 gboolean                                                _tapi_service_object_remove_alldata(struct _tapi_service_object *so);
49 gboolean                                                _tapi_service_object_destory(struct _tapi_service_object *so);
50
51 gboolean                                                _tapi_send_service_request_sync(struct _tapi_handle *h, struct _tapi_service_object *in_d,
52                                                                         struct _tapi_service_object *out_d);
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif