aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi/recipes-connectivity/bluez5/bluez5/0025-core-Make-device_get_path-public.patch
blob: baa86ae0d484f0f8d158fadac49f0f5aef5cc744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 54118063c549e72271c55abab753a02e4bb77a79 Mon Sep 17 00:00:00 2001
From: Yong-iL Joh <yong-il.joh@windriver.com>
Date: Mon, 27 Aug 2018 13:46:10 +0200
Subject: [PATCH 25/25] core: Make device get path public

---
 src/device.c | 4 ++++
 src/device.h | 1 +
 2 files changed, 5 insertions(+)

diff --git a/src/device.c b/src/device.c
index ef5b8f86a..12d5aed63 100644
--- a/src/device.c
+++ b/src/device.c
@@ -5328,6 +5328,10 @@ const char *device_get_path(const struct btd_device *device)
 	return device->path;
 }
 
+const char *btd_device_get_path(const struct btd_device *device) {
+	return device_get_path(device);
+}
+
 gboolean device_is_temporary(struct btd_device *device)
 {
 	return device->temporary;
diff --git a/src/device.h b/src/device.h
index 06b100499..38337f07b 100644
--- a/src/device.h
+++ b/src/device.h
@@ -91,6 +91,7 @@ struct btd_adapter *device_get_adapter(struct btd_device *device);
 const bdaddr_t *device_get_address(struct btd_device *device);
 uint8_t device_get_le_address_type(struct btd_device *device);
 const char *device_get_path(const struct btd_device *device);
+const char *btd_device_get_path(const struct btd_device *device);
 gboolean device_is_temporary(struct btd_device *device);
 bool device_is_connectable(struct btd_device *device);
 bool device_is_paired(struct btd_device *device, uint8_t bdaddr_type);
-- 
2.17.1