[vala/0.52] linux: Fix i2c-dev constants
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.52] linux: Fix i2c-dev constants
- Date: Tue, 20 Jul 2021 08:40:48 +0000 (UTC)
commit 9c8f2d7b3ff17f1c43aa83e0ce8f4ae5d88face7
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 ead850cd6..bb2347e4c 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]