2020-10-19 09:52:11 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 or
|
|
|
|
* (at your option) version 3 of the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QEMU_SPICE_MODULE_H
|
|
|
|
#define QEMU_SPICE_MODULE_H
|
|
|
|
|
2020-10-19 09:52:15 +02:00
|
|
|
#ifdef CONFIG_SPICE
|
|
|
|
#include <spice.h>
|
|
|
|
#endif
|
|
|
|
|
2020-10-19 09:52:18 +02:00
|
|
|
typedef struct SpiceInfo SpiceInfo;
|
|
|
|
|
2020-10-19 09:52:12 +02:00
|
|
|
struct QemuSpiceOps {
|
2020-10-19 09:52:13 +02:00
|
|
|
void (*init)(void);
|
2020-10-19 09:52:14 +02:00
|
|
|
void (*display_init)(void);
|
2020-10-19 09:52:12 +02:00
|
|
|
int (*migrate_info)(const char *h, int p, int t, const char *s);
|
2020-10-19 09:52:16 +02:00
|
|
|
int (*set_passwd)(const char *passwd,
|
|
|
|
bool fail_if_connected, bool disconnect_if_connected);
|
|
|
|
int (*set_pw_expire)(time_t expires);
|
2020-10-19 09:52:17 +02:00
|
|
|
int (*display_add_client)(int csock, int skipauth, int tls);
|
2020-10-19 09:52:15 +02:00
|
|
|
#ifdef CONFIG_SPICE
|
|
|
|
int (*add_interface)(SpiceBaseInstance *sin);
|
2020-10-19 09:52:18 +02:00
|
|
|
SpiceInfo* (*qmp_query)(Error **errp);
|
2020-10-19 09:52:15 +02:00
|
|
|
#endif
|
2020-10-19 09:52:12 +02:00
|
|
|
};
|
|
|
|
|
2020-10-19 09:52:11 +02:00
|
|
|
extern int using_spice;
|
2020-10-19 09:52:12 +02:00
|
|
|
extern struct QemuSpiceOps qemu_spice;
|
2020-10-19 09:52:11 +02:00
|
|
|
|
|
|
|
#endif
|