8 #include "tapi-device.h"
9 #include "tapi-stream.h"
10 #include "tapi-ioctl.h"
12 struct tapi_stream *tapi_stream_alloc(struct tapi_device *dev)
14 struct tapi_stream *stream;
16 stream = malloc(sizeof(*stream));
20 stream->fd = open(dev->stream_path, O_RDWR);
27 stream->ep = ioctl(stream->fd, TAPI_STREAM_IOCTL_GET_ENDPOINT, 0);
38 void tapi_stream_free(struct tapi_stream *stream)