qemu-spice.h (98c710f2d5cdf37f29a267352eb1f3c28cbf369d) qemu-spice.h (922a01a013d2270682a188258cbccacfecf8129c)
1/*
2 * Copyright (C) 2010 Red Hat, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 or
7 * (at your option) version 3 of the License.
8 *

--- 9 unchanged lines hidden (view full) ---

18#ifndef QEMU_SPICE_H
19#define QEMU_SPICE_H
20
21#include "qapi/error.h"
22
23#ifdef CONFIG_SPICE
24
25#include <spice.h>
1/*
2 * Copyright (C) 2010 Red Hat, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 or
7 * (at your option) version 3 of the License.
8 *

--- 9 unchanged lines hidden (view full) ---

18#ifndef QEMU_SPICE_H
19#define QEMU_SPICE_H
20
21#include "qapi/error.h"
22
23#ifdef CONFIG_SPICE
24
25#include <spice.h>
26#include "qemu/option.h"
27#include "qemu/config-file.h"
28
29extern int using_spice;
30
31void qemu_spice_init(void);
32void qemu_spice_input_init(void);
33void qemu_spice_audio_init(void);
34void qemu_spice_display_init(void);
35int qemu_spice_display_add_client(int csock, int skipauth, int tls);
36int qemu_spice_add_interface(SpiceBaseInstance *sin);
37bool qemu_spice_have_display_interface(QemuConsole *con);
38int qemu_spice_add_display_interface(QXLInstance *qxlin, QemuConsole *con);
39int qemu_spice_set_passwd(const char *passwd,
40 bool fail_if_connected, bool disconnect_if_connected);
41int qemu_spice_set_pw_expire(time_t expires);
42int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,
43 const char *subject);
44
26#include "qemu/config-file.h"
27
28extern int using_spice;
29
30void qemu_spice_init(void);
31void qemu_spice_input_init(void);
32void qemu_spice_audio_init(void);
33void qemu_spice_display_init(void);
34int qemu_spice_display_add_client(int csock, int skipauth, int tls);
35int qemu_spice_add_interface(SpiceBaseInstance *sin);
36bool qemu_spice_have_display_interface(QemuConsole *con);
37int qemu_spice_add_display_interface(QXLInstance *qxlin, QemuConsole *con);
38int qemu_spice_set_passwd(const char *passwd,
39 bool fail_if_connected, bool disconnect_if_connected);
40int qemu_spice_set_pw_expire(time_t expires);
41int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,
42 const char *subject);
43
44#if !defined(SPICE_SERVER_VERSION) || (SPICE_SERVER_VERSION < 0xc06)
45#define SPICE_NEEDS_SET_MM_TIME 1
46#else
47#define SPICE_NEEDS_SET_MM_TIME 0
48#endif
49
45#if SPICE_SERVER_VERSION >= 0x000c02
46void qemu_spice_register_ports(void);
47#else
50#if SPICE_SERVER_VERSION >= 0x000c02
51void qemu_spice_register_ports(void);
52#else
48static inline CharDriverState *qemu_chr_open_spice_port(const char *name)
53static inline Chardev *qemu_chr_open_spice_port(const char *name)
49{ return NULL; }
50#endif
51
52#else /* CONFIG_SPICE */
53
54#include "qemu/error-report.h"
55
56#define using_spice 0

--- 47 unchanged lines hidden ---
54{ return NULL; }
55#endif
56
57#else /* CONFIG_SPICE */
58
59#include "qemu/error-report.h"
60
61#define using_spice 0

--- 47 unchanged lines hidden ---