Revert "Use "SessionHint" enum in ndk API"
Revert submission 21161765-sessionhint_api
Reason for revert: this broke the main-finalization-1 build... somehow. see b/268111957
Reverted changes: /q/submissionid:21161765-sessionhint_api
Change-Id: I2a8b6609729bba06fc9409f4583886915c82577c
diff --git a/include/private/performance_hint_private.h b/include/private/performance_hint_private.h
index d50c5f8..eaf3b5e 100644
--- a/include/private/performance_hint_private.h
+++ b/include/private/performance_hint_private.h
@@ -17,8 +17,6 @@
#ifndef ANDROID_PRIVATE_NATIVE_PERFORMANCE_HINT_PRIVATE_H
#define ANDROID_PRIVATE_NATIVE_PERFORMANCE_HINT_PRIVATE_H
-#include <stdint.h>
-
__BEGIN_DECLS
/**
@@ -29,7 +27,7 @@
/**
* Hints for the session used to signal upcoming changes in the mode or workload.
*/
-enum SessionHint: int32_t {
+enum SessionHint {
/**
* This hint indicates a sudden increase in CPU workload intensity. It means
* that this hint session needs extra CPU resources immediately to meet the
@@ -63,7 +61,7 @@
* @return 0 on success
* EPIPE if communication with the system service has failed.
*/
-int APerformanceHint_sendHint(void* session, SessionHint hint);
+int APerformanceHint_sendHint(void* session, int hint);
/**
* Return the list of thread ids, this API should only be used for testing only.