[vala/wip/tintou/linux-connector] linux: add Connector bindings



commit 6cbd0dc668b6629a331d1a5c487e5290e74d1b4d
Author: Corentin Noël <corentin elementary io>
Date:   Thu Feb 7 10:12:11 2019 +0100

    linux: add Connector bindings

 vapi/linux.vapi | 165 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 165 insertions(+)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 64b255445..5084b2fc6 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -3208,6 +3208,71 @@ namespace Linux {
         public const int FF_STATUS_MAX;
     }
 
+    /*
+     * Connector
+     */
+    [CCode (cprefix = "", lower_case_cprefix = "")]
+    namespace Connector {
+        [CCode (cname = "struct cb_id", has_type_id = false, cheader_filename = "linux/connector.h", 
destroy_function = "")]
+        public struct CbId {
+            public uint32 idx;
+            public uint32 val;
+        }
+
+        [CCode (cname = "struct cn_msg", has_type_id = false, cheader_filename = "linux/connector.h", 
destroy_function = "")]
+        public struct CnMsg {
+            public Linux.Connector.CbId id;
+
+            public uint32 seq;
+            public uint32 ack;
+
+            public uint16 len;
+            public uint16 flags;
+            public uint8 data[0];
+        }
+
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_IDX_PROC;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_VAL_PROC;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_IDX_CIFS;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_VAL_CIFS;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_W1_IDX;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_W1_VAL;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_IDX_V86D;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_VAL_V86D_UVESAFB;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_IDX_BB;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_DST_IDX;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_DST_VAL;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_IDX_DM;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_VAL_DM_USERSPACE_LOG;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_IDX_DRBD;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_KVP_IDX;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_KVP_VAL;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_VSS_IDX;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_VSS_VAL;
+        [CCode (cheader_filename = "linux/connector.h")]
+        public const int CN_NETLINK_USERS;
+        [CCode (cheader_filename = "linux/connector.h", cname="CONNECTOR_MAX_MSG_SIZE")]
+        public const int MAX_MSG_SIZE;
+    }
+
     /*
      * Netlink subsystem
      */
@@ -3562,6 +3627,106 @@ namespace Linux {
         [CCode (cheader_filename = "sys/socket.h")]
         public const int SOCK_CLOEXEC;
 
+        [CCode (cprefix = "", lower_case_cprefix = "PF_")]
+        namespace ProtocolFamily {
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int UNSPEC;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int LOCAL;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int UNIX;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int FILE;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int INET;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int AX25;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int IPX;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int APPLETALK;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int NETROM;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int BRIDGE;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int ATMPVC;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int X25;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int INET6;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int ROSE;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int DECnet;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int NETBEUI;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int SECURITY;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int KEY;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int NETLINK;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int ROUTE;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int PACKET;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int ASH;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int ECONET;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int ATMSVC;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int RDS;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int SNA;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int IRDA;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int PPPOX;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int WANPIPE;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int LLC;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int IB;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int MPLS;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int CAN;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int TIPC;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int BLUETOOTH;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int IUCV;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int RXRPC;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int ISDN;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int PHONET;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int IEEE802154;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int CAIF;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int ALG;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int NFC;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int VSOCK;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int KCM;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int QIPCRTR;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int SMC;
+            [CCode (cheader_filename = "sys/socket.h")]
+            public const int MAX;
+        }
+
         [CCode (cname = "struct ucred", has_type_id = false, cheader_filename = "linux/socket.h", 
destroy_function = "")]
         public struct ucred {
             public uint32 pid;


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