aboutsummaryrefslogtreecommitdiffstats
path: root/android/protocol/user-events-impl.h
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/protocol/user-events-impl.h
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/protocol/user-events-impl.h')
-rw-r--r--android/protocol/user-events-impl.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/android/protocol/user-events-impl.h b/android/protocol/user-events-impl.h
new file mode 100644
index 0000000..af5d5a4
--- /dev/null
+++ b/android/protocol/user-events-impl.h
@@ -0,0 +1,33 @@
+/* Copyright (C) 2010 The Android Open Source Project
+**
+** This software is licensed under the terms of the GNU General Public
+** License version 2, as published by the Free Software Foundation, and
+** may be copied, distributed, and modified under those terms.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+*/
+
+/*
+ * Contains the Core-side of the "user events" service. Here we receive and
+ * handle user events sent from the UI.
+ */
+
+#ifndef _ANDROID_PROTOCOL_USER_EVENTS_IMPL_H
+#define _ANDROID_PROTOCOL_USER_EVENTS_IMPL_H
+
+/* Creates and initializes descriptor for the Core-side of the "user-events"
+ * service. Note that there can be only one instance of this service in the core.
+ * Param:
+ * fd - Socket descriptor for the service.
+ * Return:
+ * 0 on success, or < 0 on failure.
+ */
+extern int userEventsImpl_create(int fd);
+
+/* Destroys the descriptor for the Core-side of the "user-events" service. */
+extern void userEventsImpl_destroy(void);
+
+#endif /* _ANDROID_PROTOCOL_USER_EVENTS_IMPL_H */