]> Git Repo - qemu.git/blobdiff - hw/core/stream.c
qdev: Use GList for global properties
[qemu.git] / hw / core / stream.c
index a07d6a56d32129f2768f7677293db3a2d53eea29..4439ecdf0b98854b397e1781e9f2d06160a7570e 100644 (file)
@@ -1,11 +1,21 @@
+#include "qemu/osdep.h"
 #include "hw/stream.h"
 
-void
-stream_push(StreamSlave *sink, uint8_t *buf, size_t len, uint32_t *app)
+size_t
+stream_push(StreamSlave *sink, uint8_t *buf, size_t len)
 {
     StreamSlaveClass *k =  STREAM_SLAVE_GET_CLASS(sink);
 
-    k->push(sink, buf, len, app);
+    return k->push(sink, buf, len);
+}
+
+bool
+stream_can_push(StreamSlave *sink, StreamCanPushNotifyFn notify,
+                void *notify_opaque)
+{
+    StreamSlaveClass *k =  STREAM_SLAVE_GET_CLASS(sink);
+
+    return k->can_push ? k->can_push(sink, notify, notify_opaque) : true;
 }
 
 static const TypeInfo stream_slave_info = {
This page took 0.023938 seconds and 4 git commands to generate.