OSDN Git Service

nanohub: Fix error in HAL definition
authorAlexey Polyudov <apolyudov@google.com>
Thu, 14 Apr 2016 17:28:35 +0000 (10:28 -0700)
committerAlexey Polyudov <apolyudov@google.com>
Fri, 15 Apr 2016 19:09:24 +0000 (12:09 -0700)
HAL info structure can not have pointers
Ideally this would become variable sized array,
but JNI is expecting fixed-size array here,
so, define reasonable size (2), which fits all the
known cases.

Change-Id: I1752d5bef9db60570b03a8dc8e54da2277aca95a
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
include/hardware/context_hub.h

index 62ffd06..4b47b64 100644 (file)
@@ -138,7 +138,7 @@ struct hub_app_info {
     struct hub_app_name_t app_name;
     uint32_t version;
     uint32_t num_mem_ranges;
-    const struct mem_range_t *mem_usage;
+    struct mem_range_t mem_usage[2]; // Apps could only have RAM and SHARED_DATA
 };
 
 /**