09b78ecb9afae9cdb4d4cca7b49269bceac48706
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-gatt-client.h
1 /*
2  * BLUETOOOTH HAL
3  *
4  * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Atul Rai <a.rai@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
22 #ifndef _BT_HAL_GATT_CLIENT_H_
23 #define _BT_HAL_GATT_CLIENT_H_
24
25 #include <glib.h>
26 #include <sys/types.h>
27
28 #include "bt-hal.h"
29 #include "bt-hal-log.h"
30 #include "bt-hal-msg.h"
31
32 #include "bt-hal-event-receiver.h"
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 void _bt_hal_register_gatt_client_handler_cb(handle_stack_msg cb);
39 void _bt_hal_unregister_gatt_client_handler_cb(void);
40
41 gboolean _bt_hal_check_gattc_is_existing(const char *address);
42
43 void _bt_hal_handle_gattc_connected_event(char* address, gboolean connected);
44 void  _bt_hal_handle_gattc_value_changed_event(int result, const char *char_handle,
45                 char *char_value, int len);
46 void _bt_hal_handle_gattc_service_changed_event(gboolean is_added, const char *path);
47
48 #ifdef TIZEN_BT_HAL
49 int _bt_hal_gatt_client_get_le_scan_type(void);
50 #endif
51
52 #ifdef __cplusplus
53 }
54 #endif /* __cplusplus */
55 #endif /*_BT_HAL_GATT_CLIENT_H_*/