]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
linux: add ioctls and structures for n_gsm
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 26 Mar 2011 12:29:41 +0000 (13:29 +0100)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 26 Mar 2011 12:29:41 +0000 (13:29 +0100)
n_gsm is a new line discipline that implements the 3GPP 07.10
multiplexing protocol in the kernel.

vapi/linux.vapi

index 9f6bfb1b6090f09cb8526b4850d84e3852cf3a16..9407d36cab0fce913ad8fee48970504eaa3fb03c 100644 (file)
@@ -832,6 +832,32 @@ namespace Linux {
         }
     }
 
+    /*
+     * Gsm
+     */
+    namespace Gsm {
+
+        [CCode (cname = "GSMIOC_GETCONF", cheader_filename = "linux/gsmmux.h")]
+        public const int GSMIOC_GETCONF;
+        [CCode (cname = "GSMIOC_SETCONF", cheader_filename = "linux/gsmmux.h")]
+        public const int GSMIOC_SETCONF;
+
+        [CCode (cname = "struct gsm_config", cheader_filename = "linux/gsmmux.h")]
+        public struct Config {
+            public uint adaption;
+            public uint encapsulation;
+            public uint initiator;
+            public uint t1;
+            public uint t2;
+            public uint t3;
+            public uint n2;
+            public uint mru;
+            public uint mtu;
+            public uint k;
+            public uint i;
+        }
+    }
+
     /*
      * Inotify
      */