Changeset c59dbdd5 in mainline


Ignore:
Timestamp:
2011-12-14T11:49:09Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cbd568b
Parents:
30ec5ea
Message:

libusbhost: Doxygen. Return NULL on NULL link in endpoint_get_instance.

Location:
uspace/lib/usbhost/include/usb/host
Files:
3 edited

Legend:

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

    r30ec5ea rc59dbdd5  
    9595/** list_get_instance wrapper.
    9696 * @param item Pointer to link member.
    97  * @return Pointer to enpoint_t structure.
     97 * @return Pointer to endpoint_t structure.
    9898 */
    9999static inline endpoint_t * endpoint_get_instance(link_t *item)
    100100{
    101         return list_get_instance(item, endpoint_t, link);
     101        return item ? list_get_instance(item, endpoint_t, link) : NULL;
    102102}
    103103#endif
  • uspace/lib/usbhost/include/usb/host/usb_device_manager.h

    r30ec5ea rc59dbdd5  
    5959                devman_handle_t handle; /**< Devman handle of the device. */
    6060        } devices[USB_ADDRESS_COUNT];
     61        /** Maximum speed allowed. */
    6162        usb_speed_t max_speed;
     63        /** Protect access to members. */
    6264        fibril_mutex_t guard;
    6365        /** The last reserved address */
  • uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h

    r30ec5ea rc59dbdd5  
    6565         */
    6666        size_t setup_size;
    67         /** Actually used portion of the buffer */
    68         size_t transfered_size;
    69         /** Indicates success/failure of the communication */
    70         int error;
    7167        /** Host controller function, passed to callback function */
    7268        ddf_fun_t *fun;
     69
     70        /** Actually used portion of the buffer
     71         * This member is never accessed by functions provided in this header,
     72         * with the exception of usb_transfer_batch_finish. For external use.
     73         */
     74        size_t transfered_size;
     75        /** Indicates success/failure of the communication
     76         * This member is never accessed by functions provided in this header,
     77         * with the exception of usb_transfer_batch_finish. For external use.
     78         */
     79        int error;
    7380
    7481        /** Driver specific data */
     
    109116    const void* data, size_t size, int error);
    110117/*----------------------------------------------------------------------------*/
    111 /** Finish batch using stored error value.
     118/** Finish batch using stored error value and transferred size.
    112119 *
    113120 * @param[in] instance Batch structure to use.
    114121 * @param[in] data Data to copy to the output buffer.
    115  * @param[in] size Size of @p data.
    116122 */
    117123static inline void usb_transfer_batch_finish(
Note: See TracChangeset for help on using the changeset viewer.