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_ADAPTER_DBUS_HANDLER_H_
23 #define _BT_HAL_ADAPTER_DBUS_HANDLER_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"
40 int _bt_hal_dbus_enable_le(void);
42 int _bt_hal_dbus_disable_le(void);
45 void _bt_hal_dbus_store_stack_msg_cb(handle_stack_msg cb);
47 int _bt_hal_dbus_enable_adapter(void);
49 int _bt_hal_dbus_disable_adapter(void);
51 int _bt_hal_dbus_recover_adapter(void);
54 int _bt_hal_dbus_reset_adapter(void);
57 int _bt_hal_dbus_start_discovery(gboolean is_custom, bt_disc_role_type_t role);
59 int _bt_hal_dbus_stop_discovery(void);
61 int _bt_hal_get_adapter_powered_state(uint8_t *state);
63 int _bt_hal_dbus_get_adapter_property(bt_property_type_t type);
65 int _bt_hal_dbus_get_adapter_properties(void);
67 int _bt_hal_dbus_set_adapter_property(const bt_property_t *property);
69 int _bt_hal_dbus_get_adapter_class(unsigned int *adapter_class);
71 int _bt_hal_dbus_get_energy_info(uint32_t *tx_time, uint32_t *rx_time,
72 uint32_t *idle_time, uint32_t *energy_used);
74 int _bt_hal_dbus_get_profile_connected_devices(const char *profile_uuid);
76 int _bt_hal_enable_core(void);
80 #endif /* __cplusplus */
81 #endif /* _BT_HAL_ADAPTER_DBUS_HANDLER_H_ */