[ifxmips]
[openwrt/svn-archive/archive.git] / package / libtapi / src / tapi-stream.h
1 #ifndef __TAPI_STREAM_H__
2 #define __TAPI_STREAM_H__
3
4 struct tapi_device;
5
6 struct tapi_stream {
7 int fd;
8 int ep;
9 };
10
11 struct tapi_stream *tapi_stream_alloc(struct tapi_device *);
12 void tapi_stream_free(struct tapi_stream *);
13
14 static inline int tapi_stream_get_endpoint(struct tapi_stream *stream)
15 {
16 return stream->ep;
17 }
18
19 #endif