[vala] linux: add rfkill event structure, flags, and constants
- From: Michael Lauer <mlauer src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] linux: add rfkill event structure, flags, and constants
- Date: Sat, 28 Nov 2009 16:31:11 +0000 (UTC)
commit f40bbc26824a5bdb36614767c1d237f4d357ee49
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date: Sat Nov 28 17:30:02 2009 +0100
linux: add rfkill event structure, flags, and constants
vapi/linux.vapi | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index e21721e..8c6d347 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -84,6 +84,43 @@ namespace Linux {
public int inotify_rm_watch (int fd, int wd);
/*
+ * 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
+ }
+
+ /*
* SignalFd
*/
[CCode (cprefix = "SFD_", cheader_filename = "sys/signalfd.h")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]