summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
Diffstat (limited to 'network')
-rw-r--r--network/connection.c4
-rw-r--r--network/network-api.txt50
2 files changed, 29 insertions, 25 deletions
diff --git a/network/connection.c b/network/connection.c
index e3b85929..2bbd3e60 100644
--- a/network/connection.c
+++ b/network/connection.c
@@ -104,6 +104,7 @@ static gboolean bnep_connect_cb(GIOChannel *chan, GIOCondition cond,
gsize r;
int sk;
DBusMessage *reply, *signal;
+ const char *pdev;
if (cond & G_IO_NVAL)
return FALSE;
@@ -164,6 +165,9 @@ static gboolean bnep_connect_cb(GIOChannel *chan, GIOCondition cond,
reply = dbus_message_new_method_return(nc->msg);
+ pdev = nc->dev;
+ dbus_message_append_args(reply, DBUS_TYPE_STRING, &pdev,
+ DBUS_TYPE_INVALID);
send_message_and_unref(nc->conn, reply);
nc->state = CONNECTED;
diff --git a/network/network-api.txt b/network/network-api.txt
index d155370e..c50eb8d5 100644
--- a/network/network-api.txt
+++ b/network/network-api.txt
@@ -14,16 +14,16 @@ Methods string CreateServer(string uuid)
Creates a network server object(GN or NAP).
- Possible errors:org.bluez.network.AlreadyExists
- org.bluez.network.NotSupported
- org.bluez.network.ConnectionAttemptFailed
- org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.AlreadyExists
+ org.bluez.network.Error.NotSupported
+ org.bluez.network.Error.ConnectionAttemptFailed
+ org.bluez.network.Error.Failed
void RemoveServer(string path)
Removes the network server object for given path.
- Possible errors:org.bluez.network.DoesNotExist
- org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.DoesNotExist
+ org.bluez.network.Error.Failed
array{string} ListServers()
@@ -34,17 +34,17 @@ Methods string CreateServer(string uuid)
Creates a network connection object(NAP or GN).
- Possible errors:org.bluez.network.AlreadyExists
- org.bluez.network.NotSupported
- org.bluez.network.ConnectionAttemptFailed
- org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.AlreadyExists
+ org.bluez.network.Error.NotSupported
+ org.bluez.network.Error.ConnectionAttemptFailed
+ org.bluez.network.Error.Failed
string RemoveConnection(string path)
Removes a network connection object for a given path.
- Possible errors:org.bluez.network.DoesNotExist
- org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.DoesNotExist
+ org.bluez.network.Error.Failed
array{string} ListConnections()
@@ -54,8 +54,8 @@ Methods string CreateServer(string uuid)
Returns an array of available network connections paths.
- Possible errors:org.bluez.network.DoesNotExist
- org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.DoesNotExist
+ org.bluez.network.Error.Failed
Signals
@@ -81,14 +81,14 @@ Methods string GetUUID()
Enable server and updates service record.
- Possible errors:org.bluez.network.AlreadyExists
- org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.AlreadyExists
+ org.bluez.network.Error.Failed
void Disable()
Disable server and remove service record.
- Possible errors:org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.Failed
void SetName(string name)
@@ -144,32 +144,32 @@ Methods string GetAddress()
Returns the string representation of connected host.
- Possible errors:org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.Failed
string GetDescription()
Returns the string description of connected host.
- Possible errors:org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.Failed
string GetInterface()
Returns the string network interface.
- Possible errors:org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.Failed
- void Connect()
+ string Connect()
- Connects to host.
+ Connects to host and return the network interface created.
- Possible errors:org.bluez.network.ConnectionAttemptFailed
- org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.ConnectionAttemptFailed
+ org.bluez.network.Error.Failed
void Disconnect()
Disconnects to host.
- Possible errors:org.bluez.network.Failed
+ Possible errors:org.bluez.network.Error.Failed
bool IsConnected()