Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 81da273b in mainline


Ignore:
Timestamp:
2013-02-08T16:04:52Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
2a5a7711
Parents:
711f5fb8
Message:

libusbvirt: Make pointer to handler array const.

Location:
uspace/lib/usbvirt
Files:
3 edited

Legend:

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

    r711f5fb8 r81da273b  
    197197         * Last handler is expected to have the @c callback field set to NULL
    198198         */
    199         usbvirt_control_request_handler_t *control;
     199        const usbvirt_control_request_handler_t *control;
    200200        /** Callback when device changes state.
    201201         *
  • uspace/lib/usbvirt/src/ctrltransfer.c

    r711f5fb8 r81da273b  
    5050 */
    5151int process_control_transfer(usbvirt_device_t *dev,
    52     usbvirt_control_request_handler_t *control_handlers,
     52    const usbvirt_control_request_handler_t *control_handlers,
    5353    const usb_device_request_setup_packet_t *setup,
    5454    uint8_t *data, size_t *data_sent_size)
     
    6060                return EFORWARD;
    6161        }
    62         usbvirt_control_request_handler_t *handler = control_handlers;
     62        const usbvirt_control_request_handler_t *handler = control_handlers;
    6363        for (;handler->callback != NULL; ++handler) {
    6464                if (handler->request != setup->request ||
  • uspace/lib/usbvirt/src/private.h

    r711f5fb8 r81da273b  
    3939
    4040int process_control_transfer(usbvirt_device_t *,
    41     usbvirt_control_request_handler_t *,
     41    const usbvirt_control_request_handler_t *,
    4242    const usb_device_request_setup_packet_t *,
    4343    uint8_t *, size_t *);
Note: See TracChangeset for help on using the changeset viewer.