Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util/stream: Update OSTREAM_DEF and ISTREAM_DEF #3282

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions util/stream/include/stream/stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,10 @@ struct mem_in_stream {
#define OSTREAM_DEF(type) \
static int type ## _write(struct out_stream *ostream, const uint8_t *buf, uint32_t count); \
static int type ## _flush(struct out_stream *ostream); \
static int type ## _pump_from(struct out_stream *ostream, struct in_stream *istream, uint32_t count); \
const struct out_stream_vft type ## _vft = { \
.write = type ## _write, \
.flush = type ## _flush, \
.pump_from = type ## _pump_from, \
.pump_from = NULL, \
}

#define OSTREAM_VFT(type, _write, _flush, _pump) \
Expand All @@ -156,7 +155,7 @@ struct mem_in_stream {
const struct in_stream_vft type ## _vft = { \
.available = type ## _available, \
.read = type ## _read, \
.pump_to = type ## _pump_to, \
.pump_to = NULL, \
}

#define ISTREAM(type, name) \
Expand Down
Loading