Ignore:
File:
1 edited

Legend:

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

    r8d2e251 r77ad86c  
    3737#define LIBUSBHOST_HOST_USB_TRANSFER_BATCH_H
    3838
     39#include <adt/list.h>
     40
     41#include <usbhc_iface.h>
     42#include <usb/usb.h>
    3943#include <usb/host/endpoint.h>
    40 #include <usb/usb.h>
    41 
    42 #include <assert.h>
    43 #include <stdbool.h>
    44 #include <sys/types.h>
    45 #include <usbhc_iface.h>
    4644
    4745#define USB_SETUP_PACKET_SIZE 8
     
    6967         */
    7068        size_t setup_size;
     69        /** Host controller function, passed to callback function */
     70        ddf_fun_t *fun;
    7171
    7272        /** Actually used portion of the buffer
     
    8080         */
    8181        int error;
     82
     83        /** Driver specific data */
     84        void *private_data;
     85        /** Callback to properly remove driver data during destruction */
     86        void (*private_data_dtor)(void *p_data);
    8287} usb_transfer_batch_t;
    8388
     
    103108    usbhc_iface_transfer_in_callback_t func_in,
    104109    usbhc_iface_transfer_out_callback_t func_out,
    105     void *arg
     110    void *arg,
     111    ddf_fun_t *fun,
     112    void *private_data,
     113    void (*private_data_dtor)(void *p_data)
    106114);
    107115void usb_transfer_batch_destroy(const usb_transfer_batch_t *instance);
Note: See TracChangeset for help on using the changeset viewer.