diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2012-12-04 16:34:30 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2012-12-04 16:34:30 +1300 |
commit | 7dd1e1aaf27d3efded474eb49060131e4a12a6fe (patch) | |
tree | ed2bcd726fa981e2e12853010be8dfe748c4c910 /src/gnome-bluetooth-1.0.vapi | |
parent | c9759cfd8c6b7803277bd5feb657a79fe8ddc66e (diff) | |
download | ayatana-indicator-bluetooth-7dd1e1aaf27d3efded474eb49060131e4a12a6fe.tar.gz ayatana-indicator-bluetooth-7dd1e1aaf27d3efded474eb49060131e4a12a6fe.tar.bz2 ayatana-indicator-bluetooth-7dd1e1aaf27d3efded474eb49060131e4a12a6fe.zip |
Use GnomeBluetooth.Killswitch instead of reading /dev/rfkill directly
Diffstat (limited to 'src/gnome-bluetooth-1.0.vapi')
-rw-r--r-- | src/gnome-bluetooth-1.0.vapi | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/gnome-bluetooth-1.0.vapi b/src/gnome-bluetooth-1.0.vapi index ac60bf0..2a0387b 100644 --- a/src/gnome-bluetooth-1.0.vapi +++ b/src/gnome-bluetooth-1.0.vapi @@ -56,4 +56,25 @@ public void browse_address (GLib.Object? object, string address, uint timestamp, [CCode (cheader_filename = "bluetooth-utils.h")] public void send_to_address (string address, string alias); +[CCode (cheader_filename = "bluetooth-killswitch.h", cprefix = "BLUETOOTH_KILLSWITCH_STATE_")] +public enum KillswitchState +{ + NO_ADAPTER, + SOFT_BLOCKED, + UNBLOCKED, + HARD_BLOCKED +} + +[CCode (cheader_filename = "bluetooth-killswitch.h")] +public class Killswitch : GLib.Object +{ + public Killswitch (); + public signal void state_changed (KillswitchState state); + public bool has_killswitches (); + public void set_state (KillswitchState state); + public KillswitchState get_state (); + public unowned string state_to_string (); + public KillswitchState state { get; set; } +} + } |