| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Allows more explicit inheritance relationship, and numerous other
advantages.
|
|
|
|
| |
Preparation for GObject-ifying some internals
|
|
|
|
|
| |
The 'port' argument can be determined from VDIPortState, so no need to
pass both (through RedsState) to vdi_port_read_buf_process().
|
| |
|
|
|
|
|
|
| |
Calls to red_channel_create and reds_register_channel need an additional
RedsState argument. This fixes compilation when building with
--enable-smartcard
|
| |
|
|
|
|
|
|
|
| |
This should be the final piece of removing the global reds variable. We
still need a global variable to clean up during the atexit() function,
but we use a GList of servers (even though we technically don't support
multiple servers in the same process yet).
|
| |
|
|
|
|
|
| |
Pass RedsState variable to snd_attach_(playback|record) and get a
reference to this variable when needed by various functions.
|
|
|
|
|
|
| |
Requires changing a bunch of internal API to take MainDispatcher
arguments, etc. The main dispatcher object is now owned by RedsState,
since that is the object that previously created (initialized) it.
|
|
|
|
|
| |
Allows us to remove use of global 'reds' variable from reds-stream.c.
Requires changing the RedsStream constructor to accept a RedsState arg.
|
|
|
|
|
| |
We weren't properly setting the 'opaque' pointer to be the RedsState
server object. This was only triggering on windows guests.
|
|
|
|
|
| |
Use the server variable from the display channel rather than the
global variable.
|
|
|
|
|
| |
Instead of poking into the internals of the RedChannel, provide an
accessor.
|
|
|
|
|
| |
No need to typedef the struct here, it's typedef'ed in the header
already.
|
|
|
|
|
| |
Get the server variable from the RedDispatcher instead of using the
global variable
|
| |
|
|
|
|
|
|
| |
Remove use of global 'reds' variable from RedDispatcher functions.
Instead store the owning RedsState variable inside the RedDispatcher
struct and use that when necessary.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This allows RedsMigTargetClient methods to use local variables rather
than the global 'reds' variable
|
|
|
|
| |
Store a reference to the RedsState server in the keyboard state struct
|
|
|
|
|
| |
Various functions were still using the global 'reds' variable rather
than the local argument of type RedsState
|
|
|
|
| |
Allows client methods to not use global 'reds' variable
|
|
|
|
|
| |
Store a reference to the server in the SpiceCharDeviceState struct and
use that rather than the global 'reds' variable
|
|
|
|
|
| |
Add a new 'state' property to VDIReadBuf so that we can refer back to
the VDIPortState struct from the readbuf functions.
|
| |
|
| |
|
|
|
|
|
| |
We were accidentally setting the global 'reds' variable in one of the
branches in this function when we wanted to set the local variable.
|
|
|
|
|
| |
This allows us to use local 'reds' variables in all of the various async
callbacks rather than using the global 'reds' variable.
|
| |
|
|
|
|
| |
Also add reds_get_core_interface() accessor for external use.
|
|
|
|
| |
Since this is technically a RedsState method, name it as such.
|
|
|
|
| |
Removing more global variables
|
|
|
|
| |
Removing more global variables
|
|
|
|
| |
Removing more global variables
|
|
|
|
| |
Removing more global variables
|
|
|
|
| |
Required adding a RedsState arg to reds_get_agent_mouse()
|
|
|
|
| |
Also required adding reds_get_zlib_glz_state() for external access.
|
|
|
|
| |
Also required adding reds_get_jpeg_state() for external access.
|