summaryrefslogtreecommitdiff
path: root/common/out_stream.c
blob: 984b20fc5941c314807efc718c6402de05c4f9c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* 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 "out_stream.h"

size_t out_stream_write(struct out_stream const *stream,
			uint8_t const *buffer,
			size_t count)
{
	return stream->ops->write(stream, buffer, count);
}

void out_stream_flush(struct out_stream const *stream)
{
	stream->ops->flush(stream);
}

void out_stream_ready(struct out_stream const *stream)
{
	if (stream->ready)
		stream->ready(stream);
}