aboutsummaryrefslogtreecommitdiff
path: root/src/bluetooth.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth.vala')
-rw-r--r--src/bluetooth.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bluetooth.vala b/src/bluetooth.vala
index 9b2f9d5..47c6f8e 100644
--- a/src/bluetooth.vala
+++ b/src/bluetooth.vala
@@ -46,6 +46,9 @@ public interface Bluetooth: Object
/* Get a list of the Device structs that we know about */
public abstract List<unowned Device> get_devices ();
+ /* Get a Device from its DBus path */
+ public abstract Device get_device (ObjectPath path);
+
/* Emitted when one or more of the devices is added, removed, or changed */
public signal void devices_changed ();
@@ -53,6 +56,9 @@ public interface Bluetooth: Object
The device_key argument comes from the Device struct */
public abstract void set_device_connected (uint device_key, bool connected);
+ /* Sets whether or not a device is trusted (allowed to connect without authorization) */
+ public abstract void set_device_trusted (uint device_key, bool trusted);
+
public abstract string get_device_name (ObjectPath path);
public signal void agent_manager_ready ();