12e31e210SGerd Hoffmann /* 22e31e210SGerd Hoffmann * Copyright (C) 2010 Red Hat, Inc. 32e31e210SGerd Hoffmann * 42e31e210SGerd Hoffmann * This program is free software; you can redistribute it and/or 52e31e210SGerd Hoffmann * modify it under the terms of the GNU General Public License as 62e31e210SGerd Hoffmann * published by the Free Software Foundation; either version 2 or 72e31e210SGerd Hoffmann * (at your option) version 3 of the License. 82e31e210SGerd Hoffmann * 92e31e210SGerd Hoffmann * This program is distributed in the hope that it will be useful, 102e31e210SGerd Hoffmann * but WITHOUT ANY WARRANTY; without even the implied warranty of 112e31e210SGerd Hoffmann * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 122e31e210SGerd Hoffmann * GNU General Public License for more details. 132e31e210SGerd Hoffmann * 142e31e210SGerd Hoffmann * You should have received a copy of the GNU General Public License 152e31e210SGerd Hoffmann * along with this program; if not, see <http://www.gnu.org/licenses/>. 162e31e210SGerd Hoffmann */ 172e31e210SGerd Hoffmann 182e31e210SGerd Hoffmann #ifndef QEMU_SPICE_MODULE_H 192e31e210SGerd Hoffmann #define QEMU_SPICE_MODULE_H 202e31e210SGerd Hoffmann 21*05b53636SGerd Hoffmann #ifdef CONFIG_SPICE 22*05b53636SGerd Hoffmann #include <spice.h> 23*05b53636SGerd Hoffmann #endif 24*05b53636SGerd Hoffmann 257477477cSGerd Hoffmann struct QemuSpiceOps { 2663be30e6SGerd Hoffmann void (*init)(void); 27b192cd1eSGerd Hoffmann void (*display_init)(void); 287477477cSGerd Hoffmann int (*migrate_info)(const char *h, int p, int t, const char *s); 29*05b53636SGerd Hoffmann #ifdef CONFIG_SPICE 30*05b53636SGerd Hoffmann int (*add_interface)(SpiceBaseInstance *sin); 31*05b53636SGerd Hoffmann #endif 327477477cSGerd Hoffmann }; 337477477cSGerd Hoffmann 342e31e210SGerd Hoffmann extern int using_spice; 357477477cSGerd Hoffmann extern struct QemuSpiceOps qemu_spice; 362e31e210SGerd Hoffmann 372e31e210SGerd Hoffmann #endif 38