[vala] linux: bind virtual terminal ioctls, structs, and constants



commit 0fd28db107011ca6477b9f9ad3c3e6ba8c06657d
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Fri Apr 2 12:59:28 2010 +0200

    linux: bind virtual terminal ioctls, structs, and constants

 vapi/linux.vapi |   85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 03e19a4..af93b20 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -2537,4 +2537,89 @@ namespace Linux {
         [CCode (cheader_filename = "sys/ioctl.h")]
         public const int TIOCSER_TEMT;
     }
+
+    /*
+     * Virtual Terminal
+     */
+    [CCode (cprefix = "", lower_case_cprefix = "")]
+    namespace VirtualTerminal {
+
+        /* constants */
+
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int MIN_NR_CONSOLES;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int MAX_NR_CONSOLES;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int MAX_NR_USER_CONSOLES;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_OPENQRY;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_GETMODE;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_SETMODE;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_AUTO;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_PROCESS;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_ACKACQ;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_GETSTATE;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_SENDSIG;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_RELDISP;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_ACTIVATE;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_WAITACTIVE;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_DISALLOCATE;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_RESIZE;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_RESIZEX;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_LOCKSWITCH;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_UNLOCKSWITCH;
+        [CCode (cheader_filename = "linux/vt.h")]
+        public const int VT_GETHIFONTMASK;
+
+        /* structs */
+
+        [CCode (cname = "struct vt_mode", cheader_filename = "linux/vt.h")]
+        public struct Mode {
+            public char mode;
+            public char waitv;
+            public int16 relsig;
+            public int16 acqsig;
+            public int16 frsig;
+        }
+
+        [CCode (cname = "struct vt_stat", cheader_filename = "linux/vt.h")]
+        public struct Stat {
+            public uint16 v_active;
+            public uint16 v_signal;
+            public uint16 v_state;
+        }
+
+        [CCode (cname = "struct vt_sizes", cheader_filename = "linux/vt.h")]
+        public struct Sizes {
+            public uint16 v_rows;
+            public uint16 v_cols;
+            public uint16 v_scrollsize;
+        }
+
+        [CCode (cname = "struct vt_consize", cheader_filename = "linux/vt.h")]
+        public struct Consize {
+            public uint16 v_rows;
+            public uint16 v_cols;
+            public uint16 v_vlin;
+            public uint16 v_clin;
+            public uint16 v_vcol;
+            public uint16 v_ccol;
+        }
+    }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]