]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
linux: Add missing struct in cname for Spi.IocTransfer
authorArne Hoch <derhoch@gmail.com>
Fri, 13 Nov 2020 12:15:29 +0000 (12:15 +0000)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 14 Nov 2020 07:23:08 +0000 (08:23 +0100)
There is no typedef, so "struct spi_ioc_transfer" needs to be used.

vapi/linux.vapi

index 77107d178421e7cb1dc226986a238c48381cd181..25b5188f33d9c37344845317a87e2659f0d49416 100644 (file)
@@ -3849,7 +3849,7 @@ namespace Linux {
     [CCode (cprefix = "", lower_case_cprefix = "")]
     namespace Spi {
 
-        [CCode (cname = "spi_ioc_transfer", has_type_id = false, cheader_filename = "linux/spi/spidev.h")]
+        [CCode (cname = "struct spi_ioc_transfer", has_type_id = false, cheader_filename = "linux/spi/spidev.h")]
         public struct IocTransfer {
             public uint64  tx_buf;
             public uint64  rx_buf;