summaryrefslogtreecommitdiffstats
path: root/server/red_channel.h
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-10 09:28:39 +0200
committerAlon Levy <alevy@redhat.com>2011-03-02 17:27:52 +0200
commita05628bf061f5c0bcbd1221f8a990487210060de (patch)
tree3c13fe0ca151e5420f8260d390a2b1996aac4afb /server/red_channel.h
parent6b862596460802aff0604f16bb3e77c524512e84 (diff)
downloadspice-a05628bf061f5c0bcbd1221f8a990487210060de.tar.gz
spice-a05628bf061f5c0bcbd1221f8a990487210060de.tar.xz
spice-a05628bf061f5c0bcbd1221f8a990487210060de.zip
server/red_channel (all): add red_channel_get_stream
use in config_socket, this makes the stream internal to the RedChannel implementation that will change later for multiple client support.
Diffstat (limited to 'server/red_channel.h')
-rw-r--r--server/red_channel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/red_channel.h b/server/red_channel.h
index 1841de47..f991f2d4 100644
--- a/server/red_channel.h
+++ b/server/red_channel.h
@@ -272,6 +272,10 @@ void red_channel_pipe_clear(RedChannel *channel);
// handle_channel_events - this is the only one that was used before, and was in red_channel.c
void red_channel_receive(RedChannel *channel);
void red_channel_send(RedChannel *channel);
+
+/* accessors for RedChannel */
+/* Note: the valid times to call red_channel_get_marshaller are just during send_item callback. */
SpiceMarshaller *red_channel_get_marshaller(RedChannel *channel);
+RedsStream *red_channel_get_stream(RedChannel *channel);
#endif