summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-08-28 07:33:26 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-08-28 07:33:26 +0000
commit231e5d5d953f53b982ffc3a993b6af14ef7a9a99 (patch)
tree0c8d454e231d011e2911a966cd0c4578eb71ffe4
parente2212c1cdcbfacf4e57e7f7c15d3bbfef50c12aa (diff)
parent7069aa8fa86f385d0277db7f08b6f49f3a7c9328 (diff)
downloadlibhardware-231e5d5d953f53b982ffc3a993b6af14ef7a9a99.tar.gz
release-request-c924aaac-f0a2-4215-8dc4-e314f22460d9-for-git_oc-mr1-release-4301796 snap-temp-L23200000097143969
Change-Id: I24009b405465b1868722cf16c0c37d256d241df9
-rw-r--r--include/hardware/context_hub.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/include/hardware/context_hub.h b/include/hardware/context_hub.h
index aaa4274b..137cb3e5 100644
--- a/include/hardware/context_hub.h
+++ b/include/hardware/context_hub.h
@@ -47,12 +47,13 @@ __BEGIN_DECLS
/*****************************************************************************/
#define CONTEXT_HUB_HEADER_MAJOR_VERSION 1
-#define CONTEXT_HUB_HEADER_MINOR_VERSION 0
+#define CONTEXT_HUB_HEADER_MINOR_VERSION 1
#define CONTEXT_HUB_DEVICE_API_VERSION \
HARDWARE_DEVICE_API_VERSION(CONTEXT_HUB_HEADER_MAJOR_VERSION, \
CONTEXT_HUB_HEADER_MINOR_VERSION)
#define CONTEXT_HUB_DEVICE_API_VERSION_1_0 HARDWARE_DEVICE_API_VERSION(1, 0)
+#define CONTEXT_HUB_DEVICE_API_VERSION_1_1 HARDWARE_DEVICE_API_VERSION(1, 1)
/**
* The id of this module
@@ -131,9 +132,17 @@ struct nano_app_binary_t {
uint32_t app_version; // Version of the app
uint32_t flags; // Signed, encrypted
uint64_t hw_hub_type; // which hub type is this compiled for
- uint32_t reserved[2]; // Should be all zeroes
- uint8_t custom_binary[0]; // start of custom binary data
-};
+
+ // The version of the CHRE API that this nanoapp was compiled against.
+ // If these values are both set to 0, then they must be interpreted the same
+ // as if major version were set to 1, and minor 0 (the first valid CHRE API
+ // version).
+ uint8_t target_chre_api_major_version;
+ uint8_t target_chre_api_minor_version;
+
+ uint8_t reserved[6]; // Should be all zeroes
+ uint8_t custom_binary[0]; // start of custom binary data
+} __attribute__((packed));
struct hub_app_info {
struct hub_app_name_t app_name;