Merge "Mesh: Handle mesh application termination event" into tizen
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / services / device / bt-service-device-internal.h
1 /*
2  * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Contact:  Atul Rai <a.rai@samsung.com>
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 _BT_SERVICE_DEVICE_INTERNAL_H_
21 #define _BT_SERVICE_DEVICE_INTERNAL_H_
22
23 #include <sys/types.h>
24 #include "bluetooth-api.h"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 typedef enum {
31         DEV_PROP_CONNECTED,
32         DEV_PROP_NAME,
33         DEV_PROP_ALIAS,
34         DEV_PROP_TRUST,
35         DEV_PROP_SERVICES,
36 } bt_device_prop_type_e;
37
38 typedef struct {
39         gboolean connected;
40         unsigned char type;
41 } bt_device_conn_info_t;
42
43 void _bt_service_add_device_to_bonded_list(bt_remote_dev_info_t *rem_info);
44
45 void _bt_update_remote_dev_property(const char *address, bt_device_prop_type_e type, void *value);
46
47 void _bt_service_remove_device_from_bonded_list(const char *address);
48
49 #ifdef __cplusplus
50 }
51 #endif /* __cplusplus */
52 #endif /* _BT_SERVICE_DEVICE_INTERNAL_H_ */