tizen 2.3 release
[framework/telephony/libslp-tapi.git] / include / tapi_type.h
1 /*
2  * libslp-tapi
3  *
4  * Copyright (c) 2014 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  * @file tapi_type.h
26  */
27
28 /**
29  * @internal
30  * @addtogroup CAPI_TELEPHONY_SERVICE
31  * @{
32  */
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 /**
39  * @brief Definition for the telephony service name.
40  */
41 #define DBUS_TELEPHONY_SERVICE      "org.tizen.telephony"
42
43 /**
44  * @brief Definition for the telephony object path.
45  */
46 #define DBUS_TELEPHONY_DEFAULT_PATH "/org/tizen/telephony"
47
48 /**
49  * @brief The structure type containing the TAPI handle.
50  */
51 typedef struct tapi_handle TapiHandle;
52
53 /**
54  * @brief Called for the TAPI notification.
55  * @param[in] handle The #TapiHandle obtained from tel_init()
56  * @param[in] noti_id The notification ID for a callback has to be invoked
57  * @param[in] data The notification data
58  * @param[in] user_data The user data
59  */
60 typedef void (*tapi_notification_cb)(TapiHandle *handle, const char *noti_id, void *data, void *user_data);
61
62 /**
63  * @brief Called for the TAPI response.
64  * @param[in] handle  The #TapiHandle obtained from tel_init()
65  * @param[in] result  The result of the operation
66  * @param[in] data The response data from the operation
67  * @param[in] user_data The user data
68  */
69 typedef void (*tapi_response_cb)(TapiHandle *handle, int result, void *data, void *user_data);
70
71 #ifdef __cplusplus
72 }
73 #endif
74
75 /**
76  * @}
77  */
78
79 #endif /* __TAPI_TYPE_H__ */