Commit 12c28fed49a4011fdec440d78ef8f031317c402a
1 parent
38f0b147
adb fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1011 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
0 deletions
vl.h
| ... | ... | @@ -733,11 +733,14 @@ typedef struct ADBDevice ADBDevice; |
| 733 | 733 | /* buf = NULL means polling */ |
| 734 | 734 | typedef int ADBDeviceRequest(ADBDevice *d, uint8_t *buf_out, |
| 735 | 735 | const uint8_t *buf, int len); |
| 736 | +typedef int ADBDeviceReset(ADBDevice *d); | |
| 737 | + | |
| 736 | 738 | struct ADBDevice { |
| 737 | 739 | struct ADBBusState *bus; |
| 738 | 740 | int devaddr; |
| 739 | 741 | int handler; |
| 740 | 742 | ADBDeviceRequest *devreq; |
| 743 | + ADBDeviceReset *devreset; | |
| 741 | 744 | void *opaque; |
| 742 | 745 | }; |
| 743 | 746 | |
| ... | ... | @@ -753,6 +756,7 @@ int adb_poll(ADBBusState *s, uint8_t *buf_out); |
| 753 | 756 | |
| 754 | 757 | ADBDevice *adb_register_device(ADBBusState *s, int devaddr, |
| 755 | 758 | ADBDeviceRequest *devreq, |
| 759 | + ADBDeviceReset *devreset, | |
| 756 | 760 | void *opaque); |
| 757 | 761 | void adb_kbd_init(ADBBusState *bus); |
| 758 | 762 | void adb_mouse_init(ADBBusState *bus); | ... | ... |