[vala/wip/tintou/linux-connector: 16/18] linux: Remove the `data` field from Linux.Connector.Message



commit 452f1ccf011b6cadc5dbae34e7bc7ab536b8ad38
Author: Corentin Noël <corentin elementary io>
Date:   Tue Mar 17 11:42:40 2020 +0100

    linux: Remove the `data` field from Linux.Connector.Message
    
    It is a variable length field so users have to subclass the struct and fill the `len` value themselves.

 vapi/linux.vapi | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index b9210fbf7..e363b994e 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -3323,8 +3323,6 @@ namespace Linux {
 
             public uint16 len;
             public uint16 flags;
-            [CCode (array_length_cname = "len", array_length_type = "uint16")]
-            public uint8 data[0];
         }
 
         [CCode (cheader_filename = "linux/cn_proc.h", cname = "enum proc_cn_mcast_op", cprefix = 
"PROC_CN_MCAST_", has_type_id = false)]


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