summaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-12 20:26:20 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-12 20:26:20 +0000
commit12c28fed49a4011fdec440d78ef8f031317c402a (patch)
treef0a933c1c20c0b7c460955d510fce00e6d71b13a /vl.h
parent38f0b147a57c1d64d068d3a15efde83322a5c90e (diff)
downloadqemu-12c28fed49a4011fdec440d78ef8f031317c402a.tar.gz
adb fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1011 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vl.h b/vl.h
index 583e8433d4..15004c0104 100644
--- a/vl.h
+++ b/vl.h
@@ -733,11 +733,14 @@ typedef struct ADBDevice ADBDevice;
/* buf = NULL means polling */
typedef int ADBDeviceRequest(ADBDevice *d, uint8_t *buf_out,
const uint8_t *buf, int len);
+typedef int ADBDeviceReset(ADBDevice *d);
+
struct ADBDevice {
struct ADBBusState *bus;
int devaddr;
int handler;
ADBDeviceRequest *devreq;
+ ADBDeviceReset *devreset;
void *opaque;
};
@@ -753,6 +756,7 @@ int adb_poll(ADBBusState *s, uint8_t *buf_out);
ADBDevice *adb_register_device(ADBBusState *s, int devaddr,
ADBDeviceRequest *devreq,
+ ADBDeviceReset *devreset,
void *opaque);
void adb_kbd_init(ADBBusState *bus);
void adb_mouse_init(ADBBusState *bus);