diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2008-07-26 19:00:53 +0200 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2008-07-26 19:00:53 +0200 |
| commit | d6ae1c3f777832f8e32702f81fe64e33a1396928 (patch) | |
| tree | 159a1e59f3929c9d795dbd1f3edd84d9dccba048 /input/input-api.txt | |
| parent | b8e5fea8d31fbcd3d1c044385f8217dbf39892bb (diff) | |
| parent | 3382af9114a9b2e657c7ddd0a5511edda6a37a90 (diff) | |
Import bluez-utils-3.36 revision history
Diffstat (limited to 'input/input-api.txt')
| -rw-r--r-- | input/input-api.txt | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/input/input-api.txt b/input/input-api.txt new file mode 100644 index 00000000..8eb13126 --- /dev/null +++ b/input/input-api.txt @@ -0,0 +1,103 @@ +Bluetooth input service API description +*************************************** + +Copyright (C) 2006-2007 Marcel Holtmann <marcel@holtmann.org> + + +Input Manager hierarchy +======================= + +Interface org.bluez.input.Manager +Object path /org/bluez/input + +Methods array{string} ListDevices() + + Returns an array of available input devices path. + + string CreateDevice(string address) + + Create an input device object. + + On success it will return the path of the + newly created device object. + + Possible errors: org.bluez.Error.AlreadyExists + org.bluez.Error.NotSupported + org.bluez.Error.ConnectionAttemptFailed + org.bluez.Error.Failed + + string CreateSecureDevice(string address) + + Create an input device object. Pairing will + be initiated if needed(keyboard/combo devices). + + On success it will return the path of the + newly created device object. + + Possible errors: org.bluez.Error.AlreadyExists + org.bluez.Error.NotSupported + org.bluez.Error.ConnectionAttemptFailed + org.bluez.Error.Failed + + void RemoveDevice(string path) + + Remove the input device object for a given path. + + Possible errors:org.bluez.Error.DoesNotExist + org.bluez.Error.Failed + +Signals void DeviceCreated(string path) + + void DeviceRemoved(string path) + + +Input Device hierarchy +====================== + +Interface org.bluez.input.Device +Object path /org/bluez/input/{keyboard*|mouse*|...} + +Methods string GetAdapter() + + Returns the adapter address. + + Example: "00:11:22:33:44:55" + + string GetAddress() + + Returns the device address. + + Example: "00:11:22:33:44:55" + + string GetName() + + Returns the service name. + + uint16 GetProductId() + + Returns the product id. + + uint16 GetVendorId() + + Returns the vendor id. + + boolean IsConnected() + + Returns the connection status. + + void Connect() + + Connect to the input device. + + Possible errors: org.bluez.Error.AlreadyConnected + org.bluez.Error.ConnectionAttemptFailed + + void Disconnect() + + Disconnect from the input device. + + Possible errors: org.bluez.Error.Failed + +Signals void Connected() + + void Disconnected() |
