summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGreg Bellows <greg.bellows@linaro.org>2014-11-13 14:31:48 -0600
committerGreg Bellows <greg.bellows@linaro.org>2014-11-19 17:06:46 -0600
commit3a12c9318d27873b83aee398c5eda78d50cb5f49 (patch)
treecde4e9e0a1d0566c6bbb1c7fb12f12f16786d2c3 /include
parenta812b1bfdc83184f4cbb182d09258a5abd05fc30 (diff)
android-console: Add GF event type code reporting
Adds Goldfish event code tables and functions for reporting the number, value and names of supported codes for a given event type. Also added an internal function for looking up an event code descriptor from its name. This functionality will be used by the Andorid emulator console for displaying names and numbers of available events codes. Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/input/goldfish_events.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/input/goldfish_events.h b/include/hw/input/goldfish_events.h
index ef766d9bc..be426d599 100644
--- a/include/hw/input/goldfish_events.h
+++ b/include/hw/input/goldfish_events.h
@@ -15,5 +15,9 @@
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);
+extern int gf_get_event_code_count(const char *typename);
+extern int gf_get_event_code_name(const char *typename, unsigned int code,
+ char *buf);
+extern int gf_get_event_code_value(int typeval, char *codename);
#endif