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_COMMON_H_
21 #define _OAL_COMMON_H_
24 #include <sys/types.h>
26 #include <bluetooth.h>
27 #include "oal-internal.h"
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);
36 const char * status2string(bt_status_t status);
38 int check_duplicate_uuid(oal_uuid_t *table, oal_uuid_t toMatch, int table_len);
42 #endif /* __cplusplus */
43 #endif /*_OAL_COMMON_H_*/