Initialize Tizen 2.3
[framework/telephony/libslp-tapi.git] / wearable / include / tapi_type.h
1 /*
2  * libslp-tapi
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_TYPE_H__
22 #define __TAPI_TYPE_H__
23
24 /**
25 *  @addtogroup TAPI_COMMON
26 *  @{
27 *
28 *  @file tapi_type.h
29 *  @brief TAPI type
30 */
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
36 /** Telephony service name */
37 #define DBUS_TELEPHONY_SERVICE      "org.tizen.telephony"
38
39 /** Telephony object path */
40 #define DBUS_TELEPHONY_DEFAULT_PATH "/org/tizen/telephony"
41
42 /**
43  * TAPI Handle
44  */
45 typedef struct tapi_handle TapiHandle;
46
47 /**
48  * TAPI Notification Callback Type
49  * @param handle #TapiHandle obtained from tel_init()
50  * @param noti_id Notification ID for which this callback has to be invoked
51  * @param data Notification Data
52  * @param user_data User Data
53  */
54 typedef void (*tapi_notification_cb)(TapiHandle *handle, const char *noti_id, void *data, void *user_data);
55
56 /**
57  * TAPI Response Callback Type
58  * @param handle #TapiHandle obtained from tel_init()
59  * @param result Result of operation
60  * @param data Response Data from operation
61  * @param user_data User Data
62  */
63 typedef void (*tapi_response_cb)(TapiHandle *handle, int result, void *data, void *user_data);
64
65 #ifdef __cplusplus
66 }
67 #endif
68
69 /** @}*/
70
71 #endif /* __TAPI_TYPE_H__ */