[vala/wip/mickeyl/linux-socketcan: 23/23] linux: Fix i2c-dev constants




commit faa83eb2fe4d6fa9347960a35dd25a9a1b4be771
Author: Dr. Michael Lauer <mickey vanille-media de>
Date:   Wed Jun 30 13:32:10 2021 +0200

    linux: Fix i2c-dev constants
    
    This commit enables basic i2c operations (open/read/write/close) from userland.
    Further i2c / smbus transfer modes are on the way.

 vapi/linux.vapi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index bf6ef9c2b..cb580308f 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -875,7 +875,24 @@ namespace Linux {
     [CCode (cprefix = "I2C_", lower_case_cprefix = "i2c_")]
     namespace I2C {
 
+        [CCode (cheader_filename = "linux/i2c-dev.h")]
+        const int RETRIES;
+        [CCode (cheader_filename = "linux/i2c-dev.h")]
+        const int TIMEOUT;
+        [CCode (cheader_filename = "linux/i2c-dev.h")]
         const int SLAVE;
+        [CCode (cheader_filename = "linux/i2c-dev.h")]
+        const int SLAVE_FORCE;
+        [CCode (cheader_filename = "linux/i2c-dev.h")]
+        const int TENBIT;
+        [CCode (cheader_filename = "linux/i2c-dev.h")]
+        const int FUNCS;
+        [CCode (cheader_filename = "linux/i2c-dev.h")]
+        const int RDWR;
+        [CCode (cheader_filename = "linux/i2c-dev.h")]
+        const int PEC;
+        [CCode (cname = "SMBUS", cheader_filename = "linux/i2c-dev.h")]
+        const int SMBUS_TRANSFER;
 
         [CCode (cprefix = "", lower_case_cprefix = "i2c_smbus_")]
         namespace SMBUS {


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