From 43caec519ec7aec3a6170414ea812df83a72eae4 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 23 Mar 2010 15:47:25 +0100 Subject: 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. --- server/spice.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'server/spice.h') 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); -- cgit