Changeset 60c0573 in mainline for uspace/drv/usbhid/mouse/mousedev.h


Ignore:
Timestamp:
2011-04-10T15:17:22Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba358ed
Parents:
dc4c19e
Message:

Preparation for HID subdrivers.

  • Preparation for registering subdriver callbacks based on some device identifiers.
  • HID driver now uses one general callback which calls all the registered subdriver callbacks.
  • Other callbacks for init, deinit and polling ended.
  • Setting boot keyboard and mouse callbacks separately (special cases).

TODO: maybe also functions and function classes may be per-subdriver

(so a hybrid keyboard/pointing device may register itself as

both keyboard and mouse).

TODO: the current keyboard and mouse subdrivers should fall back to the

booot protocol by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/mouse/mousedev.h

    rdc4c19e r60c0573  
    3939#include <usb/devdrv.h>
    4040
    41 struct usb_hid_dev_t;
     41struct usb_hid_dev;
    4242
    4343/*----------------------------------------------------------------------------*/
     
    6060/*----------------------------------------------------------------------------*/
    6161
    62 int usb_mouse_init(struct usb_hid_dev_t *hid_dev);
     62int usb_mouse_init(struct usb_hid_dev *hid_dev);
    6363
    64 bool usb_mouse_polling_callback(usb_device_t *dev, uint8_t *buffer,
    65      size_t buffer_size, void *arg);
     64bool usb_mouse_polling_callback(struct usb_hid_dev *hid_dev, uint8_t *buffer,
     65    size_t buffer_size);
    6666
    67 void usb_mouse_deinit(struct usb_hid_dev_t *hid_dev);
     67void usb_mouse_deinit(struct usb_hid_dev *hid_dev);
    6868
    69 int usb_mouse_set_boot_protocol(struct usb_hid_dev_t *hid_dev);
     69int usb_mouse_set_boot_protocol(struct usb_hid_dev *hid_dev);
    7070
    7171/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.