3 * Copyright (c) 20015 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
5 * Contact: Anupam Roy <anupam.r@samsung.com>
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #ifndef _BT_HAL_DEVICE_DBUS_HANDLER_H_
23 #define _BT_HAL_DEVICE_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"
39 int _bt_hal_device_create_bond(const bt_bdaddr_t *bd_addr, unsigned short transport);
41 int _bt_hal_device_remove_bond(const bt_bdaddr_t *bd_addr);
43 int _bt_hal_device_cancel_bond(const bt_bdaddr_t *bd_addr);
45 int _bt_hal_dbus_get_remote_device_properties(bt_bdaddr_t *remote_addr);
47 int _bt_hal_dbus_set_remote_device_property(
48 bt_bdaddr_t *remote_addr, const bt_property_t *property);
50 int _bt_hal_device_legacy_pin_reply(const bt_bdaddr_t *bd_addr,
51 gboolean accept, uint8_t pin_len, char *pincode);
53 int _bt_hal_device_ssp_reply(const bt_bdaddr_t *bd_addr, bt_ssp_variant_t variant,
54 uint8_t accept, uint32_t passkey);
56 int _bt_hal_dbus_get_remote_device_services(const bt_bdaddr_t *remote_addr);
58 int _bt_hal_device_authorize_response(const bt_bdaddr_t *bd_addr, bt_service_id_t service_id,
59 uint8_t authorize, uint8_t save_settings);
61 int _bt_hal_device_set_trust(const bt_bdaddr_t *bd_addr, uint8_t trust);
63 int _bt_hal_device_get_connection_state(const bt_bdaddr_t *bd_addr);
66 int _bt_hal_device_get_service_connection_state(
67 const bt_bdaddr_t *bd_addr, bt_service_id_t rem_svc_id);
69 int _bt_hal_device_set_osp_server(uint32_t type, gboolean enable);
72 int _bt_hal_device_set_trusted_profile(const bt_bdaddr_t *bd_addr,
73 bt_trusted_profile_t profile, uint8_t trust);
75 int _bt_hal_device_get_trusted_profile(const bt_bdaddr_t *bd_addr,
76 bt_trusted_profile_t profile, uint32_t *trusted);
78 int _bt_hal_device_enable_rssi_monitoring(bt_bdaddr_t *bd_addr, uint32_t conn_link_type,
79 int low_threshold, int in_range_threshold, int high_threshold);
81 int _bt_hal_device_get_connected_link_rssi_strength(const bt_bdaddr_t *bd_addr, uint32_t link_type);
86 #endif /* __cplusplus */
87 #endif /* _BT_HAL_DEVICE_DBUS_HANDLER_H_ */