chardev: add hmp hotplug commands
[qemu/opensuse.git] / hw / stream.c
blobd4cf84d4c03183f1fc9d2593910a0e3c9e609f19
1 #include "stream.h"
3 void
4 stream_push(StreamSlave *sink, uint8_t *buf, size_t len, uint32_t *app)
6 StreamSlaveClass *k = STREAM_SLAVE_GET_CLASS(sink);
8 k->push(sink, buf, len, app);
11 static const TypeInfo stream_slave_info = {
12 .name = TYPE_STREAM_SLAVE,
13 .parent = TYPE_INTERFACE,
14 .class_size = sizeof(StreamSlaveClass),
18 static void stream_slave_register_types(void)
20 type_register_static(&stream_slave_info);
23 type_init(stream_slave_register_types)