]> 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>
Sun, 3 Jan 2021 12:12:10 +0000 (13:12 +0100)
There is no typedef, so "struct spi_ioc_transfer" needs to be used.

vapi/linux.vapi

index 344f6246379ce1fbb11d76db25bb1491e2eaf60c..cbf006d143bd54bd637f60289eef0321d5109e72 100644 (file)
@@ -3845,7 +3845,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;