4 * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Anupam Roy <anupam.r@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.
22 #ifndef _BT_HAL_GATT_SERVER_H_
23 #define _BT_HAL_GATT_SERVER_H_
26 #include <sys/types.h>
29 #include "bt-hal-log.h"
30 #include "bt-hal-msg.h"
32 #include "bt-hal-event-receiver.h"
38 void _bt_hal_gatt_server_init(void);
40 void _bt_hal_register_gatt_server_handler_cb(handle_stack_msg cb);
42 void _bt_hal_unregister_gatt_server_handler_cb(void);
44 void _bt_hal_gatt_connected_state_event(gboolean is_connected, char *address);
46 handle_stack_msg _bt_hal_get_gatt_event(void);
48 int bt_hal_gatts_get_adv_slot_id(int server_if);
50 void bt_hal_gatts_release_adv_slot(int server_if);
52 int _bt_get_remote_gatt_client_conn_id(char *address);
54 int bt_hal_gatts_allocate_adv_slot_by_server_if(int server_if);
56 int bt_hal_gatts_get_server_if(int slot_id);
60 #endif /* __cplusplus */
61 #endif /*_BT_HAL_GATT_SERVER_H_*/