summaryrefslogtreecommitdiffstats
path: root/server/spice.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-03-23 15:47:25 +0100
committerGerd Hoffmann <kraxel@redhat.com>2010-05-19 11:22:05 +0200
commit43caec519ec7aec3a6170414ea812df83a72eae4 (patch)
treee91ae5a9632bb0594b38e6d620ae6fa8449650dd /server/spice.h
parentedc1af5f670bcedce49e6b2e88caac35422aad7b (diff)
downloadspice-43caec519ec7aec3a6170414ea812df83a72eae4.tar.gz
spice-43caec519ec7aec3a6170414ea812df83a72eae4.tar.xz
spice-43caec519ec7aec3a6170414ea812df83a72eae4.zip
channel security cleanup
- drop spice_channel_name_t enum, use spice-protocol defines instead. - switch spice_server_set_channel_security() channel parameter from enum to string. - drop spice_server_set_default_channel_security(), use spice_server_set_channel_security with channel == NULL instead.
Diffstat (limited to 'server/spice.h')
-rw-r--r--server/spice.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/server/spice.h b/server/spice.h
index b2a09b31..094caae4 100644
--- a/server/spice.h
+++ b/server/spice.h
@@ -61,24 +61,10 @@ int spice_server_set_image_compression(SpiceServer *s,
spice_image_compression_t comp);
spice_image_compression_t spice_server_get_image_compression(SpiceServer *s);
-typedef enum {
- SPICE_CHANNEL_NAME_INVALID = 0,
- SPICE_CHANNEL_NAME_MAIN = 1,
- SPICE_CHANNEL_NAME_DISPLAY,
- SPICE_CHANNEL_NAME_INPUTS,
- SPICE_CHANNEL_NAME_CURSOR,
- SPICE_CHANNEL_NAME_PLAYBACK,
- SPICE_CHANNEL_NAME_RECORD,
- SPICE_CHANNEL_NAME_TUNNEL,
- SPICE_CHANNEL_NAME_ALL = 999,
-} spice_channel_name_t;
-
#define SPICE_CHANNEL_SECURITY_NONE (1 << 0)
#define SPICE_CHANNEL_SECURITY_SSL (1 << 1)
-int spice_server_set_channel_security(SpiceServer *s,
- spice_channel_name_t channel,
- int security);
+int spice_server_set_channel_security(SpiceServer *s, const char *channel, int security);
int spice_server_set_mouse_absolute(SpiceServer *s, int absolute);