summaryrefslogtreecommitdiff
path: root/common/in_stream.c
blob: 6df8b598794ea01e8fb5aff6066aaa0fc17336ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}