summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGreg Bellows <greg.bellows@linaro.org>2014-11-13 14:20:32 -0600
committerGreg Bellows <greg.bellows@linaro.org>2014-11-19 17:06:46 -0600
commita812b1bfdc83184f4cbb182d09258a5abd05fc30 (patch)
tree13ab2d5a7dba0d2914a65c96ceb057522c2b05d4 /include
parentc627fc363bfb16c9e212ad4123c6e93f83a67588 (diff)
android-console: Add GF event type reporting
Adds Goldfish event table and functions for reporting the number. value, and names of supported events. Also added an internal function for looking up an event type descriptor by name. This functionality will be used by the Andorid emulator console for displaying names and numbers of available events. Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/input/goldfish_events.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/hw/input/goldfish_events.h b/include/hw/input/goldfish_events.h
new file mode 100644
index 000000000..ef766d9bc
--- /dev/null
+++ b/include/hw/input/goldfish_events.h
@@ -0,0 +1,19 @@
+/* Copyright (C) 2007-2013 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.
+*/
+#ifndef _HW_GOLDFISH_EVENT_H
+#define _HW_GOLDFISH_EVENT_H
+
+extern int gf_get_event_type_count(void);
+extern int gf_get_event_type_name(int type, char *buf);
+extern int gf_get_event_type_value(char *codename);
+
+#endif