summaryrefslogtreecommitdiffstats
path: root/include/hardware/hardware.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hardware/hardware.h')
-rw-r--r--include/hardware/hardware.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hardware/hardware.h b/include/hardware/hardware.h
index db6640d..3d341c8 100644
--- a/include/hardware/hardware.h
+++ b/include/hardware/hardware.h
@@ -69,6 +69,12 @@ typedef struct hw_module_t {
* versions outside of the supplied range.
*/
uint16_t module_api_version;
+#define version_major module_api_version
+ /**
+ * version_major/version_minor defines are supplied here for temporary
+ * source code compatibility. They will be removed in the next version.
+ * ALL clients must convert to the new version format.
+ */
/**
* The API version of the HAL module interface. This is meant to
@@ -81,6 +87,7 @@ typedef struct hw_module_t {
* Presently, 0 is the only valid value.
*/
uint16_t hal_api_version;
+#define version_minor hal_api_version
/** Identifier of module */
const char *id;