gnome-bluetooth r461 - trunk/common
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-bluetooth r461 - trunk/common
- Date: Thu, 5 Mar 2009 16:52:00 +0000 (UTC)
Author: hadess
Date: Thu Mar 5 16:52:00 2009
New Revision: 461
URL: http://svn.gnome.org/viewvc/gnome-bluetooth?rev=461&view=rev
Log:
Prepare for addition of bc_connect_audio
(Whatever that will do)
Modified:
trunk/common/bluetooth-client.c
Modified: trunk/common/bluetooth-client.c
==============================================================================
--- trunk/common/bluetooth-client.c (original)
+++ trunk/common/bluetooth-client.c Thu Mar 5 16:52:00 2009
@@ -1234,8 +1234,8 @@
g_object_unref(proxy);
}
-gboolean bluetooth_client_connect_input(BluetoothClient *client,
- const char *device,
+static gboolean bluetooth_client_connect_service(BluetoothClient *client,
+ const char *device, const char *iface_name,
BluetoothClientConnectFunc func, gpointer data)
{
BluetoothClientPrivate *priv = BLUETOOTH_CLIENT_GET_PRIVATE(client);
@@ -1246,7 +1246,7 @@
DBG("client %p", client);
proxy = dbus_g_proxy_new_from_proxy(priv->manager,
- BLUEZ_INPUT_INTERFACE, device);
+ iface_name, device);
if (proxy == NULL)
return FALSE;
@@ -1265,3 +1265,13 @@
return TRUE;
}
+
+gboolean bluetooth_client_connect_input(BluetoothClient *client,
+ const char *device,
+ BluetoothClientConnectFunc func, gpointer data)
+{
+ return bluetooth_client_connect_service(client, device,
+ BLUEZ_INPUT_INTERFACE,
+ func, data);
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]