summaryrefslogtreecommitdiffstats
path: root/server/main_channel.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-03-14 17:06:22 +0100
committerHans de Goede <hdegoede@redhat.com>2013-03-15 09:44:26 +0100
commit3a2f42555dbae4357aa9fc2e83c9b31a837ac98d (patch)
treeb7aff16ca358c280a16225fba0e1f9d1129bff6b /server/main_channel.h
parent89d2a68cb7bfa105d27d12497a1f4e340171b525 (diff)
downloadspice-3a2f42555dbae4357aa9fc2e83c9b31a837ac98d.tar.gz
spice-3a2f42555dbae4357aa9fc2e83c9b31a837ac98d.tar.xz
spice-3a2f42555dbae4357aa9fc2e83c9b31a837ac98d.zip
main-channel: Make main_channel_push_notify deal with dynamic memory
Currently main_channel_push_notify only gets passed a static string, but chances are in the future it may get passed dynamically allocated strings, prepare it for this. While at it also make clear that its argument is a string, and simplify things a bit by making use of this knowledge (pushing the strlen call down). Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'server/main_channel.h')
-rw-r--r--server/main_channel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/main_channel.h b/server/main_channel.h
index 285a0096..5f77b74a 100644
--- a/server/main_channel.h
+++ b/server/main_channel.h
@@ -60,7 +60,7 @@ void main_channel_client_start_net_test(MainChannelClient *mcc);
void main_channel_push_init(MainChannelClient *mcc, int display_channels_hint,
int current_mouse_mode, int is_client_mouse_allowed, int multi_media_time,
int ram_hint);
-void main_channel_push_notify(MainChannel *main_chan, uint8_t *mess, const int mess_len);
+void main_channel_push_notify(MainChannel *main_chan, const char *msg);
void main_channel_push_multi_media_time(MainChannel *main_chan, int time);
int main_channel_getsockname(MainChannel *main_chan, struct sockaddr *sa, socklen_t *salen);
int main_channel_getpeername(MainChannel *main_chan, struct sockaddr *sa, socklen_t *salen);