summaryrefslogtreecommitdiffstats
path: root/server/stream.h
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-11-10 14:41:16 -0600
committerFrediano Ziglio <fziglio@redhat.com>2015-11-18 08:37:21 +0000
commitac2a854fbfe7b85892c2f6d6eaeaf27d559f9bd7 (patch)
tree1164cc0efcb5c687623c28fa7e22ab7bc9f44d72 /server/stream.h
parent5897952f46881a3324c9c7be9339065310011079 (diff)
downloadspice-ac2a854fbfe7b85892c2f6d6eaeaf27d559f9bd7.tar.gz
spice-ac2a854fbfe7b85892c2f6d6eaeaf27d559f9bd7.tar.xz
spice-ac2a854fbfe7b85892c2f6d6eaeaf27d559f9bd7.zip
worker: Move stream functions to stream.c
Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'server/stream.h')
-rw-r--r--server/stream.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/stream.h b/server/stream.h
index f77fa96a..09df31bb 100644
--- a/server/stream.h
+++ b/server/stream.h
@@ -40,6 +40,9 @@
#define RED_STREAM_DEFAULT_HIGH_START_BIT_RATE (10 * 1024 * 1024) // 10Mbps
#define RED_STREAM_DEFAULT_LOW_START_BIT_RATE (2.5 * 1024 * 1024) // 2.5Mbps
+/* move back to display_channel once struct private */
+typedef struct DisplayChannel DisplayChannel;
+
typedef struct Stream Stream;
typedef struct StreamActivateReportItem {
@@ -132,6 +135,13 @@ struct Stream {
uint32_t input_fps;
};
-void stream_agent_stats_print(StreamAgent *agent);
+void display_channel_init_streams (DisplayChannel *display);
+void stream_stop (DisplayChannel *display,
+ Stream *stream);
+void stream_unref (DisplayChannel *display,
+ Stream *stream);
+void stream_agent_unref (DisplayChannel *display,
+ StreamAgent *agent);
+void stream_agent_stats_print (StreamAgent *agent);
#endif /* STREAM_H */