summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dan Albert <danalbert@google.com> 2024-08-01 22:36:07 +0000
committer Dan Albert <danalbert@google.com> 2024-08-01 22:36:07 +0000
commitc796b905e3ec0e674ac5a2974c1d0a7c0e6f09ca (patch)
tree871dcdc41d2e92c720e9d442699306ad55358189
parent9d04fe2c66aff0fea66657f397827ed334ea3b7d (diff)
Add missing typedefs for C compat.
Bug: https://github.com/android/ndk/issues/1920 Test: clang --sysroot out/soong/ndk/sysroot out/soong/ndk/sysroot/usr/include/**/*.h Change-Id: I2fc435c16bc8df77c2ab0754f2cc43d9aa717de8
-rw-r--r--include/android/thermal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/android/thermal.h b/include/android/thermal.h
index fa168cdecb..7f9d2edfc7 100644
--- a/include/android/thermal.h
+++ b/include/android/thermal.h
@@ -85,6 +85,7 @@ enum AThermalStatus {
/** Need shutdown immediately. */
ATHERMAL_STATUS_SHUTDOWN = 6,
};
+typedef enum AThermalStatus AThermalStatus;
/**
* An opaque type representing a handle to a thermal manager.
@@ -240,6 +241,7 @@ struct AThermalHeadroomThreshold {
float headroom;
AThermalStatus thermalStatus;
};
+typedef struct AThermalHeadroomThreshold AThermalHeadroomThreshold;
/**
* Gets the thermal headroom thresholds for all available thermal status.