[Spice-devel] [PATCH 1/3] spice-channel: export spice_channel_type_to_string
Alon Levy
alevy at redhat.com
Fri Jul 1 20:06:38 PDT 2011
---
gtk/map-file | 1 +
gtk/spice-channel.c | 3 +--
gtk/spice-channel.h | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/gtk/map-file b/gtk/map-file
index 8eef771..0161a7a 100644
--- a/gtk/map-file
+++ b/gtk/map-file
@@ -12,6 +12,7 @@ spice_channel_open_fd;
spice_channel_set_capability;
spice_channel_test_capability;
spice_channel_test_common_capability;
+spice_channel_type_to_string;
spice_cursor_channel_get_type;
spice_display_channel_get_type;
spice_display_copy_to_guest;
diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index 6e30275..ab24a4b 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -86,7 +86,6 @@ enum {
static guint signals[SPICE_CHANNEL_LAST_SIGNAL];
-static const char* spice_channel_type_to_string(int type);
static void spice_channel_iterate_write(SpiceChannel *channel);
static void spice_channel_iterate_read(SpiceChannel *channel);
@@ -1639,7 +1638,7 @@ end:
spice_msg_in_unref(in);
}
-static const char* spice_channel_type_to_string(int type)
+const gchar* spice_channel_type_to_string(gint type)
{
static const char *to_string[] = {
NULL,
diff --git a/gtk/spice-channel.h b/gtk/spice-channel.h
index 1890b2d..f7eac9d 100644
--- a/gtk/spice-channel.h
+++ b/gtk/spice-channel.h
@@ -107,6 +107,8 @@ gboolean spice_channel_test_capability(SpiceChannel *channel, guint32 cap);
gboolean spice_channel_test_common_capability(SpiceChannel *channel, guint32 cap);
void spice_channel_set_capability(SpiceChannel *channel, guint32 cap);
+const gchar* spice_channel_type_to_string(gint type);
+
G_END_DECLS
#endif /* __SPICE_CLIENT_CHANNEL_H__ */
--
1.7.5.4
More information about the Spice-devel
mailing list