diff options
Diffstat (limited to 'common/in_stream.c')
-rw-r--r-- | common/in_stream.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/common/in_stream.c b/common/in_stream.c new file mode 100644 index 0000000000..6df8b59879 --- /dev/null +++ b/common/in_stream.c @@ -0,0 +1,19 @@ +/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "in_stream.h" + +size_t in_stream_read(struct in_stream const *stream, + uint8_t *buffer, + size_t count) +{ + return stream->ops->read(stream, buffer, count); +} + +void in_stream_ready(struct in_stream const *stream) +{ + if (stream->ready) + stream->ready(stream); +} |