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 __SIPC_TYPE_H__
22 #define __SIPC_TYPE_H__
27 #include <glib-object.h>
30 SIPC_CHANNEL_TYPE_TX = 0x01,
32 } sipc_channel_type_e;
35 SIPC_SEND_DATA_SYNC = 0x01,
37 SIPC_SEND_DATA_BROADCAST,
38 SIPC_REGISTER_CHANNEL,
39 SIPC_DEREGISTER_CHANNEL,
46 SIPC_DATA_TYPE_SYNC = 0x01,
52 } sipc_encoding_type_e;
55 SIPC_MARSHAL_DATA_CHAR_TYPE = G_TYPE_CHAR,
56 SIPC_MARSHAL_DATA_BOOLEAN_TYPE = G_TYPE_BOOLEAN,
57 SIPC_MARSHAL_DATA_INT_TYPE = G_TYPE_INT,
58 SIPC_MARSHAL_DATA_DOUBLE_TYPE = G_TYPE_DOUBLE,
59 SIPC_MARSHAL_DATA_STRING_TYPE = G_TYPE_STRING,
60 SIPC_MARSHAL_DATA_OBJECT_TYPE = G_TYPE_BOXED,
61 SIPC_MARSHAL_DATA_STRING_MAX = 0xFF,
62 } sipc_marshal_data_type_e;
64 typedef int(*sipc_cb)( unsigned int id, void *inparam, unsigned int inparam_len, void** outparam, void *cb_data );