summaryrefslogtreecommitdiffstats
path: root/server
Commit message (Collapse)AuthorAgeFilesLines
* Add red_channel_get_server()Jonathon Jongsma2015-02-234-3/+9
| | | | | Instead of poking into the internals of the RedChannel, provide an accessor.
* Don't typedef RedWorker twiceJonathon Jongsma2015-02-231-2/+2
| | | | | No need to typedef the struct here, it's typedef'ed in the header already.
* Remove use of global 'reds' within RedWorkerJonathon Jongsma2015-02-233-4/+13
| | | | | Get the server variable from the RedDispatcher instead of using the global variable
* Add red_dispatcher_get_server()Jonathon Jongsma2015-02-232-0/+6
|
* Store reference to RedsState in RedDispatcherJonathon Jongsma2015-02-233-5/+7
| | | | | | Remove use of global 'reds' variable from RedDispatcher functions. Instead store the owning RedsState variable inside the RedDispatcher struct and use that when necessary.
* CommonChannel -> CommonWorkerChannelJonathon Jongsma2015-02-238-68/+68
| | | | | | | Rename this struct to make it clear that it's only the base class for worker channels (e.g. display and cursor), not all channels. Also renamed CommonChannelClient to CommonWorkerChannelClient.
* Remove global 'dispatchers', 'num_active_workers' variablesJonathon Jongsma2015-02-236-201/+243
| | | | | | | | | | | | | Since these are server-level variables, move them into RedsState. However, num_active_workers was removed because: - each dispatcher always has 1 active worker, so we can determine the number of active workers by counting the dispatchers - it was never actually set correctly. Even if there was more than one worker, this variable was always only set to either 0 or 1. This change required moving a bunch of helper code into RedsState as well, an providing some RedDispatcher interfaces to access dispatcher information from RedsState.
* MainChannel: don't use global 'reds' variableJonathon Jongsma2015-02-233-23/+23
| | | | | | Add RedsState arg to main_channel_new(), and use the 'reds' property that is stored in the base RedChannel struct rather than the global 'reds' variable.
* Add RedsState arg to reds_set_migration_dest_info()Jonathon Jongsma2015-02-231-4/+4
|
* Add RedsState arg to inputs_channel_new()Jonathon Jongsma2015-02-233-4/+5
|
* Store a reference to RedsState in Channel base classJonathon Jongsma2015-02-237-24/+33
|
* Add RedsState arg to smartcard_device_connect()Jonathon Jongsma2015-02-233-7/+7
|
* Add RedsState arg to activate_modifiers_watch()Jonathon Jongsma2015-02-231-3/+3
|
* Use strong type on spice_tablet_state_get_server()Jonathon Jongsma2015-02-232-2/+2
|
* Add RedsState arg to spicevmc_device_connect|disconnect()Jonathon Jongsma2015-02-233-8/+11
|
* Add RedsState arg to red_on_main_agent_tokens()Jonathon Jongsma2015-02-233-3/+3
|
* Store a reference to RedsState in RedsMigTargetClientJonathon Jongsma2015-02-232-6/+7
| | | | | This allows RedsMigTargetClient methods to use local variables rather than the global 'reds' variable
* spice_server_kbd_leds: don't use global 'reds'Jonathon Jongsma2015-02-233-3/+13
| | | | Store a reference to the RedsState server in the keyboard state struct
* RedsState: use local variables in more placesJonathon Jongsma2015-02-231-44/+45
| | | | | Various functions were still using the global 'reds' variable rather than the local argument of type RedsState
* Add reference to server in RedClientJonathon Jongsma2015-02-233-4/+6
| | | | Allows client methods to not use global 'reds' variable
* char-device: use local 'reds' variableJonathon Jongsma2015-02-234-15/+22
| | | | | Store a reference to the server in the SpiceCharDeviceState struct and use that rather than the global 'reds' variable
* Remove use of global 'reds' from VDIReadBuf functionsJonathon Jongsma2015-02-232-21/+23
| | | | | Add a new 'state' property to VDIReadBuf so that we can refer back to the VDIPortState struct from the readbuf functions.
* Add RedsState arg to all stat functionsJonathon Jongsma2015-02-238-42/+41
|
* Add RedsState arg to reds_handle_channel_event()Jonathon Jongsma2015-02-233-3/+3
|
* spice_server_remove_interface: use local variableJonathon Jongsma2015-02-231-1/+2
| | | | | We were accidentally setting the global 'reds' variable in one of the branches in this function when we wanted to set the local variable.
* Add RedsState member to RedLinkInfoJonathon Jongsma2015-02-231-2/+13
| | | | | This allows us to use local 'reds' variables in all of the various async callbacks rather than using the global 'reds' variable.
* Add RedsState arg to reds_init_client_[ssl_]connection()Jonathon Jongsma2015-02-231-6/+7
|
* Move 'core' into RedsState structJonathon Jongsma2015-02-239-64/+67
| | | | Also add reds_get_core_interface() accessor for external use.
* Rename vdi_port_read_buf_get() to match conventionJonathon Jongsma2015-02-231-4/+4
| | | | Since this is technically a RedsState method, name it as such.
* Move ssl_parameters to RedsState structJonathon Jongsma2015-02-232-37/+39
| | | | Removing more global variables
* Move exit_on_disconnect to RedsState structJonathon Jongsma2015-02-232-3/+4
| | | | Removing more global variables
* Move agent_file_xfer to RedsState structJonathon Jongsma2015-02-232-8/+9
| | | | Removing more global variables
* Move agent_copypaste to RedsState structJonathon Jongsma2015-02-232-8/+9
| | | | Removing more global variables
* Move agent_mouse to RedsState structJonathon Jongsma2015-02-234-10/+12
| | | | Required adding a RedsState arg to reds_get_agent_mouse()
* Move zlib_glz_state to RedsState structJonathon Jongsma2015-02-234-4/+10
| | | | Also required adding reds_get_zlib_glz_state() for external access.
* Move jpeg_state to RedsState structJonathon Jongsma2015-02-234-4/+10
| | | | Also required adding reds_get_jpeg_state() for external access.
* Move image_compression to RedsState structJonathon Jongsma2015-02-235-10/+10
| | | | Removing more global variables
* Move streaming_video to RedsState structJonathon Jongsma2015-02-235-7/+13
| | | | | Also requires adding reds_get_streaming_video() accessor so that other files can check this value.
* Move ticketing_enabled to RedsState structJonathon Jongsma2015-02-232-5/+6
| | | | Removing more global variables
* Move spice_uuid, spice_uuid_is_set to RedsState structJonathon Jongsma2015-02-232-7/+10
| | | | Removing more global variables
* Move spice_name to RedsState structJonathon Jongsma2015-02-232-5/+5
| | | | Remove more global variables
* Move sasl_enabled, sasl_appname to RedsState structJonathon Jongsma2015-02-232-14/+18
| | | | Removing more global variables
* Move taTicket to RedsState structJonathon Jongsma2015-02-232-11/+11
| | | | Removing more global variables
* Move spice_family to RedsState structJonathon Jongsma2015-02-232-5/+6
| | | | Removing more global variables
* Move spice_addr to RedsState structJonathon Jongsma2015-02-232-3/+3
| | | | Removing more global variables
* Move spice_listen_socket_fd to RedsState structJonathon Jongsma2015-02-232-5/+6
| | | | Removing more global variables
* Move spice_secure_port to RedsState structJonathon Jongsma2015-02-232-4/+5
| | | | removing more global variables
* Move migration_interface to RedsState structJonathon Jongsma2015-02-232-16/+16
|
* Move vdagent to RedsState structJonathon Jongsma2015-02-235-33/+33
| | | | | Also change API of reds_has_vdagent() to take RedsState arg. Removes another global variable.
* Move spice_port to RedsState structJonathon Jongsma2015-02-232-4/+5
| | | | Remove another global variable