From 4288bfe0f9c189de5fd3a298f24ca51e171b4157 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 28 May 2018 13:03:29 -0400 Subject: Common: Move host communication enum to Host.h Given this is actually a part of the Host interface, this should be placed with it. While we're at it, turn it into an enum class so that we don't dump its contained values into the surrounding scope. We can also make Host_Message take the enum type itself directly instead of taking a general int value. After this, it'll be trivial to divide out the rest of Common.h and remove the header from the repository entirely --- Source/Android/jni/MainAndroid.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Android/jni/MainAndroid.cpp') diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index 47a653d927..62d31580e7 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -87,13 +87,13 @@ void Host_RefreshDSPDebuggerWindow() { } -void Host_Message(int Id) +void Host_Message(HostMessageID id) { - if (Id == WM_USER_JOB_DISPATCH) + if (id == HostMessageID::WMUserJobDispatch) { s_update_main_frame_event.Set(); } - else if (Id == WM_USER_STOP) + else if (id == HostMessageID::WMUserStop) { s_have_wm_user_stop = true; if (Core::IsRunning()) -- cgit v1.2.3