Changeset d022500 in mainline


Ignore:
Timestamp:
2011-06-16T15:43:26Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a22004f
Parents:
662da50
Message:

USB HID typedefs earlier

File:
1 edited

Legend:

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

    r662da50 rd022500  
    4646#include <bool.h>
    4747
    48 struct usb_hid_dev;
     48typedef struct usb_hid_dev usb_hid_dev_t;
     49typedef struct usb_hid_subdriver usb_hid_subdriver_t;
    4950
    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,
     51typedef int (*usb_hid_driver_init_t)(usb_hid_dev_t *dev, void **data);
     52typedef void (*usb_hid_driver_deinit_t)(usb_hid_dev_t *dev, void *data);
     53typedef bool (*usb_hid_driver_poll_t)(usb_hid_dev_t *dev, void *data);
     54typedef int (*usb_hid_driver_poll_ended_t)(usb_hid_dev_t *dev, void *data,
    5455                                         bool reason);
    5556
    56 typedef struct usb_hid_subdriver {     
     57struct usb_hid_subdriver {
    5758        /** Function to be called when initializing HID device. */
    5859        usb_hid_driver_init_t init;
     
    6566        /** Arbitrary data needed by the subdriver. */
    6667        void *data;
    67 } usb_hid_subdriver_t;
     68};
    6869
    6970/*----------------------------------------------------------------------------*/
     
    7172 * Structure for holding general HID device data.
    7273 */
    73 typedef struct usb_hid_dev {
     74struct usb_hid_dev {
    7475        /** Structure holding generic USB device information. */
    7576        usb_device_t *usb_dev;
     
    101102       
    102103        int report_nr;
    103 } usb_hid_dev_t;
     104};
    104105
    105106/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.