Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/pipes.h

    rfa0f53b r5ab4a48  
    9999        /** Number of active transfers over the pipe. */
    100100        int refcount;
     101        /** Number of failed attempts to open the HC phone.
     102         * When user requests usb_pipe_start_long_transfer() and the operation
     103         * fails, there is no way to report this to the user.
     104         * That the soft reference counter is increased to record the attempt.
     105         * When the user then request e.g. usb_pipe_read(), it will try to
     106         * add reference as well.
     107         * If that fails, it is reported to the user. If it is okay, the
     108         * real reference counter is incremented.
     109         * The problem might arise when ending the long transfer (since
     110         * the number of references would be only 1, but logically it shall be
     111         * two).
     112         * Decrementing the soft counter first shall solve this.
     113         */
     114        int refcount_soft;
    101115
    102116        /** Whether to automatically reset halt on the endpoint.
     
    163177int usb_pipe_unregister(usb_pipe_t *, usb_hc_connection_t *);
    164178
    165 int usb_pipe_start_session(usb_pipe_t *);
    166 int usb_pipe_end_session(usb_pipe_t *);
    167 bool usb_pipe_is_session_started(usb_pipe_t *);
    168 
    169 int usb_pipe_start_long_transfer(usb_pipe_t *);
     179void usb_pipe_start_long_transfer(usb_pipe_t *);
    170180void usb_pipe_end_long_transfer(usb_pipe_t *);
    171181
Note: See TracChangeset for help on using the changeset viewer.