Changeset 186d630 in mainline for uspace/lib/usbvirt/device.h


Ignore:
Timestamp:
2010-10-20T20:44:55Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bbfb86c
Parents:
47e3a8e
Message:

libusbvirt allows local device

By local device is meant virtual device in current task
(i.e. not connected through phones but called statically).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/device.h

    r47e3a8e r186d630  
    128128            usb_endpoint_t endpoint, void *buffer, size_t size);
    129129       
    130        
    131        
    132130        /* Device attributes. */
    133131       
     
    152150         */
    153151        int device_id_;
     152       
     153        /** Main routine called when data is received from HC.
     154         * @warning Do not change after initializing with
     155         * usbvirt_device_init().
     156         * This function is here merely to make the interface more OOP.
     157         */
     158        int (*receive_data)(struct usbvirt_device *dev,
     159            usb_endpoint_t endpoint, void *buffer, size_t size);
     160       
    154161} usbvirt_device_t;
    155162
Note: See TracChangeset for help on using the changeset viewer.