summaryrefslogtreecommitdiff
path: root/package/libtapi/src/tapi-stream.h
blob: 0e3e04af243f90b22919ac1c5582f6595b4222d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __TAPI_STREAM_H__
#define __TAPI_STREAM_H__

struct tapi_device;

struct tapi_stream {
	int fd;
	int ep;
};

struct tapi_stream *tapi_stream_alloc(struct tapi_device *);
void tapi_stream_free(struct tapi_stream *);

static inline int tapi_stream_get_endpoint(struct tapi_stream *stream)
{
	return stream->ep;
}

#endif