David 'Digit' Turner | 594b225 | 2016-09-14 14:55:57 +0200 | [diff] [blame] | 1 | // Copyright 2015 The Android Open Source Project |
| 2 | // |
| 3 | // This software is licensed under the terms of the GNU General Public |
| 4 | // License version 2, as published by the Free Software Foundation, and |
| 5 | // may be copied, distributed, and modified under those terms. |
| 6 | // |
| 7 | // This program is distributed in the hope that it will be useful, |
| 8 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | // GNU General Public License for more details. |
| 11 | |
| 12 | #include "android-qemu2-glue/looper-qemu.h" |
| 13 | |
| 14 | #include "android-qemu2-glue/base/async/Looper.h" |
| 15 | #include "android/base/async/Looper.h" |
| 16 | #include "android/utils/looper.h" |
| 17 | |
| 18 | typedef ::Looper CLooper; |
| 19 | |
| 20 | void qemu_looper_setForThread() { |
| 21 | looper_setForThreadToOwn( |
| 22 | reinterpret_cast<CLooper*>(::android::qemu::createLooper())); |
| 23 | } |