Skip to content

Commit c796b90

Browse files
author
Dan Albert
committed
Add missing typedefs for C compat.
Bug: android/ndk#1920 Test: clang --sysroot out/soong/ndk/sysroot out/soong/ndk/sysroot/usr/include/**/*.h Change-Id: I2fc435c16bc8df77c2ab0754f2cc43d9aa717de8
1 parent 9d04fe2 commit c796b90

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/android/thermal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ enum AThermalStatus {
8585
/** Need shutdown immediately. */
8686
ATHERMAL_STATUS_SHUTDOWN = 6,
8787
};
88+
typedef enum AThermalStatus AThermalStatus;
8889

8990
/**
9091
* An opaque type representing a handle to a thermal manager.
@@ -240,6 +241,7 @@ struct AThermalHeadroomThreshold {
240241
float headroom;
241242
AThermalStatus thermalStatus;
242243
};
244+
typedef struct AThermalHeadroomThreshold AThermalHeadroomThreshold;
243245

244246
/**
245247
* Gets the thermal headroom thresholds for all available thermal status.

0 commit comments

Comments
 (0)