Changeset d022500 in mainline
- Timestamp:
- 2011-06-16T15:43:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a22004f
- Parents:
- 662da50
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/usbhid.h
r662da50 rd022500 46 46 #include <bool.h> 47 47 48 struct usb_hid_dev; 48 typedef struct usb_hid_dev usb_hid_dev_t; 49 typedef struct usb_hid_subdriver usb_hid_subdriver_t; 49 50 50 typedef int (*usb_hid_driver_init_t)( struct usb_hid_dev *, void **data);51 typedef void (*usb_hid_driver_deinit_t)( struct usb_hid_dev *, void *data);52 typedef bool (*usb_hid_driver_poll_t)( struct usb_hid_dev *, void *data);53 typedef int (*usb_hid_driver_poll_ended_t)( struct usb_hid_dev *, void *data,51 typedef int (*usb_hid_driver_init_t)(usb_hid_dev_t *dev, void **data); 52 typedef void (*usb_hid_driver_deinit_t)(usb_hid_dev_t *dev, void *data); 53 typedef bool (*usb_hid_driver_poll_t)(usb_hid_dev_t *dev, void *data); 54 typedef int (*usb_hid_driver_poll_ended_t)(usb_hid_dev_t *dev, void *data, 54 55 bool reason); 55 56 56 typedef struct usb_hid_subdriver { 57 struct usb_hid_subdriver { 57 58 /** Function to be called when initializing HID device. */ 58 59 usb_hid_driver_init_t init; … … 65 66 /** Arbitrary data needed by the subdriver. */ 66 67 void *data; 67 } usb_hid_subdriver_t;68 }; 68 69 69 70 /*----------------------------------------------------------------------------*/ … … 71 72 * Structure for holding general HID device data. 72 73 */ 73 typedefstruct usb_hid_dev {74 struct usb_hid_dev { 74 75 /** Structure holding generic USB device information. */ 75 76 usb_device_t *usb_dev; … … 101 102 102 103 int report_nr; 103 } usb_hid_dev_t;104 }; 104 105 105 106 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.