diff options
| author | Muhammad <thevancedgamer@mentallysanemainliners.org> | 2026-03-10 01:37:25 +0500 |
|---|---|---|
| committer | Muhammad <thevancedgamer@mentallysanemainliners.org> | 2026-03-10 01:37:25 +0500 |
| commit | 36d77944f2e7707eefd60ea208c6f4bc55a3f961 (patch) | |
| tree | d6074f6903687b3b278d90abab2d62dcd057d5a8 /src/bluetooth.vala | |
| parent | 6c7c62d7c6d153293c8aea8dd1c71faabdef3b3e (diff) | |
| download | ayatana-indicator-bluetooth-36d77944f2e7707eefd60ea208c6f4bc55a3f961.tar.gz ayatana-indicator-bluetooth-36d77944f2e7707eefd60ea208c6f4bc55a3f961.tar.bz2 ayatana-indicator-bluetooth-36d77944f2e7707eefd60ea208c6f4bc55a3f961.zip | |
agent: add proper support for AuthorizeService
Signed-off-by: Muhammad <thevancedgamer@mentallysanemainliners.org>
Diffstat (limited to 'src/bluetooth.vala')
| -rw-r--r-- | src/bluetooth.vala | 6 |
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 (); |
