summaryrefslogtreecommitdiff
path: root/native/android/looper.cpp
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-09-07 15:28:30 -0700
committerDianne Hackborn <hackbod@google.com>2010-09-07 15:46:55 -0700
commit42c03e579aade011b451e2a13ea3f44a2ef0056a (patch)
tree1716fbd88e2beb816d303c3d3fa0ca1785b8db61 /native/android/looper.cpp
parent6e86915e8f5dfffa60ae5d1a4ca9aa74912fd026 (diff)
Modify native ALooper to take an explicit ident.
The ALooper API now uses an explicit "identifier" for the integer that is returned rather than implicitly using the fd. This allows the APIs that had the fd to be a little more sane. Change-Id: I8507f535ad484c0bdc4a1bd016d87bb09acd7ff0
Diffstat (limited to 'native/android/looper.cpp')
-rw-r--r--native/android/looper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/android/looper.cpp b/native/android/looper.cpp
index 1564c477d29e..0aeed7776efe 100644
--- a/native/android/looper.cpp
+++ b/native/android/looper.cpp
@@ -72,9 +72,9 @@ void ALooper_release(ALooper* looper) {
static_cast<PollLoop*>(looper)->decStrong((void*)ALooper_acquire);
}
-void ALooper_addFd(ALooper* looper, int fd, int events,
+void ALooper_addFd(ALooper* looper, int fd, int ident, int events,
ALooper_callbackFunc* callback, void* data) {
- static_cast<PollLoop*>(looper)->setLooperCallback(fd, events, callback, data);
+ static_cast<PollLoop*>(looper)->setLooperCallback(fd, ident, events, callback, data);
}
int32_t ALooper_removeFd(ALooper* looper, int fd) {