Merge "Modify GATT search service result event handling logic" into tizen
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / common / oal-common.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_COMMON_H_
21 #define _OAL_COMMON_H_
22
23 #include <stdint.h>
24 #include <sys/types.h>
25
26 #include <bluetooth.h>
27 #include "oal-internal.h"
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 void parse_device_properties(int num_properties, bt_property_t *properties,
33                                 remote_device_t *dev_info, ble_adv_data_t * adv_info);
34 oal_status_t convert_to_oal_status(bt_status_t status);
35
36 const char * status2string(bt_status_t status);
37
38 int check_duplicate_uuid(oal_uuid_t *table, oal_uuid_t toMatch, int table_len);
39
40 #ifdef __cplusplus
41 }
42 #endif /* __cplusplus */
43 #endif /*_OAL_COMMON_H_*/