diff options
author | Alon Levy <alevy@redhat.com> | 2011-04-11 22:29:58 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-08-23 17:59:09 +0300 |
commit | 9cece23ba3e49e6eec9e380daa95d6ee0133c91c (patch) | |
tree | d1f423994d4d33d3af4581c00bd33a3e5eb53f54 /server/reds.h | |
parent | 0f0bdb190b8586ef7ac20fcefffe641e44eb15b9 (diff) | |
download | spice-9cece23ba3e49e6eec9e380daa95d6ee0133c91c.tar.gz spice-9cece23ba3e49e6eec9e380daa95d6ee0133c91c.tar.xz spice-9cece23ba3e49e6eec9e380daa95d6ee0133c91c.zip |
server/main_channel: support multiple clients
The main channel deals with connecting new clients, announcing mouse mode
changes, and the agent channel. The implementation is currently done without
any changes to the protocol, so everything has to be either broadcast or
to a specific client.
channels list - specific client
mouse mode - broadcast
agent - broadcast
notify - broadcast (should have two modes, and use the appropriate)
Notable TODOs:
* migration testing
* agent tokens are wrongly sent (or did I fix that? check)
Diffstat (limited to 'server/reds.h')
-rw-r--r-- | server/reds.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/reds.h b/server/reds.h index 990ea85b..6930fe6a 100644 --- a/server/reds.h +++ b/server/reds.h @@ -152,9 +152,9 @@ void reds_update_stat_value(uint32_t value); // callbacks from main channel messages void reds_on_main_agent_start(void); -void reds_on_main_agent_data(void *message, size_t size); -void reds_on_main_migrate_connected(void); -void reds_on_main_migrate_connect_error(void); +void reds_on_main_agent_data(MainChannelClient *mcc, void *message, size_t size); +void reds_on_main_migrate_connected(); +void reds_on_main_migrate_connect_error(); void reds_on_main_receive_migrate_data(MainMigrateData *data, uint8_t *end); void reds_on_main_mouse_mode_request(void *message, size_t size); |