summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2017-11-24 19:45:37 +0100
committerBastien Nocera <hadess@hadess.net>2017-11-26 17:14:49 +0100
commit456a0e7208139d87b8981998405e0dc12b91d90e (patch)
tree9863525b99665b5e49f9763edb8e1cf1aac0bed7
parentf5af59ea9c650f1b2068ab08b0ba4f5178e8bcf9 (diff)
downloadgnome-bluetooth-456a0e7208139d87b8981998405e0dc12b91d90e.tar.gz
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
-rw-r--r--lib/bluetooth-client-private.h2
-rw-r--r--lib/bluetooth-client.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/bluetooth-client-private.h b/lib/bluetooth-client-private.h
index ce8b399c..191821ac 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 f3d3d909..200bab3e 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);