aboutsummaryrefslogtreecommitdiffstats
path: root/android/console.c
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2011-01-28 10:56:16 -0800
committerVladimir Chtchetkine <vchtchetkine@google.com>2011-01-28 10:56:16 -0800
commit250b2e00af04f8407dea564e643dad4ef08b8a88 (patch)
treea9aac104fcd0752b3ba93246bf0fa98ac142ece0 /android/console.c
parent138f690b8c80a0d0e06a0549d4715243c12a0c96 (diff)
downloadexternal_qemu-250b2e00af04f8407dea564e643dad4ef08b8a88.zip
external_qemu-250b2e00af04f8407dea564e643dad4ef08b8a88.tar.gz
external_qemu-250b2e00af04f8407dea564e643dad4ef08b8a88.tar.bz2
Refactored user-events protocol
Change-Id: I08afb96ef17a52c3795f5029acfc244a93ab57c7
Diffstat (limited to 'android/console.c')
-rw-r--r--android/console.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/android/console.c b/android/console.c
index 42c3eb6..59610eb 100644
--- a/android/console.c
+++ b/android/console.c
@@ -52,7 +52,7 @@
#include "android/charmap.h"
#include "android/display-core.h"
#include "android/framebuffer-core.h"
-#include "android/user-events-core.h"
+#include "android/protocol/user-events-impl.h"
#include "android/protocol/ui-commands-api.h"
#include "android/protocol/core-commands-impl.h"
#include "android/protocol/ui-commands-proxy.h"
@@ -126,9 +126,6 @@ ControlClient framebuffer_client = NULL;
/* User events service client. */
ControlClient user_events_client = NULL;
-/* User events service. */
-CoreUserEvents* core_ue = NULL;
-
/* UI control service client (UI -> Core). */
ControlClient ui_core_ctl_client = NULL;
@@ -259,7 +256,7 @@ control_client_destroy( ControlClient client )
}
if (client == user_events_client) {
- coreue_destroy(core_ue);
+ userEventsImpl_destroy();
user_events_client = NULL;
}
@@ -2592,8 +2589,7 @@ do_create_user_events_service( ControlClient client, char* args )
return -1;
}
- core_ue = coreue_create(client->sock);
- if (core_ue != NULL) {
+ if (!userEventsImpl_create(client->sock)) {
char reply_buf[4096];
user_events_client = client;
snprintf(reply_buf, sizeof(reply_buf), "OK\r\n");
@@ -2608,7 +2604,7 @@ do_create_user_events_service( ControlClient client, char* args )
}
void
-destroy_control_ue_client(void)
+destroy_user_events_client(void)
{
if (user_events_client != NULL) {
control_client_destroy(user_events_client);