2 * tel-plugin-socket-communicator
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Ja-young Gu <jygu@samsung.com>
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 #ifndef __TAPI_COMMON_SIPC_H__
22 #define __TAPI_COMMON_SIPC_H__
29 #include <glib-object.h>
32 #include "tapi_type.h"
33 #include "tapi_common.h"
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(const 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(const struct _tapi_service_object *so, const gchar* key);
41 gboolean _tapi_service_object_get_boolean(const struct _tapi_service_object *so, const gchar* key);
42 gint _tapi_service_object_get_int(const struct _tapi_service_object *so, const gchar* key);
43 gdouble _tapi_service_object_get_double(const struct _tapi_service_object *so, const gchar* key);
44 gchar* _tapi_service_object_get_string(const struct _tapi_service_object *so, const gchar* key);
45 struct _tapi_service_object* _tapi_service_object_get_object(const 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);
51 gboolean _tapi_send_service_request_sync(struct _tapi_handle *h, struct _tapi_service_object *in_d,
52 struct _tapi_service_object *out_d);