Ignore:
Timestamp:
2012-12-16T14:53:34Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4daee7a
Parents:
2f87aa6
Message:

libusbhost: Use function typedefs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/hcd.h

    r2f87aa6 rf29931c  
    4646typedef struct hcd hcd_t;
    4747
     48typedef int (*schedule_hook_t)(hcd_t *, usb_transfer_batch_t *);
     49typedef int (*ep_add_hook_t)(hcd_t *, endpoint_t *);
     50typedef void (*ep_remove_hook_t)(hcd_t *, endpoint_t *);
     51
    4852/** Generic host controller driver structure. */
    4953struct hcd {
     
    5660        void *private_data;
    5761        /** Transfer scheduling, implement in device driver. */
    58         int (*schedule)(hcd_t *, usb_transfer_batch_t *);
     62        schedule_hook_t schedule;
    5963        /** Hook called upon registering new endpoint. */
    60         int (*ep_add_hook)(hcd_t *, endpoint_t *);
     64        ep_add_hook_t ep_add_hook;
    6165        /** Hook called upon removing of an endpoint. */
    62         void (*ep_remove_hook)(hcd_t *, endpoint_t *);
     66        ep_remove_hook_t ep_remove_hook;
    6367};
    6468
Note: See TracChangeset for help on using the changeset viewer.