android_os_MessageQueue: move looper prototypes to header, fix incorrect prototype

This commit is contained in:
Mis012
2024-04-15 23:11:24 +02:00
parent a1df6a43e5
commit f52a221c73
3 changed files with 14 additions and 9 deletions

10
src/libandroid/looper.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef LOOPER_H
#define LOOPER_H
typedef void ALooper;
ALooper * ALooper_prepare(int opts);
void ALooper_wake(ALooper *looper);
bool ALooper_isPolling(ALooper *looper);
int ALooper_pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData);
#endif