goldfish_sync: Remove AndroidEmu dependency.
This patch refactors the virtual goldfish_sync device to not
directly depend on AndroidEmu headers and features. This makes
its code easier to rebase, or to upstream.
- Introduce a new header (include/hw/misc/goldfish_sync.h)
providing a generic interface to be implemented by any
host-side sync service (GoldfishSyncServiceOps).
- Add glue code (android-qemu2-glue/emulation/goldfish_sync.cpp)
to link AndroidEmu and the virtual device properly at setup
time.
- Call the new qemu_android_sync_init() function in
qemu_android_emulation_setup().
NOTE: This is a pure refactoring patch: it should not provide
any new features, or fix any bug.
Change-Id: Ib3ef47a8044c1ed1d082961171999e18ceb9219f
6 files changed