aboutsummaryrefslogtreecommitdiff
path: root/vapi/rfkill.vapi
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-08-10 04:26:27 +0000
committerTarmac <>2013-08-10 04:26:27 +0000
commitf28653eb1a4a310987fffc44334b93da3f547d41 (patch)
tree82a72bfbb7eeca76766d73ae20f1152c5b8392c3 /vapi/rfkill.vapi
parent0391025f72e9e5fed972b40e63087635d50c9234 (diff)
parenta0616908a817d6fad47c29ae703fc8a2ea379af6 (diff)
downloadayatana-indicator-bluetooth-f28653eb1a4a310987fffc44334b93da3f547d41.tar.gz
ayatana-indicator-bluetooth-f28653eb1a4a310987fffc44334b93da3f547d41.tar.bz2
ayatana-indicator-bluetooth-f28653eb1a4a310987fffc44334b93da3f547d41.zip
Add phone profile. Export menus & actions using gio. Drops the gtk, dbusmenu, and libindicator build dependencies. Drops runtime dependency on gnome-blueooth in the phone profile.
Approved by Ted Gould, PS Jenkins bot, Mathieu Trudel-Lapierre.
Diffstat (limited to 'vapi/rfkill.vapi')
-rw-r--r--vapi/rfkill.vapi44
1 files changed, 44 insertions, 0 deletions
diff --git a/vapi/rfkill.vapi b/vapi/rfkill.vapi
new file mode 100644
index 0000000..7bfd16d
--- /dev/null
+++ b/vapi/rfkill.vapi
@@ -0,0 +1,44 @@
+// (C) Michael 'Mickey' Lauer <mickey@vanille-media.de>
+// LGPL2
+// scheduled for inclusion in linux.vapi
+
+namespace Linux
+{
+ /*
+ * RfKill
+ */
+ [CCode (cname = "struct rfkill_event", cheader_filename = "linux/rfkill.h")]
+ public struct RfKillEvent {
+ public uint32 idx;
+ public RfKillType type;
+ public RfKillOp op;
+ public uint8 soft;
+ public uint8 hard;
+ }
+
+ [CCode (cname = "guint8", cprefix = "RFKILL_OP_", cheader_filename = "linux/rfkill.h")]
+ public enum RfKillOp {
+ ADD,
+ DEL,
+ CHANGE,
+ CHANGE_ALL
+ }
+
+ [CCode (cname = "guint8", cprefix = "RFKILL_STATE_", cheader_filename = "linux/rfkill.h")]
+ public enum RfKillState {
+ SOFT_BLOCKED,
+ UNBLOCKED,
+ HARD_BLOCKED
+ }
+
+ [CCode (cname = "guint8", cprefix = "RFKILL_TYPE_", cheader_filename = "linux/rfkill.h")]
+ public enum RfKillType {
+ ALL,
+ WLAN,
+ BLUETOOTH,
+ UWB,
+ WIMAX,
+ WWAN
+ }
+
+} /* namespace Linux */