]>
Commit | Line | Data |
---|---|---|
2e31e210 GH |
1 | /* |
2 | * spice module support, also spice stubs. | |
3 | * | |
4 | * Copyright (C) 2010 Red Hat, Inc. | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or | |
7 | * modify it under the terms of the GNU General Public License as | |
8 | * published by the Free Software Foundation; either version 2 or | |
9 | * (at your option) version 3 of the License. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, | |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | * GNU General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License | |
17 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | |
18 | */ | |
19 | ||
20 | #include "qemu/osdep.h" | |
b192cd1e | 21 | #include "qemu/error-report.h" |
2e31e210 GH |
22 | #include "ui/qemu-spice-module.h" |
23 | ||
24 | int using_spice; | |
7477477c | 25 | |
63be30e6 GH |
26 | static void qemu_spice_init_stub(void) |
27 | { | |
28 | } | |
29 | ||
b192cd1e GH |
30 | static void qemu_spice_display_init_stub(void) |
31 | { | |
32 | /* This must never be called if CONFIG_SPICE is disabled */ | |
33 | error_report("spice support is disabled"); | |
34 | abort(); | |
35 | } | |
36 | ||
7477477c GH |
37 | static int qemu_spice_migrate_info_stub(const char *h, int p, int t, |
38 | const char *s) | |
39 | { | |
40 | return -1; | |
41 | } | |
42 | ||
08ad2626 GH |
43 | static int qemu_spice_set_passwd_stub(const char *passwd, |
44 | bool fail_if_connected, | |
45 | bool disconnect_if_connected) | |
46 | { | |
47 | return -1; | |
48 | } | |
49 | ||
50 | static int qemu_spice_set_pw_expire_stub(time_t expires) | |
51 | { | |
52 | return -1; | |
53 | } | |
54 | ||
7477477c | 55 | struct QemuSpiceOps qemu_spice = { |
63be30e6 | 56 | .init = qemu_spice_init_stub, |
b192cd1e | 57 | .display_init = qemu_spice_display_init_stub, |
7477477c | 58 | .migrate_info = qemu_spice_migrate_info_stub, |
08ad2626 GH |
59 | .set_passwd = qemu_spice_set_passwd_stub, |
60 | .set_pw_expire = qemu_spice_set_pw_expire_stub, | |
7477477c | 61 | }; |