diff options
author | Dima Zavin <dima@android.com> | 2012-03-21 13:35:32 -0700 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2012-03-21 13:35:49 -0700 |
commit | 02a5801af9e08559757773f1d22a5ae14bf12928 (patch) | |
tree | b0bb1745e60136aea8dce541977709367b1d6b19 | |
parent | b0bef12f790d447a0797ce6b3bf66d6958f69ea9 (diff) | |
download | hardware_libhardware-02a5801af9e08559757773f1d22a5ae14bf12928.zip hardware_libhardware-02a5801af9e08559757773f1d22a5ae14bf12928.tar.gz hardware_libhardware-02a5801af9e08559757773f1d22a5ae14bf12928.tar.bz2 |
hardware: add hardware_device_api_version() macro
Change-Id: I79c4d65f6bab227364d5f271df9bd7bc565857c2
Signed-off-by: Dima Zavin <dima@android.com>
-rw-r--r-- | include/hardware/hardware.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/hardware/hardware.h b/include/hardware/hardware.h index 67ba9f1..b106e2b 100644 --- a/include/hardware/hardware.h +++ b/include/hardware/hardware.h @@ -51,12 +51,17 @@ __BEGIN_DECLS #define HARDWARE_HAL_API_VERSION HARDWARE_MAKE_API_VERSION(1, 0) /* - * Helper macro for module implementors. + * Helper macros for module implementors. * * Use this macro to set the hw_module_t.module_api_version field. */ #define HARDWARE_MODULE_API_VERSION(maj,min) HARDWARE_MAKE_API_VERSION(maj,min) +/* + * Use this macro to set the hw_device_t.version field + */ +#define HARDWARE_DEVICE_API_VERSION(maj,min) HARDWARE_MAKE_API_VERSION(maj,min) + struct hw_module_t; struct hw_module_methods_t; struct hw_device_t; |