63662da2dcedc25b2a3af54f63e93f7e65fd8c86
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / include / oal-device-mgr.h
1 /*
2  * Open Adaptation Layer (OAL)
3  *
4  * Copyright (c) 2014-2015 Samsung Electronics Co., Ltd.
5  *
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
9  *
10  *              http://www.apache.org/licenses/LICENSE-2.0
11  *
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.
17  *
18  */
19
20 #ifndef _OAL_DEVICE_MGR_H_
21 #define _OAL_DEVICE_MGR_H_
22
23 #include <glib.h>
24 #include <sys/types.h>
25
26 #include <oal-manager.h>
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 /**
33  * @brief Request remote device attributes
34  *
35  * @details Attibutes such as name, vidpid, bond state etc are requested. remote_device_t is provided
36  *                 with OAL_EVENT_DEVICE_PROPERTIES
37  *
38  * @return OAL_STATUS_SUCCESS on success, otherwise a non-zero error value.
39  * @retval #OAL_STATUS_SUCCESS  Successful
40  *
41  * @pre Adapter must be enabled with adapter_enable() followed by OAL_EVENT_ADAPTER_ENABLED
42  *
43  * @see  OAL_EVENT_DEVICE_PROPERTIES
44  * @see  remote_device_t
45  */
46 oal_status_t device_query_attributes(bt_address_t * addr);
47
48 /**
49  * @brief Set alias for remote device
50  *
51  * @return OAL_STATUS_SUCCESS on success, otherwise a non-zero error value.
52  * @retval #OAL_STATUS_SUCCESS  Successful
53  *
54  * @pre Adapter must be enabled with adapter_enable() followed by OAL_EVENT_ADAPTER_ENABLED
55  *
56  * @see  remote_device_t
57  */
58 oal_status_t device_set_alias(bt_address_t * addr, char * alias);
59
60
61 #ifdef __cplusplus
62 }
63 #endif /* __cplusplus */
64 #endif /*_OAL_DEVICE_MGR_H_*/
65