45fccb7a35b293a85b261fdac1c2fbfd3e3d5e9e
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / obex / include / bt-service-oob.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *              http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18
19 #ifndef _BT_SERVICE_OOB_H_
20 #define _BT_SERVICE_OOB_H_
21
22 #include <glib.h>
23 #include <sys/types.h>
24 #include "bluetooth-api.h"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 int _bt_oob_read_local_data(bt_oob_data_t *local_oob_data);
31
32 int _bt_oob_add_remote_data(
33                         bluetooth_device_address_t *remote_device_address,
34                         unsigned short address_type,
35                         bt_oob_data_t *remote_oob_data);
36
37 int _bt_oob_remove_remote_data(
38                         bluetooth_device_address_t *remote_device_address);
39
40 int _bt_le_oob_read_local_data(bt_oob_data_t *local_oob_data);
41
42 void _bt_le_oob_reset_local_cache_data(void);
43
44 bt_oob_data_t *_bt_le_oob_get_local_cache_data(void);
45
46 void _bt_le_oob_set_local_cache_data(bt_oob_data_t *data);
47
48
49 #ifdef __cplusplus
50 }
51 #endif /* __cplusplus */
52 #endif /*_BT_SERVICE_OOB_H_*/
53