2 * Open Adaptation Layer (OAL)
4 * Copyright (c) 2014-2015 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef _OAL_DEVICE_MGR_H_
21 #define _OAL_DEVICE_MGR_H_
24 #include <sys/types.h>
26 #include <oal-manager.h>
33 * @brief Request remote device attributes
35 * @details Attibutes such as name, vidpid, bond state etc are requested. remote_device_t is provided
36 * with OAL_EVENT_DEVICE_PROPERTIES
38 * @return OAL_STATUS_SUCCESS on success, otherwise a non-zero error value.
39 * @retval #OAL_STATUS_SUCCESS Successful
41 * @pre Adapter must be enabled with adapter_enable() followed by OAL_EVENT_ADAPTER_ENABLED
43 * @see OAL_EVENT_DEVICE_PROPERTIES
44 * @see remote_device_t
46 oal_status_t device_query_attributes(bt_address_t * addr);
49 * @brief Set alias for remote device
51 * @return OAL_STATUS_SUCCESS on success, otherwise a non-zero error value.
52 * @retval #OAL_STATUS_SUCCESS Successful
54 * @pre Adapter must be enabled with adapter_enable() followed by OAL_EVENT_ADAPTER_ENABLED
56 * @see remote_device_t
58 oal_status_t device_set_alias(bt_address_t * addr, char * alias);
63 #endif /* __cplusplus */
64 #endif /*_OAL_DEVICE_MGR_H_*/