Changes in uspace/drv/bus/usb/usbhid/mouse/mousedev.h [378bf85:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/mouse/mousedev.h
r378bf85 r9d58539 39 39 #include <usb/dev/driver.h> 40 40 #include <async.h> 41 #include "../usbhid.h" 41 42 struct usb_hid_dev; 43 44 /*----------------------------------------------------------------------------*/ 42 45 43 46 /** Container for USB mouse device. */ 44 47 typedef struct { 45 /** IPC session to cons umer. */48 /** IPC session to console (consumer). */ 46 49 async_sess_t *mouse_sess; 47 48 /* *Mouse buttons statuses. */50 51 /* Mouse buttons statuses. */ 49 52 int32_t *buttons; 50 53 size_t buttons_count; 51 52 /** DDF mouse function */ 54 55 ddf_dev_ops_t ops; 56 /* DDF mouse function */ 53 57 ddf_fun_t *mouse_fun; 54 58 } usb_mouse_t; 55 59 60 /*----------------------------------------------------------------------------*/ 61 56 62 extern const usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description; 57 63 58 externconst char *HID_MOUSE_FUN_NAME;59 externconst char *HID_MOUSE_CATEGORY;64 const char *HID_MOUSE_FUN_NAME; 65 const char *HID_MOUSE_CATEGORY; 60 66 61 extern int usb_mouse_init(usb_hid_dev_t *, void **); 62 extern bool usb_mouse_polling_callback(usb_hid_dev_t *, void *); 63 extern void usb_mouse_deinit(usb_hid_dev_t *, void *); 64 extern int usb_mouse_set_boot_protocol(usb_hid_dev_t *); 67 /*----------------------------------------------------------------------------*/ 68 69 int usb_mouse_init(struct usb_hid_dev *hid_dev, void **data); 70 71 bool usb_mouse_polling_callback(struct usb_hid_dev *hid_dev, void *data); 72 73 void usb_mouse_deinit(struct usb_hid_dev *hid_dev, void *data); 74 75 int usb_mouse_set_boot_protocol(struct usb_hid_dev *hid_dev); 76 77 /*----------------------------------------------------------------------------*/ 65 78 66 79 #endif // USB_HID_MOUSEDEV_H_
Note:
See TracChangeset
for help on using the changeset viewer.