]> git.proxmox.com Git - qemu.git/blame - hw/stream.c
virtio-blk: cleanup: init and exit functions.
[qemu.git] / hw / stream.c
CommitLineData
83c9f4ca 1#include "hw/stream.h"
669b4983
PC
2
3void
4stream_push(StreamSlave *sink, uint8_t *buf, size_t len, uint32_t *app)
5{
6 StreamSlaveClass *k = STREAM_SLAVE_GET_CLASS(sink);
7
8 k->push(sink, buf, len, app);
9}
10
8c43a6f0 11static const TypeInfo stream_slave_info = {
669b4983
PC
12 .name = TYPE_STREAM_SLAVE,
13 .parent = TYPE_INTERFACE,
14 .class_size = sizeof(StreamSlaveClass),
15};
16
17
18static void stream_slave_register_types(void)
19{
20 type_register_static(&stream_slave_info);
21}
22
23type_init(stream_slave_register_types)