summaryrefslogtreecommitdiffstats
path: root/server/red-dispatcher.c
Commit message (Collapse)AuthorAgeFilesLines
* Free dispatchers at exitreplay-rebaseJonathon Jongsma2015-02-231-0/+7
|
* Convert Dispatcher and MainDispatcher to GObjectsJonathon Jongsma2015-02-231-38/+38
| | | | | Allows more explicit inheritance relationship, and numerous other advantages.
* Add red_dispatcher_get_server()Jonathon Jongsma2015-02-231-0/+5
|
* Store reference to RedsState in RedDispatcherJonathon Jongsma2015-02-231-3/+5
| | | | | | Remove use of global 'reds' variable from RedDispatcher functions. Instead store the owning RedsState variable inside the RedDispatcher struct and use that when necessary.
* Remove global 'dispatchers', 'num_active_workers' variablesJonathon Jongsma2015-02-231-174/+64
| | | | | | | | | | | | | 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.
* Move image_compression to RedsState structJonathon Jongsma2015-02-231-2/+2
| | | | Removing more global variables
* Move streaming_video to RedsState structJonathon Jongsma2015-02-231-3/+3
| | | | | Also requires adding reds_get_streaming_video() accessor so that other files can check this value.
* Change reds_set_client_mouse_allowed() to take RedsState argJonathon Jongsma2015-02-231-1/+1
|
* Change reds_register_channel() to take RedsState argJonathon Jongsma2015-02-231-2/+2
| | | | | | In preparation for getting rid of the global 'reds' variable, we need to pass the RedsState variable to all functions where it is needed. For now the callers just pass in the global reds variable.
* Rename red_*_qxl.[ch] to red-*-qxl.[ch]Jonathon Jongsma2015-02-231-1/+1
|
* Rename red_worker.[ch] to red-worker.[ch]Jonathon Jongsma2015-02-231-1/+1
|
* Rename red_dispatcher.[ch] to red-dispatcher.[ch]Jonathon Jongsma2015-02-231-0/+1104