summaryrefslogtreecommitdiffstats
path: root/server/reds.c
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-06-25 09:34:57 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-07-03 14:13:43 +0300
commitbf91bdce5cb5b391b9d3f86900845831da80a5c5 (patch)
treef5fa2d5e524e54846620c5ac70fa2912741bf61d /server/reds.c
parent8bb444ec7ac3a64058138b24241149ae116653a4 (diff)
downloadspice-bf91bdce5cb5b391b9d3f86900845831da80a5c5.tar.gz
spice-bf91bdce5cb5b391b9d3f86900845831da80a5c5.tar.xz
spice-bf91bdce5cb5b391b9d3f86900845831da80a5c5.zip
char_device: move SpiceCharDeviceState from the header
In addition, I also removed the no longer used wakeup callback
Diffstat (limited to 'server/reds.c')
-rw-r--r--server/reds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/reds.c b/server/reds.c
index 911564b8..9488237b 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3158,11 +3158,11 @@ static SpiceCharDeviceState *attach_to_red_agent(SpiceCharDeviceInstance *sin)
SPICE_GNUC_VISIBLE void spice_server_char_device_wakeup(SpiceCharDeviceInstance* sin)
{
- if (sin->st->wakeup) {
- sin->st->wakeup(sin);
- } else {
- spice_char_device_wakeup(sin->st);
+ if (!sin->st) {
+ spice_error("no SpiceCharDeviceState attached to instance %p", sin);
+ return;
}
+ spice_char_device_wakeup(sin->st);
}
#define SUBTYPE_VDAGENT "vdagent"