Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add red_channel_get_server() | Jonathon Jongsma | 2015-02-23 | 4 | -3/+9 |
| | | | | | Instead of poking into the internals of the RedChannel, provide an accessor. | ||||
* | Don't typedef RedWorker twice | Jonathon Jongsma | 2015-02-23 | 1 | -2/+2 |
| | | | | | No need to typedef the struct here, it's typedef'ed in the header already. | ||||
* | Remove use of global 'reds' within RedWorker | Jonathon Jongsma | 2015-02-23 | 3 | -4/+13 |
| | | | | | Get the server variable from the RedDispatcher instead of using the global variable | ||||
* | Add red_dispatcher_get_server() | Jonathon Jongsma | 2015-02-23 | 2 | -0/+6 |
| | |||||
* | Store reference to RedsState in RedDispatcher | Jonathon Jongsma | 2015-02-23 | 3 | -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 -> CommonWorkerChannel | Jonathon Jongsma | 2015-02-23 | 8 | -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' variables | Jonathon Jongsma | 2015-02-23 | 6 | -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' variable | Jonathon Jongsma | 2015-02-23 | 3 | -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 Jongsma | 2015-02-23 | 1 | -4/+4 |
| | |||||
* | Add RedsState arg to inputs_channel_new() | Jonathon Jongsma | 2015-02-23 | 3 | -4/+5 |
| | |||||
* | Store a reference to RedsState in Channel base class | Jonathon Jongsma | 2015-02-23 | 7 | -24/+33 |
| | |||||
* | Add RedsState arg to smartcard_device_connect() | Jonathon Jongsma | 2015-02-23 | 3 | -7/+7 |
| | |||||
* | Add RedsState arg to activate_modifiers_watch() | Jonathon Jongsma | 2015-02-23 | 1 | -3/+3 |
| | |||||
* | Use strong type on spice_tablet_state_get_server() | Jonathon Jongsma | 2015-02-23 | 2 | -2/+2 |
| | |||||
* | Add RedsState arg to spicevmc_device_connect|disconnect() | Jonathon Jongsma | 2015-02-23 | 3 | -8/+11 |
| | |||||
* | Add RedsState arg to red_on_main_agent_tokens() | Jonathon Jongsma | 2015-02-23 | 3 | -3/+3 |
| | |||||
* | Store a reference to RedsState in RedsMigTargetClient | Jonathon Jongsma | 2015-02-23 | 2 | -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 Jongsma | 2015-02-23 | 3 | -3/+13 |
| | | | | Store a reference to the RedsState server in the keyboard state struct | ||||
* | RedsState: use local variables in more places | Jonathon Jongsma | 2015-02-23 | 1 | -44/+45 |
| | | | | | Various functions were still using the global 'reds' variable rather than the local argument of type RedsState | ||||
* | Add reference to server in RedClient | Jonathon Jongsma | 2015-02-23 | 3 | -4/+6 |
| | | | | Allows client methods to not use global 'reds' variable | ||||
* | char-device: use local 'reds' variable | Jonathon Jongsma | 2015-02-23 | 4 | -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 functions | Jonathon Jongsma | 2015-02-23 | 2 | -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 functions | Jonathon Jongsma | 2015-02-23 | 8 | -42/+41 |
| | |||||
* | Add RedsState arg to reds_handle_channel_event() | Jonathon Jongsma | 2015-02-23 | 3 | -3/+3 |
| | |||||
* | spice_server_remove_interface: use local variable | Jonathon Jongsma | 2015-02-23 | 1 | -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 RedLinkInfo | Jonathon Jongsma | 2015-02-23 | 1 | -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 Jongsma | 2015-02-23 | 1 | -6/+7 |
| | |||||
* | Move 'core' into RedsState struct | Jonathon Jongsma | 2015-02-23 | 9 | -64/+67 |
| | | | | Also add reds_get_core_interface() accessor for external use. | ||||
* | Rename vdi_port_read_buf_get() to match convention | Jonathon Jongsma | 2015-02-23 | 1 | -4/+4 |
| | | | | Since this is technically a RedsState method, name it as such. | ||||
* | Move ssl_parameters to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -37/+39 |
| | | | | Removing more global variables | ||||
* | Move exit_on_disconnect to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -3/+4 |
| | | | | Removing more global variables | ||||
* | Move agent_file_xfer to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -8/+9 |
| | | | | Removing more global variables | ||||
* | Move agent_copypaste to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -8/+9 |
| | | | | Removing more global variables | ||||
* | Move agent_mouse to RedsState struct | Jonathon Jongsma | 2015-02-23 | 4 | -10/+12 |
| | | | | Required adding a RedsState arg to reds_get_agent_mouse() | ||||
* | Move zlib_glz_state to RedsState struct | Jonathon Jongsma | 2015-02-23 | 4 | -4/+10 |
| | | | | Also required adding reds_get_zlib_glz_state() for external access. | ||||
* | Move jpeg_state to RedsState struct | Jonathon Jongsma | 2015-02-23 | 4 | -4/+10 |
| | | | | Also required adding reds_get_jpeg_state() for external access. | ||||
* | Move image_compression to RedsState struct | Jonathon Jongsma | 2015-02-23 | 5 | -10/+10 |
| | | | | Removing more global variables | ||||
* | Move streaming_video to RedsState struct | Jonathon Jongsma | 2015-02-23 | 5 | -7/+13 |
| | | | | | Also requires adding reds_get_streaming_video() accessor so that other files can check this value. | ||||
* | Move ticketing_enabled to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -5/+6 |
| | | | | Removing more global variables | ||||
* | Move spice_uuid, spice_uuid_is_set to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -7/+10 |
| | | | | Removing more global variables | ||||
* | Move spice_name to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -5/+5 |
| | | | | Remove more global variables | ||||
* | Move sasl_enabled, sasl_appname to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -14/+18 |
| | | | | Removing more global variables | ||||
* | Move taTicket to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -11/+11 |
| | | | | Removing more global variables | ||||
* | Move spice_family to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -5/+6 |
| | | | | Removing more global variables | ||||
* | Move spice_addr to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -3/+3 |
| | | | | Removing more global variables | ||||
* | Move spice_listen_socket_fd to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -5/+6 |
| | | | | Removing more global variables | ||||
* | Move spice_secure_port to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -4/+5 |
| | | | | removing more global variables | ||||
* | Move migration_interface to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -16/+16 |
| | |||||
* | Move vdagent to RedsState struct | Jonathon Jongsma | 2015-02-23 | 5 | -33/+33 |
| | | | | | Also change API of reds_has_vdagent() to take RedsState arg. Removes another global variable. | ||||
* | Move spice_port to RedsState struct | Jonathon Jongsma | 2015-02-23 | 2 | -4/+5 |
| | | | | Remove another global variable |