Blame libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.h

Packit a07778
/*
Packit a07778
 * libvirt-gconfig-domain-graphics-spice.h: libvirt domain SPICE confiiguration
Packit a07778
 *
Packit a07778
 * Copyright (C) 2011 Red Hat, Inc.
Packit a07778
 *
Packit a07778
 * This library is free software; you can redistribute it and/or
Packit a07778
 * modify it under the terms of the GNU Lesser General Public
Packit a07778
 * License as published by the Free Software Foundation; either
Packit a07778
 * version 2.1 of the License, or (at your option) any later version.
Packit a07778
 *
Packit a07778
 * This library is distributed in the hope that it will be useful,
Packit a07778
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit a07778
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit a07778
 * Lesser General Public License for more details.
Packit a07778
 *
Packit a07778
 * You should have received a copy of the GNU Lesser General Public
Packit a07778
 * License along with this library. If not, see
Packit a07778
 * <http://www.gnu.org/licenses/>.
Packit a07778
 *
Packit a07778
 * Authors: Christophe Fergeau <cfergeau@gmail.com>
Packit a07778
 *          Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
Packit a07778
 */
Packit a07778
Packit a07778
#if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
Packit a07778
#error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
Packit a07778
#endif
Packit a07778
Packit a07778
#ifndef __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_SPICE_H__
Packit a07778
#define __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_SPICE_H__
Packit a07778
Packit a07778
G_BEGIN_DECLS
Packit a07778
Packit a07778
#define GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE            (gvir_config_domain_graphics_spice_get_type ())
Packit a07778
#define GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE, GVirConfigDomainGraphicsSpice))
Packit a07778
#define GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE, GVirConfigDomainGraphicsSpiceClass))
Packit a07778
#define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE))
Packit a07778
#define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE))
Packit a07778
#define GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE, GVirConfigDomainGraphicsSpiceClass))
Packit a07778
Packit a07778
typedef struct _GVirConfigDomainGraphicsSpice GVirConfigDomainGraphicsSpice;
Packit a07778
typedef struct _GVirConfigDomainGraphicsSpicePrivate GVirConfigDomainGraphicsSpicePrivate;
Packit a07778
typedef struct _GVirConfigDomainGraphicsSpiceClass GVirConfigDomainGraphicsSpiceClass;
Packit a07778
Packit a07778
struct _GVirConfigDomainGraphicsSpice
Packit a07778
{
Packit a07778
    GVirConfigDomainGraphics parent;
Packit a07778
Packit a07778
    GVirConfigDomainGraphicsSpicePrivate *priv;
Packit a07778
Packit a07778
    /* Do not add fields to this struct */
Packit a07778
};
Packit a07778
Packit a07778
struct _GVirConfigDomainGraphicsSpiceClass
Packit a07778
{
Packit a07778
    GVirConfigDomainGraphicsClass parent_class;
Packit a07778
Packit a07778
    gpointer padding[20];
Packit a07778
};
Packit a07778
Packit a07778
typedef enum {
Packit a07778
    GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_AUTO_GLZ, /*< nick=auto_glz >*/
Packit a07778
    GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_AUTO_LZ, /*< nick=auto_lz >*/
Packit a07778
    GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_QUIC,
Packit a07778
    GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_GLZ,
Packit a07778
    GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_LZ,
Packit a07778
    GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_OFF
Packit a07778
} GVirConfigDomainGraphicsSpiceImageCompression;
Packit a07778
Packit a07778
GType gvir_config_domain_graphics_spice_get_type(void);
Packit a07778
Packit a07778
GVirConfigDomainGraphicsSpice *gvir_config_domain_graphics_spice_new(void);
Packit a07778
GVirConfigDomainGraphicsSpice *gvir_config_domain_graphics_spice_new_from_xml(const gchar *xml,
Packit a07778
                                                                              GError **error);
Packit a07778
Packit a07778
void gvir_config_domain_graphics_spice_set_autoport(GVirConfigDomainGraphicsSpice *graphics,
Packit a07778
                                                    gboolean autoport);
Packit a07778
Packit a07778
void gvir_config_domain_graphics_spice_set_password(GVirConfigDomainGraphicsSpice *graphics,
Packit a07778
                                                    const char *password);
Packit a07778
Packit a07778
int gvir_config_domain_graphics_spice_get_port(GVirConfigDomainGraphicsSpice *graphics);
Packit a07778
void gvir_config_domain_graphics_spice_set_port(GVirConfigDomainGraphicsSpice *graphics,
Packit a07778
                                                int port);
Packit a07778
Packit a07778
void gvir_config_domain_graphics_spice_set_tls_port(GVirConfigDomainGraphicsSpice *graphics,
Packit a07778
                                                    int port);
Packit a07778
Packit a07778
void gvir_config_domain_graphics_spice_set_image_compression
Packit a07778
                        (GVirConfigDomainGraphicsSpice *graphics,
Packit a07778
                         GVirConfigDomainGraphicsSpiceImageCompression compression);
Packit a07778
int
Packit a07778
gvir_config_domain_graphics_spice_get_image_compression
Packit a07778
                        (GVirConfigDomainGraphicsSpice *graphics);
Packit a07778
Packit a07778
void gvir_config_domain_graphics_spice_set_gl(GVirConfigDomainGraphicsSpice *graphics,
Packit a07778
                                              gboolean gl);
Packit a07778
Packit a07778
G_END_DECLS
Packit a07778
Packit a07778
#endif /* __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_SPICE_H__ */