From 74945e0c555beb42ffa5ca9d6c057cdfa2978802 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 29 May 2008 09:07:06 +0000 Subject: Add first draft of new network API --- doc/network-api.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 doc/network-api.txt (limited to 'doc/network-api.txt') diff --git a/doc/network-api.txt b/doc/network-api.txt new file mode 100644 index 00000000..3aee9bac --- /dev/null +++ b/doc/network-api.txt @@ -0,0 +1,40 @@ +BlueZ D-Bus Network API description +*********************************** + +Copyright (C) 2004-2008 Marcel Holtmann + + +Network hierarchy +================= + +Service org.bluez +Interface org.bluez.Network +Object path /{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX + +Methods void Connect() + + Connect to the network device. + + Possible errors: org.bluez.Error.AlreadyConnected + org.bluez.Error.ConnectionAttemptFailed + + void CancelConnect() + + Abort connection attempt in case of errors or + timeouts in the client. + + Possible errors: org.bluez.Error.Failed + + void Disconnect() + + Disconnect from the network device. + + Possible errors: org.bluez.Error.Failed + + bool IsConnected() + + Returns the connection status. + +Signals void Connected() + + void Disconnected() -- cgit