From 42c03e579aade011b451e2a13ea3f44a2ef0056a Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 7 Sep 2010 15:28:30 -0700 Subject: 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 --- native/android/looper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'native/android/looper.cpp') 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(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(looper)->setLooperCallback(fd, events, callback, data); + static_cast(looper)->setLooperCallback(fd, ident, events, callback, data); } int32_t ALooper_removeFd(ALooper* looper, int fd) { -- cgit v1.2.3-59-g8ed1b