Ignore:
Timestamp:
2016-07-22T08:24:47Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f76d2c2
Parents:
5b18137 (diff), 8351f9a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~jan.vesely/helenos/usb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/include/usb/dev/poll.h

    r5b18137 rb4b534ac  
    3636#define LIBUSBDEV_POLL_H_
    3737
    38 #include <usb/dev/driver.h>
    39 #include <time.h>
     38#include <usb/usb.h>
     39#include <usb/dev/device.h>
     40#include <usb/dev/pipes.h>
     41
     42#include <stdbool.h>
     43#include <sys/types.h>
    4044
    4145/** Parameters and callbacks for automated polling. */
     
    8791} usb_device_auto_polling_t;
    8892
    89 int usb_device_auto_polling(usb_device_t *, size_t,
     93typedef bool (*usb_polling_callback_t)(usb_device_t *, uint8_t *, size_t, void *);
     94typedef void (*usb_polling_terminted_callback_t)(usb_device_t *, bool, void *);
     95
     96int usb_device_auto_polling(usb_device_t *, usb_endpoint_t,
    9097    const usb_device_auto_polling_t *, size_t);
    9198
    92 typedef bool (*usb_polling_callback_t)(usb_device_t *,
    93     uint8_t *, size_t, void *);
    94 typedef void (*usb_polling_terminted_callback_t)(usb_device_t *, bool, void *);
     99int usb_device_auto_poll(usb_device_t *, usb_endpoint_t,
     100    usb_polling_callback_t, size_t, int, usb_polling_terminted_callback_t, void *);
    95101
    96 int usb_device_auto_poll(usb_device_t *, size_t,
    97     usb_polling_callback_t, size_t, usb_polling_terminted_callback_t, void *);
     102int usb_device_auto_polling_desc(usb_device_t *,
     103    const usb_endpoint_description_t *, const usb_device_auto_polling_t *,
     104    size_t);
     105
     106int usb_device_auto_poll_desc(usb_device_t *,
     107    const usb_endpoint_description_t *, usb_polling_callback_t, size_t, int,
     108    usb_polling_terminted_callback_t, void *);
    98109
    99110#endif
Note: See TracChangeset for help on using the changeset viewer.