summaryrefslogtreecommitdiffstats
path: root/server/inputs-channel.c
Commit message (Collapse)AuthorAgeFilesLines
* Add red_channel_get_server()Jonathon Jongsma2015-02-231-2/+2
| | | | | Instead of poking into the internals of the RedChannel, provide an accessor.
* Add RedsState arg to inputs_channel_new()Jonathon Jongsma2015-02-231-2/+3
|
* Store a reference to RedsState in Channel base classJonathon Jongsma2015-02-231-0/+1
|
* 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-231-1/+1
|
* spice_server_kbd_leds: don't use global 'reds'Jonathon Jongsma2015-02-231-3/+11
| | | | Store a reference to the RedsState server in the keyboard state struct
* Move 'core' into RedsState structJonathon Jongsma2015-02-231-3/+3
| | | | Also add reds_get_core_interface() accessor for external use.
* Move agent_mouse to RedsState structJonathon Jongsma2015-02-231-4/+4
| | | | Required adding a RedsState arg to reds_get_agent_mouse()
* Move vdagent to RedsState structJonathon Jongsma2015-02-231-4/+4
| | | | | Also change API of reds_has_vdagent() to take RedsState arg. Removes another global variable.
* Fix crash when checking mouse modeJonathon Jongsma2015-02-231-0/+1
| | | | | | Since the mouse mode is now stored in the inputs channel, we were crashing when somebody was calling this API before the inputs channel was created.
* Remove use of global 'reds' var from spice_server_remove_interface()Jonathon Jongsma2015-02-231-3/+14
| | | | | | | Since this is public API, we can't easily change the signature of the function to take a RedsState argument, so instead we apply a hack and store the reds argument inside the device state struct when the interface is added, and retrieve it for use later when it is removed.
* inputs_init() -> inputs_channel_new()Jonathon Jongsma2015-02-231-1/+1
| | | | Rename function to be more consistent
* Remove global inputs channelJonathon Jongsma2015-02-231-105/+134
| | | | | | | Make the RedsState object own an InputsChannel object rather than having a global inputs channel. This means changing a lot of inputs-related API to take an InputsChannel* argument and moving the keyboard, mouse, and tablet objects into the InputsChannel object.
* Change reds_handle_agent_mouse_event() to take RedsState argJonathon Jongsma2015-02-231-3/+3
|
* Change reds_get_mouse_mode() to take RedsState argJonathon Jongsma2015-02-231-4/+4
|
* Change reds_register_channel() to take RedsState argJonathon Jongsma2015-02-231-1/+1
| | | | | | 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 reds_stream.[ch] to red-stream.[ch]Jonathon Jongsma2015-02-231-1/+1
|
* Rename red_channel.[ch] to red-channel.[ch]Jonathon Jongsma2015-02-231-1/+1
|
* server: rename filesMarc-André Lureau2015-02-231-0/+679