Changeset 8dc762e0 in mainline for uspace/lib/usb/src/host/endpoint.c


Ignore:
Timestamp:
2011-04-06T21:12:41Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f567bcf
Parents:
1e70157
Message:

Move endpoint_t to libusb

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/host/endpoint.c

    r1e70157 r8dc762e0  
    3636#include <errno.h>
    3737
    38 #include "endpoint.h"
    39 #include "utils/malloc32.h"
     38#include <usb/host/endpoint.h>
    4039
    4140int endpoint_init(endpoint_t *instance, usb_transfer_type_t transfer_type,
     
    4847        instance->max_packet_size = max_packet_size;
    4948        instance->toggle = 0;
    50         instance->qh = malloc32(sizeof(qh_t));
    51         if (instance->qh == NULL)
    52                 return ENOMEM;
    5349        return EOK;
    5450}
    5551/*----------------------------------------------------------------------------*/
    56 void endpoint_destroy(void *ep)
     52void endpoint_destroy(endpoint_t *instance)
    5753{
    58         endpoint_t *instance = ep;
    5954        assert(instance);
    6055        list_remove(&instance->same_device_eps);
    61         free32(instance->qh);
    6256        free(instance);
    6357}
Note: See TracChangeset for help on using the changeset viewer.