diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2016-02-12 13:49:39 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-03-05 10:13:51 +0000 |
commit | c3d43fdea73154a6955e5c5791646e1aabca26fc (patch) | |
tree | a871eb2ba228a5cacbbcb5e07f81cc13ca02acd9 /server/reds.c | |
parent | 95fa8bfb13a6d43410cd5153efbf99eb1133b003 (diff) |
Store reference to RedsState in QXLState
Remove use of global 'reds' variable from QXLState functions.
Instead store the owning RedsState variable inside the QXLState
struct and use that when necessary.
Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/reds.c')
-rw-r--r-- | server/reds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/reds.c b/server/reds.c index 15a31f92..213d753f 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3209,7 +3209,7 @@ SPICE_GNUC_VISIBLE int spice_server_add_interface(SpiceServer *s, } qxl = SPICE_CONTAINEROF(sin, QXLInstance, base); - red_qxl_init(qxl); + red_qxl_init(reds, qxl); qxl_state = qxl->st; reds->qxl_states = g_list_prepend(reds->qxl_states, qxl_state); |