summaryrefslogtreecommitdiff
path: root/hw/hid.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-07-15 15:52:33 +0200
committerGerd Hoffmann <kraxel@redhat.com>2011-08-04 15:51:51 +0200
commitb069d3488f327da97fb0da1939518a00637f01a3 (patch)
tree36f5a720c2d2675e9dcc5816d79b6d6e93d0a7f2 /hw/hid.h
parentdcfda673101313472524bfac8c2fe2e1d03c8214 (diff)
hid: move idle+protocol from usb-hid to hid too.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/hid.h')
-rw-r--r--hw/hid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/hid.h b/hw/hid.h
index 99910c3a86..4a8fa5b63f 100644
--- a/hw/hid.h
+++ b/hw/hid.h
@@ -39,6 +39,9 @@ struct HIDState {
uint32_t head; /* index into circular queue */
uint32_t n;
int kind;
+ int32_t protocol;
+ uint8_t idle;
+ int64_t next_idle_clock;
HIDEventFunc event;
};
@@ -47,6 +50,7 @@ void hid_reset(HIDState *hs);
void hid_free(HIDState *hs);
bool hid_has_events(HIDState *hs);
+void hid_set_next_idle(HIDState *hs, int64_t curtime);
int hid_pointer_poll(HIDState *hs, uint8_t *buf, int len);
int hid_keyboard_poll(HIDState *hs, uint8_t *buf, int len);
int hid_keyboard_write(HIDState *hs, uint8_t *buf, int len);