s390x: upgrade status of KVM cores to "supported"
[qemu/ar7.git] / hw / core / stream.c
blob4439ecdf0b98854b397e1781e9f2d06160a7570e
1 #include "qemu/osdep.h"
2 #include "hw/stream.h"
4 size_t
5 stream_push(StreamSlave *sink, uint8_t *buf, size_t len)
7 StreamSlaveClass *k = STREAM_SLAVE_GET_CLASS(sink);
9 return k->push(sink, buf, len);
12 bool
13 stream_can_push(StreamSlave *sink, StreamCanPushNotifyFn notify,
14 void *notify_opaque)
16 StreamSlaveClass *k = STREAM_SLAVE_GET_CLASS(sink);
18 return k->can_push ? k->can_push(sink, notify, notify_opaque) : true;
21 static const TypeInfo stream_slave_info = {
22 .name = TYPE_STREAM_SLAVE,
23 .parent = TYPE_INTERFACE,
24 .class_size = sizeof(StreamSlaveClass),
28 static void stream_slave_register_types(void)
30 type_register_static(&stream_slave_info);
33 type_init(stream_slave_register_types)