[gnome-bluetooth] lib: Export a way to get the default adapter proxy internally
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Export a way to get the default adapter proxy internally
- Date: Sun, 26 Nov 2017 16:16:07 +0000 (UTC)
commit 456a0e7208139d87b8981998405e0dc12b91d90e
Author: Bastien Nocera <hadess hadess net>
Date: Fri Nov 24 19:45:37 2017 +0100
lib: Export a way to get the default adapter proxy internally
So that the Settings widget can use it.
https://bugzilla.gnome.org/show_bug.cgi?id=790801
lib/bluetooth-client-private.h | 2 ++
lib/bluetooth-client.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-client-private.h b/lib/bluetooth-client-private.h
index ce8b399..191821a 100644
--- a/lib/bluetooth-client-private.h
+++ b/lib/bluetooth-client-private.h
@@ -56,6 +56,8 @@ void bluetooth_client_dump_device (GtkTreeModel *model,
gboolean bluetooth_client_get_connectable(const char **uuids);
+GDBusProxy *_bluetooth_client_get_default_adapter (BluetoothClient *client);
+
G_END_DECLS
#endif /* __BLUETOOTH_CLIENT_PRIVATE_H */
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index f3d3d90..200bab3 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -839,7 +839,7 @@ static void bluetooth_client_init(BluetoothClient *client)
object_manager_new_callback, client);
}
-static GDBusProxy *
+GDBusProxy *
_bluetooth_client_get_default_adapter(BluetoothClient *client)
{
BluetoothClientPrivate *priv = BLUETOOTH_CLIENT_GET_PRIVATE(client);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]