summaryrefslogtreecommitdiffstats
path: root/include/hardware/hardware.h
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2012-03-26 23:14:15 -0700
committerDima Zavin <dima@android.com>2012-03-26 23:14:15 -0700
commit2fe3ae5ec955773d389ef11c116848188dcf253f (patch)
tree0d48de07b91045345adca11d11c8040400573c05 /include/hardware/hardware.h
parent89c8a6df0eb70d30b83576741d8fdf23ba652b1d (diff)
downloadhardware_libhardware-2fe3ae5ec955773d389ef11c116848188dcf253f.zip
hardware_libhardware-2fe3ae5ec955773d389ef11c116848188dcf253f.tar.gz
hardware_libhardware-2fe3ae5ec955773d389ef11c116848188dcf253f.tar.bz2
hardware: add some guidance on providing version defines
Change-Id: I456cb209bc5d5eb739b6fd2e2f3e869caa363ff0 Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'include/hardware/hardware.h')
-rw-r--r--include/hardware/hardware.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hardware/hardware.h b/include/hardware/hardware.h
index b106e2b..78c4572 100644
--- a/include/hardware/hardware.h
+++ b/include/hardware/hardware.h
@@ -53,6 +53,10 @@ __BEGIN_DECLS
/*
* Helper macros for module implementors.
*
+ * The derived modules should provide convenience macros for supported
+ * versions so that implementations can explicitly specify module/device
+ * versions at definition time.
+ *
* 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)