Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48af4c68 authored by Peng Xu's avatar Peng Xu Committed by Android (Google) Code Review
Browse files

Merge "Clarify sensor NDK struct has to be backward compatible"

parents e8f788f8 70b9838a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ enum {
 * A sensor event.
 */

/* NOTE: Must match hardware/sensors.h */
/* NOTE: changes to these structs have to be backward compatible */
typedef struct ASensorVector {
    union {
        float v[3];
@@ -259,7 +259,7 @@ typedef struct {
    };
} AAdditionalInfoEvent;

/* NOTE: Must match hardware/sensors.h */
/* NOTE: changes to this struct has to be backward compatible */
typedef struct ASensorEvent {
    int32_t version; /* sizeof(struct ASensorEvent) */
    int32_t sensor;