/* ovirt-machine.c generated by valac 0.20.0.2-fd7ed, the Vala compiler
 * generated from ovirt-machine.vala, do not modify */

/* This file is part of GNOME Boxes. License: LGPLv2+*/

#include <glib.h>
#include <glib-object.h>
#include <clutter/clutter.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <govirt/govirt.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>


#define BOXES_TYPE_UI (boxes_ui_get_type ())
#define BOXES_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UI, BoxesUI))
#define BOXES_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_UI, BoxesUIClass))
#define BOXES_IS_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UI))
#define BOXES_IS_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_UI))
#define BOXES_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_UI, BoxesUIClass))

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIClass BoxesUIClass;
typedef struct _BoxesUIPrivate BoxesUIPrivate;

#define BOXES_TYPE_COLLECTION_ITEM (boxes_collection_item_get_type ())
#define BOXES_COLLECTION_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItem))
#define BOXES_COLLECTION_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItemClass))
#define BOXES_IS_COLLECTION_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_ITEM))
#define BOXES_IS_COLLECTION_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_ITEM))
#define BOXES_COLLECTION_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItemClass))

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;
typedef struct _BoxesCollectionItemPrivate BoxesCollectionItemPrivate;

#define BOXES_TYPE_IPROPERTIES_PROVIDER (boxes_iproperties_provider_get_type ())
#define BOXES_IPROPERTIES_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER, BoxesIPropertiesProvider))
#define BOXES_IS_IPROPERTIES_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER))
#define BOXES_IPROPERTIES_PROVIDER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER, BoxesIPropertiesProviderIface))

typedef struct _BoxesIPropertiesProvider BoxesIPropertiesProvider;
typedef struct _BoxesIPropertiesProviderIface BoxesIPropertiesProviderIface;

#define BOXES_TYPE_PROPERTIES_PAGE (boxes_properties_page_get_type ())

#define TYPE_PROPERTY_CREATION_FLAG (property_creation_flag_get_type ())

#define BOXES_TYPE_PROPERTY (boxes_property_get_type ())
#define BOXES_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTY, BoxesProperty))
#define BOXES_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTY, BoxesPropertyClass))
#define BOXES_IS_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTY))
#define BOXES_IS_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTY))
#define BOXES_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTY, BoxesPropertyClass))

typedef struct _BoxesProperty BoxesProperty;
typedef struct _BoxesPropertyClass BoxesPropertyClass;

#define BOXES_TYPE_MACHINE (boxes_machine_get_type ())
#define BOXES_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MACHINE, BoxesMachine))
#define BOXES_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MACHINE, BoxesMachineClass))
#define BOXES_IS_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MACHINE))
#define BOXES_IS_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MACHINE))
#define BOXES_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MACHINE, BoxesMachineClass))

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;
typedef struct _BoxesMachinePrivate BoxesMachinePrivate;

#define BOXES_MACHINE_TYPE_CONNECT_FLAGS (boxes_machine_connect_flags_get_type ())

#define BOXES_TYPE_OVIRT_MACHINE (boxes_ovirt_machine_get_type ())
#define BOXES_OVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachine))
#define BOXES_OVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachineClass))
#define BOXES_IS_OVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_OVIRT_MACHINE))
#define BOXES_IS_OVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_OVIRT_MACHINE))
#define BOXES_OVIRT_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachineClass))

typedef struct _BoxesOvirtMachine BoxesOvirtMachine;
typedef struct _BoxesOvirtMachineClass BoxesOvirtMachineClass;
typedef struct _BoxesOvirtMachinePrivate BoxesOvirtMachinePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define BOXES_TYPE_DISPLAY (boxes_display_get_type ())
#define BOXES_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY, BoxesDisplay))
#define BOXES_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY, BoxesDisplayClass))
#define BOXES_IS_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY))
#define BOXES_IS_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY))
#define BOXES_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY, BoxesDisplayClass))

typedef struct _BoxesDisplay BoxesDisplay;
typedef struct _BoxesDisplayClass BoxesDisplayClass;

#define BOXES_MACHINE_TYPE_MACHINE_STATE (boxes_machine_machine_state_get_type ())
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesOvirtMachineConnectDisplayData BoxesOvirtMachineConnectDisplayData;

#define BOXES_TYPE_STRING_PROPERTY (boxes_string_property_get_type ())
#define BOXES_STRING_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_STRING_PROPERTY, BoxesStringProperty))
#define BOXES_STRING_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_STRING_PROPERTY, BoxesStringPropertyClass))
#define BOXES_IS_STRING_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_STRING_PROPERTY))
#define BOXES_IS_STRING_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_STRING_PROPERTY))
#define BOXES_STRING_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_STRING_PROPERTY, BoxesStringPropertyClass))

typedef struct _BoxesStringProperty BoxesStringProperty;
typedef struct _BoxesStringPropertyClass BoxesStringPropertyClass;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

#define BOXES_TYPE_SPICE_DISPLAY (boxes_spice_display_get_type ())
#define BOXES_SPICE_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplay))
#define BOXES_SPICE_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplayClass))
#define BOXES_IS_SPICE_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SPICE_DISPLAY))
#define BOXES_IS_SPICE_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SPICE_DISPLAY))
#define BOXES_SPICE_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplayClass))

typedef struct _BoxesSpiceDisplay BoxesSpiceDisplay;
typedef struct _BoxesSpiceDisplayClass BoxesSpiceDisplayClass;
#define _g_byte_array_unref0(var) ((var == NULL) ? NULL : (var = (g_byte_array_unref (var), NULL)))

#define BOXES_TYPE_VNC_DISPLAY (boxes_vnc_display_get_type ())
#define BOXES_VNC_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplay))
#define BOXES_VNC_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplayClass))
#define BOXES_IS_VNC_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_VNC_DISPLAY))
#define BOXES_IS_VNC_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_VNC_DISPLAY))
#define BOXES_VNC_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplayClass))

typedef struct _BoxesVncDisplay BoxesVncDisplay;
typedef struct _BoxesVncDisplayClass BoxesVncDisplayClass;

struct _BoxesUI {
	GObject parent_instance;
	BoxesUIPrivate * priv;
};

struct _BoxesUIClass {
	GObjectClass parent_class;
	void (*ui_state_changed) (BoxesUI* self);
	ClutterActor* (*get_actor) (BoxesUI* self);
};

struct _BoxesCollectionItem {
	BoxesUI parent_instance;
	BoxesCollectionItemPrivate * priv;
};

struct _BoxesCollectionItemClass {
	BoxesUIClass parent_class;
	gint (*compare) (BoxesCollectionItem* self, BoxesCollectionItem* other);
};

typedef enum  {
	BOXES_PROPERTIES_PAGE_LOGIN,
	BOXES_PROPERTIES_PAGE_SYSTEM,
	BOXES_PROPERTIES_PAGE_DISPLAY,
	BOXES_PROPERTIES_PAGE_DEVICES,
	BOXES_PROPERTIES_PAGE_LAST
} BoxesPropertiesPage;

typedef enum  {
	PROPERTY_CREATION_FLAG_NONE = 0,
	PROPERTY_CREATION_FLAG_NO_USB = 1 << 0
} PropertyCreationFlag;

struct _BoxesIPropertiesProviderIface {
	GTypeInterface parent_iface;
	GList* (*get_properties) (BoxesIPropertiesProvider* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
};

typedef enum  {
	BOXES_MACHINE_CONNECT_FLAGS_NONE = 0,
	BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE = 1 << 0
} BoxesMachineConnectFlags;

struct _BoxesMachine {
	BoxesCollectionItem parent_instance;
	BoxesMachinePrivate * priv;
	BoxesCollectionSource* source;
	BoxesBoxConfig* config;
	gboolean stay_on_display;
	gboolean suspend_at_exit;
	gboolean deleted;
};

struct _BoxesMachineClass {
	BoxesCollectionItemClass parent_class;
	void (*save_real) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*save_real_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*take_screenshot) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GdkPixbuf* (*take_screenshot_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	GList* (*get_properties) (BoxesMachine* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
	void (*connect_display) (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*connect_display_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*disconnect_display) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
};

struct _BoxesOvirtMachine {
	BoxesMachine parent_instance;
	BoxesOvirtMachinePrivate * priv;
};

struct _BoxesOvirtMachineClass {
	BoxesMachineClass parent_class;
};

struct _BoxesOvirtMachinePrivate {
	OvirtVm* vm;
	OvirtProxy* proxy;
};

typedef enum  {
	BOXES_MACHINE_MACHINE_STATE_UNKNOWN,
	BOXES_MACHINE_MACHINE_STATE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_RUNNING,
	BOXES_MACHINE_MACHINE_STATE_PAUSED,
	BOXES_MACHINE_MACHINE_STATE_SAVED,
	BOXES_MACHINE_MACHINE_STATE_SLEEPING
} BoxesMachineMachineState;

struct _BoxesOvirtMachineConnectDisplayData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesOvirtMachine* self;
	BoxesMachineConnectFlags flags;
	BoxesDisplay* _tmp0_;
	BoxesDisplay* _tmp1_;
	BoxesMachineMachineState _tmp2_;
	BoxesMachineMachineState _tmp3_;
	OvirtVm* _tmp4_;
	OvirtProxy* _tmp5_;
	GCancellable* _tmp6_;
	GCancellable* _tmp7_;
	GError* _error_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	GError* _vala1__error_;
	OvirtVm* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	GError* _tmp14_;
	const gchar* _tmp15_;
	GError* _tmp16_;
	GError* _tmp17_;
	BoxesMachineMachineState _tmp18_;
	BoxesMachineMachineState _tmp19_;
	OvirtVm* _tmp20_;
	gchar* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	GError* _tmp24_;
	GError* _tmp25_;
	BoxesDisplay* _tmp26_;
	BoxesDisplay* _tmp27_;
	BoxesDisplay* _tmp28_;
	OvirtVm* _tmp29_;
	OvirtVmDisplay* _tmp30_;
	OvirtVmDisplay* _tmp31_;
	OvirtVmDisplay* _tmp32_;
	OvirtVmDisplayType _tmp33_;
	OvirtVmDisplayType _tmp34_;
	gboolean _tmp35_;
	OvirtVm* _tmp36_;
	OvirtProxy* _tmp37_;
	GCancellable* _tmp38_;
	GCancellable* _tmp39_;
	BoxesDisplay* _tmp40_;
	BoxesDisplay* _tmp41_;
	OvirtVm* _tmp42_;
	OvirtVmDisplay* _tmp43_;
	OvirtVmDisplay* _tmp44_;
	OvirtVmDisplay* _tmp45_;
	gchar* _tmp46_;
	gchar* _tmp47_;
	gchar* _tmp48_;
	BoxesDisplay* _tmp49_;
	BoxesDisplay* _tmp50_;
	GError* _vala2__error_;
	const gchar* _tmp51_;
	const gchar* _tmp52_;
	GError* e;
	GError* _tmp53_;
	const gchar* _tmp54_;
	GError* _tmp55_;
	GError * _inner_error_;
};


static gpointer boxes_ovirt_machine_parent_class = NULL;

GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_properties_page_get_type (void) G_GNUC_CONST;
GType property_creation_flag_get_type (void) G_GNUC_CONST;
GType boxes_property_get_type (void) G_GNUC_CONST;
GType boxes_iproperties_provider_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
GType boxes_machine_connect_flags_get_type (void) G_GNUC_CONST;
GType boxes_ovirt_machine_get_type (void) G_GNUC_CONST;
#define BOXES_OVIRT_MACHINE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachinePrivate))
enum  {
	BOXES_OVIRT_MACHINE_DUMMY_PROPERTY
};
BoxesOvirtMachine* boxes_ovirt_machine_new (BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm, GError** error);
BoxesOvirtMachine* boxes_ovirt_machine_construct (GType object_type, BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm, GError** error);
BoxesMachine* boxes_machine_construct (GType object_type, BoxesCollectionSource* source, const gchar* name);
const gchar* boxes_collection_item_get_name (BoxesCollectionItem* self);
void boxes_machine_create_display_config (BoxesMachine* self, const gchar* uuid);
static void boxes_ovirt_machine_update_state (BoxesOvirtMachine* self);
void boxes_machine_load_screenshot (BoxesMachine* self);
void boxes_machine_set_screenshot_enable (BoxesMachine* self, gboolean enable);
static void boxes_ovirt_machine_real_connect_display_data_free (gpointer _data);
static void boxes_ovirt_machine_real_connect_display (BoxesMachine* base, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_ovirt_machine_real_connect_display_co (BoxesOvirtMachineConnectDisplayData* _data_);
GType boxes_display_get_type (void) G_GNUC_CONST;
BoxesDisplay* boxes_machine_get_display (BoxesMachine* self);
GType boxes_machine_machine_state_get_type (void) G_GNUC_CONST;
BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self);
GCancellable* boxes_machine_get_connecting_cancellable (BoxesMachine* self);
static void boxes_ovirt_machine_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static BoxesDisplay* boxes_ovirt_machine_create_display_connection (BoxesOvirtMachine* self, GError** error);
void boxes_machine_set_display (BoxesMachine* self, BoxesDisplay* value);
void boxes_display_set_password (BoxesDisplay* self, const gchar* value);
void boxes_display_connect_it (BoxesDisplay* self, GError** error);
static GList* boxes_ovirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page, PropertyCreationFlag* flags);
GType boxes_string_property_get_type (void) G_GNUC_CONST;
BoxesStringProperty* boxes_iproperties_provider_add_string_property (BoxesIPropertiesProvider* self, GList** list, const gchar* name, const gchar* value);
gchar* boxes_display_get_uri (BoxesDisplay* self);
const gchar* boxes_display_get_protocol (BoxesDisplay* self);
GList* boxes_display_get_properties (BoxesDisplay* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
BoxesSpiceDisplay* boxes_spice_display_new (BoxesBoxConfig* config, const gchar* host, gint port, gint tls_port);
BoxesSpiceDisplay* boxes_spice_display_construct (GType object_type, BoxesBoxConfig* config, const gchar* host, gint port, gint tls_port);
GType boxes_spice_display_get_type (void) G_GNUC_CONST;
void boxes_spice_display_set_ca_cert (BoxesSpiceDisplay* self, GByteArray* value);
BoxesVncDisplay* boxes_vnc_display_new (BoxesBoxConfig* config, const gchar* host, gint port);
BoxesVncDisplay* boxes_vnc_display_construct (GType object_type, BoxesBoxConfig* config, const gchar* host, gint port);
GType boxes_vnc_display_get_type (void) G_GNUC_CONST;
void boxes_machine_set_state (BoxesMachine* self, BoxesMachineMachineState value);
static void boxes_ovirt_machine_finalize (GObject* obj);


static gpointer _g_object_ref0 (gpointer self) {
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	return self ? g_object_ref (self) : NULL;
#line 355 "ovirt-machine.c"
}


BoxesOvirtMachine* boxes_ovirt_machine_construct (GType object_type, BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm, GError** error) {
	BoxesOvirtMachine * self = NULL;
	BoxesCollectionSource* _tmp0_;
	OvirtVm* _tmp1_;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_;
	gchar* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	OvirtVm* _tmp9_;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_;
	gchar* _tmp12_;
	OvirtProxy* _tmp13_;
	OvirtProxy* _tmp14_;
	OvirtVm* _tmp15_;
	OvirtVm* _tmp16_;
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_return_val_if_fail (source != NULL, NULL);
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_return_val_if_fail (proxy != NULL, NULL);
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_return_val_if_fail (vm != NULL, NULL);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp0_ = source;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp1_ = vm;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp1_, "name", &_tmp2_, NULL);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp4_ = _tmp3_;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self = (BoxesOvirtMachine*) boxes_machine_construct (object_type, _tmp0_, _tmp4_);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_free0 (_tmp4_);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp5_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp6_ = _tmp5_;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp7_ = g_strconcat ("new ovirt machine: ", _tmp6_, NULL);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp8_ = _tmp7_;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_debug ("ovirt-machine.vala:14: %s", _tmp8_);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_free0 (_tmp8_);
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp9_ = vm;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp9_, "uuid", &_tmp10_, NULL);
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp11_ = _tmp10_;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp12_ = _tmp11_;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_machine_create_display_config ((BoxesMachine*) self, _tmp12_);
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_free0 (_tmp12_);
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp13_ = proxy;
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp14_ = _g_object_ref0 (_tmp13_);
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (self->priv->proxy);
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self->priv->proxy = _tmp14_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp15_ = vm;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp16_ = _g_object_ref0 (_tmp15_);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (self->priv->vm);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self->priv->vm = _tmp16_;
#line 19 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_ovirt_machine_update_state (self);
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_machine_load_screenshot ((BoxesMachine*) self);
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_machine_set_screenshot_enable ((BoxesMachine*) self, TRUE);
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	return self;
#line 446 "ovirt-machine.c"
}


BoxesOvirtMachine* boxes_ovirt_machine_new (BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm, GError** error) {
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	return boxes_ovirt_machine_construct (BOXES_TYPE_OVIRT_MACHINE, source, proxy, vm, error);
#line 453 "ovirt-machine.c"
}


static void boxes_ovirt_machine_real_connect_display_data_free (gpointer _data) {
	BoxesOvirtMachineConnectDisplayData* _data_;
	_data_ = _data;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_slice_free (BoxesOvirtMachineConnectDisplayData, _data_);
#line 464 "ovirt-machine.c"
}


static void boxes_ovirt_machine_real_connect_display (BoxesMachine* base, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesOvirtMachine * self;
	BoxesOvirtMachineConnectDisplayData* _data_;
	BoxesOvirtMachine* _tmp0_;
	BoxesMachineConnectFlags _tmp1_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self = (BoxesOvirtMachine*) base;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_ = g_slice_new0 (BoxesOvirtMachineConnectDisplayData);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_ovirt_machine_real_connect_display);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_ovirt_machine_real_connect_display_data_free);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp1_ = flags;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->flags = _tmp1_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_ovirt_machine_real_connect_display_co (_data_);
#line 491 "ovirt-machine.c"
}


static void boxes_ovirt_machine_real_connect_display_finish (BoxesMachine* base, GAsyncResult* _res_, GError** error) {
	BoxesOvirtMachineConnectDisplayData* _data_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		return;
#line 501 "ovirt-machine.c"
	}
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 505 "ovirt-machine.c"
}


static void boxes_ovirt_machine_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesOvirtMachineConnectDisplayData* _data_;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_ = _user_data_;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_res_ = _res_;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_ovirt_machine_real_connect_display_co (_data_);
#line 519 "ovirt-machine.c"
}


static gboolean boxes_ovirt_machine_real_connect_display_co (BoxesOvirtMachineConnectDisplayData* _data_) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	switch (_data_->_state_) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case 0:
#line 528 "ovirt-machine.c"
		goto _state_0;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case 1:
#line 532 "ovirt-machine.c"
		goto _state_1;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case 2:
#line 536 "ovirt-machine.c"
		goto _state_2;
		default:
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_assert_not_reached ();
#line 541 "ovirt-machine.c"
	}
	_state_0:
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp0_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_data_->_tmp1_ != NULL) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 554 "ovirt-machine.c"
		} else {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 558 "ovirt-machine.c"
		}
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		return FALSE;
#line 564 "ovirt-machine.c"
	}
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp2_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_data_->_tmp3_ == BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 572 "ovirt-machine.c"
		{
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp4_ = _data_->self->priv->vm;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp5_ = _data_->self->priv->proxy;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp6_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_state_ = 1;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			ovirt_vm_start_async (_data_->_tmp4_, _data_->_tmp5_, _data_->_tmp7_, boxes_ovirt_machine_connect_display_ready, _data_);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return FALSE;
#line 588 "ovirt-machine.c"
			_state_1:
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			ovirt_vm_start_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
				if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 596 "ovirt-machine.c"
					goto __catch110_g_io_error_cancelled;
				}
				goto __catch110_g_error;
			}
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_ovirt_machine_update_state (_data_->self);
#line 603 "ovirt-machine.c"
		}
		goto __finally110;
		__catch110_g_io_error_cancelled:
		{
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_error_ = _data_->_inner_error_;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_inner_error_ = NULL;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp8_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp9_ = _data_->_tmp8_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_debug ("ovirt-machine.vala:34: connection to %s was cancelled", _data_->_tmp9_);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_error_free0 (_data_->_error_);
#line 620 "ovirt-machine.c"
		}
		goto __finally110;
		__catch110_g_error:
		{
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_vala1__error_ = _data_->_inner_error_;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_inner_error_ = NULL;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp10_ = _data_->self->priv->vm;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp11_ = NULL;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_data_->_tmp10_, "name", &_data_->_tmp11_, NULL);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp12_ = _data_->_tmp11_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp13_ = _data_->_tmp12_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp14_ = _data_->_vala1__error_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp15_ = _data_->_tmp14_->message;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp16_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "Couldn't start oVirt VM '%s': %s", _data_->_tmp13_, _data_->_tmp15_);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp17_ = _data_->_tmp16_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_data_->_tmp13_);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_inner_error_ = _data_->_tmp17_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_error_free0 (_data_->_vala1__error_);
#line 653 "ovirt-machine.c"
			goto __finally110;
		}
		__finally110:
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 667 "ovirt-machine.c"
			} else {
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 671 "ovirt-machine.c"
			}
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return FALSE;
#line 677 "ovirt-machine.c"
		}
	}
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp18_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp19_ = _data_->_tmp18_;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_data_->_tmp19_ != BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp20_ = _data_->self->priv->vm;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp21_ = NULL;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get (_data_->_tmp20_, "name", &_data_->_tmp21_, NULL);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp22_ = _data_->_tmp21_;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp23_ = _data_->_tmp22_;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp24_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "oVirt VM '%s' is not RUNNING", _data_->_tmp23_);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp25_ = _data_->_tmp24_;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_free0 (_data_->_tmp23_);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_inner_error_ = _data_->_tmp25_;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 712 "ovirt-machine.c"
		} else {
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 716 "ovirt-machine.c"
		}
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		return FALSE;
#line 722 "ovirt-machine.c"
	}
	{
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp26_ = NULL;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp26_ = boxes_ovirt_machine_create_display_connection (_data_->self, &_data_->_inner_error_);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp27_ = _data_->_tmp26_;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 735 "ovirt-machine.c"
				goto __catch111_g_io_error_cancelled;
			}
			goto __catch111_g_error;
		}
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp28_ = _data_->_tmp27_;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		boxes_machine_set_display ((BoxesMachine*) _data_->self, _data_->_tmp28_);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_object_unref0 (_data_->_tmp28_);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp29_ = _data_->self->priv->vm;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp30_ = NULL;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get (_data_->_tmp29_, "display", &_data_->_tmp30_, NULL);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp31_ = _data_->_tmp30_;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp32_ = _data_->_tmp31_;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp33_ = 0;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get (_data_->_tmp32_, "type", &_data_->_tmp33_, NULL);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp34_ = _data_->_tmp33_;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp35_ = _data_->_tmp34_ == OVIRT_VM_DISPLAY_SPICE;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_object_unref0 (_data_->_tmp32_);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_tmp35_) {
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp36_ = _data_->self->priv->vm;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp37_ = _data_->self->priv->proxy;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp38_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp39_ = _data_->_tmp38_;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_state_ = 2;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			ovirt_vm_get_ticket_async (_data_->_tmp36_, _data_->_tmp37_, _data_->_tmp39_, boxes_ovirt_machine_connect_display_ready, _data_);
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return FALSE;
#line 782 "ovirt-machine.c"
			_state_2:
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			ovirt_vm_get_ticket_finish (_data_->_tmp36_, _data_->_res_, &_data_->_inner_error_);
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
				if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 790 "ovirt-machine.c"
					goto __catch111_g_io_error_cancelled;
				}
				goto __catch111_g_error;
			}
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp40_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp41_ = _data_->_tmp40_;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp42_ = _data_->self->priv->vm;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp43_ = NULL;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_data_->_tmp42_, "display", &_data_->_tmp43_, NULL);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp44_ = _data_->_tmp43_;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp45_ = _data_->_tmp44_;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp46_ = NULL;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_data_->_tmp45_, "ticket", &_data_->_tmp46_, NULL);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp47_ = _data_->_tmp46_;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp48_ = _data_->_tmp47_;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_display_set_password (_data_->_tmp41_, _data_->_tmp48_);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_data_->_tmp48_);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_data_->_tmp45_);
#line 823 "ovirt-machine.c"
		}
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp49_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp50_ = _data_->_tmp49_;
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		boxes_display_connect_it (_data_->_tmp50_, &_data_->_inner_error_);
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 835 "ovirt-machine.c"
				goto __catch111_g_io_error_cancelled;
			}
			goto __catch111_g_error;
		}
	}
	goto __finally111;
	__catch111_g_io_error_cancelled:
	{
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_vala2__error_ = _data_->_inner_error_;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp51_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp52_ = _data_->_tmp51_;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_debug ("ovirt-machine.vala:51: connection to %s was cancelled", _data_->_tmp52_);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_error_free0 (_data_->_vala2__error_);
#line 856 "ovirt-machine.c"
	}
	goto __finally111;
	__catch111_g_error:
	{
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->e = _data_->_inner_error_;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp53_ = _data_->e;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp54_ = _data_->_tmp53_->message;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp55_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "Error opening display: %s", _data_->_tmp54_);
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_inner_error_ = _data_->_tmp55_;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_error_free0 (_data_->e);
#line 875 "ovirt-machine.c"
		goto __finally111;
	}
	__finally111:
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 889 "ovirt-machine.c"
		} else {
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 893 "ovirt-machine.c"
		}
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		return FALSE;
#line 899 "ovirt-machine.c"
	}
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 905 "ovirt-machine.c"
	} else {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 909 "ovirt-machine.c"
	}
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	return FALSE;
#line 915 "ovirt-machine.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 922 "ovirt-machine.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_list_free (self);
#line 931 "ovirt-machine.c"
}


static GList* boxes_ovirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page, PropertyCreationFlag* flags) {
	BoxesOvirtMachine * self;
	GList* result = NULL;
	GList* list;
	BoxesPropertiesPage _tmp0_;
	BoxesDisplay* _tmp23_;
	BoxesDisplay* _tmp24_;
	BoxesPropertiesPage _tmp25_;
	GList* _tmp26_ = NULL;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self = (BoxesOvirtMachine*) base;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	list = NULL;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp0_ = page;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	switch (_tmp0_) {
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_LOGIN:
#line 954 "ovirt-machine.c"
		{
			const gchar* _tmp1_ = NULL;
			BoxesCollectionSource* _tmp2_;
			gchar* _tmp3_;
			gchar* _tmp4_;
			gchar* _tmp5_;
			BoxesStringProperty* _tmp6_ = NULL;
			BoxesStringProperty* _tmp7_;
			const gchar* _tmp8_ = NULL;
			BoxesDisplay* _tmp9_;
			BoxesDisplay* _tmp10_;
			gchar* _tmp11_;
			gchar* _tmp12_;
			gchar* _tmp13_;
			BoxesStringProperty* _tmp14_ = NULL;
			BoxesStringProperty* _tmp15_;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp1_ = _ ("Virtualizer");
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp2_ = ((BoxesMachine*) self)->source;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp3_ = boxes_collection_source_get_uri (_tmp2_);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp4_ = _tmp3_;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp5_ = _tmp4_;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp6_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp1_, _tmp5_);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp7_ = _tmp6_;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp7_);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp5_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp8_ = _ ("URI");
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp9_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp10_ = _tmp9_;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp11_ = boxes_display_get_uri (_tmp10_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp12_ = _tmp11_;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp13_ = _tmp12_;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp14_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp8_, _tmp13_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp15_ = _tmp14_;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp15_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp13_);
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			break;
#line 1011 "ovirt-machine.c"
		}
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_DISPLAY:
#line 1015 "ovirt-machine.c"
		{
			const gchar* _tmp16_ = NULL;
			BoxesDisplay* _tmp17_;
			BoxesDisplay* _tmp18_;
			const gchar* _tmp19_;
			const gchar* _tmp20_;
			BoxesStringProperty* _tmp21_ = NULL;
			BoxesStringProperty* _tmp22_;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp16_ = _ ("Protocol");
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp17_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp18_ = _tmp17_;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp19_ = boxes_display_get_protocol (_tmp18_);
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp20_ = _tmp19_;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp21_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp16_, _tmp20_);
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp22_ = _tmp21_;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp22_);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			break;
#line 1042 "ovirt-machine.c"
		}
		default:
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		break;
#line 1047 "ovirt-machine.c"
	}
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp23_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp24_ = _tmp23_;
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp25_ = page;
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp26_ = boxes_display_get_properties (_tmp24_, _tmp25_, flags);
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	list = g_list_concat (list, _tmp26_);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	result = list;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	return result;
#line 1063 "ovirt-machine.c"
}


static BoxesDisplay* boxes_ovirt_machine_create_display_connection (BoxesOvirtMachine* self, GError** error) {
	BoxesDisplay* result = NULL;
	gboolean _tmp0_ = FALSE;
	OvirtVm* _tmp1_;
	OvirtVmDisplay* _tmp2_ = NULL;
	OvirtVmDisplay* _tmp3_;
	OvirtVmDisplay* _tmp4_;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gboolean _tmp8_;
	gboolean _tmp16_;
	OvirtVm* _tmp23_;
	OvirtVmDisplay* _tmp24_ = NULL;
	OvirtVmDisplay* _tmp25_;
	OvirtVmDisplay* _tmp26_;
	OvirtVmDisplayType _tmp27_ = 0;
	OvirtVmDisplayType _tmp28_;
	OvirtVmDisplayType _tmp29_;
	GError * _inner_error_ = NULL;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp1_ = self->priv->vm;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp1_, "display", &_tmp2_, NULL);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp4_ = _tmp3_;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp4_, "address", &_tmp5_, NULL);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp6_ = _tmp5_;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp7_ = _tmp6_;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp8_ = _tmp7_ == NULL;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_free0 (_tmp7_);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (_tmp4_);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_tmp8_) {
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp0_ = TRUE;
#line 1113 "ovirt-machine.c"
	} else {
		OvirtVm* _tmp9_;
		OvirtVmDisplay* _tmp10_ = NULL;
		OvirtVmDisplay* _tmp11_;
		OvirtVmDisplay* _tmp12_;
		gchar* _tmp13_ = NULL;
		gchar* _tmp14_;
		gchar* _tmp15_;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp9_ = self->priv->vm;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get (_tmp9_, "display", &_tmp10_, NULL);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp11_ = _tmp10_;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp12_ = _tmp11_;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get (_tmp12_, "address", &_tmp13_, NULL);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp14_ = _tmp13_;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp15_ = _tmp14_;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp0_ = g_strcmp0 (_tmp15_, "") == 0;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_free0 (_tmp15_);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_object_unref0 (_tmp12_);
#line 1142 "ovirt-machine.c"
	}
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp16_ = _tmp0_;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_tmp16_) {
#line 1148 "ovirt-machine.c"
		OvirtVm* _tmp17_;
		gchar* _tmp18_ = NULL;
		gchar* _tmp19_;
		gchar* _tmp20_;
		GError* _tmp21_;
		GError* _tmp22_;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp17_ = self->priv->vm;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get (_tmp17_, "name", &_tmp18_, NULL);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp19_ = _tmp18_;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp20_ = _tmp19_;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp21_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "empty display address for %s", _tmp20_);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp22_ = _tmp21_;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_free0 (_tmp20_);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_inner_error_ = _tmp22_;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		return NULL;
#line 1175 "ovirt-machine.c"
	}
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp23_ = self->priv->vm;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp23_, "display", &_tmp24_, NULL);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp25_ = _tmp24_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp26_ = _tmp25_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp26_, "type", &_tmp27_, NULL);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp28_ = _tmp27_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp29_ = _tmp28_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (_tmp26_);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	switch (_tmp29_) {
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case OVIRT_VM_DISPLAY_SPICE:
#line 1197 "ovirt-machine.c"
		{
			BoxesBoxConfig* _tmp30_;
			OvirtVm* _tmp31_;
			OvirtVmDisplay* _tmp32_ = NULL;
			OvirtVmDisplay* _tmp33_;
			OvirtVmDisplay* _tmp34_;
			gchar* _tmp35_ = NULL;
			gchar* _tmp36_;
			gchar* _tmp37_;
			OvirtVm* _tmp38_;
			OvirtVmDisplay* _tmp39_ = NULL;
			OvirtVmDisplay* _tmp40_;
			OvirtVmDisplay* _tmp41_;
			guint _tmp42_ = 0U;
			guint _tmp43_;
			OvirtVm* _tmp44_;
			OvirtVmDisplay* _tmp45_ = NULL;
			OvirtVmDisplay* _tmp46_;
			OvirtVmDisplay* _tmp47_;
			guint _tmp48_ = 0U;
			guint _tmp49_;
			BoxesSpiceDisplay* _tmp50_;
			BoxesSpiceDisplay* _tmp51_;
			BoxesSpiceDisplay* display;
			BoxesSpiceDisplay* _tmp52_;
			OvirtProxy* _tmp53_;
			GByteArray* _tmp54_ = NULL;
			GByteArray* _tmp55_;
			GByteArray* _tmp56_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp30_ = ((BoxesMachine*) self)->config;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp31_ = self->priv->vm;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp31_, "display", &_tmp32_, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp33_ = _tmp32_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp34_ = _tmp33_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp34_, "address", &_tmp35_, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp36_ = _tmp35_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp37_ = _tmp36_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp38_ = self->priv->vm;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp38_, "display", &_tmp39_, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp40_ = _tmp39_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp41_ = _tmp40_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp41_, "port", &_tmp42_, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp43_ = _tmp42_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp44_ = self->priv->vm;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp44_, "display", &_tmp45_, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp46_ = _tmp45_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp47_ = _tmp46_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp47_, "secure-port", &_tmp48_, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp49_ = _tmp48_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp50_ = boxes_spice_display_new (_tmp30_, _tmp37_, (gint) _tmp43_, (gint) _tmp49_);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp51_ = _tmp50_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp47_);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp41_);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp37_);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp34_);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			display = _tmp51_;
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp52_ = display;
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp53_ = self->priv->proxy;
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp53_, "ca-cert", &_tmp54_, NULL);
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp55_ = _tmp54_;
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp56_ = _tmp55_;
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_spice_display_set_ca_cert (_tmp52_, _tmp56_);
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_byte_array_unref0 (_tmp56_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			result = (BoxesDisplay*) display;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return result;
#line 1299 "ovirt-machine.c"
		}
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case OVIRT_VM_DISPLAY_VNC:
#line 1303 "ovirt-machine.c"
		{
			BoxesBoxConfig* _tmp57_;
			OvirtVm* _tmp58_;
			OvirtVmDisplay* _tmp59_ = NULL;
			OvirtVmDisplay* _tmp60_;
			OvirtVmDisplay* _tmp61_;
			gchar* _tmp62_ = NULL;
			gchar* _tmp63_;
			gchar* _tmp64_;
			OvirtVm* _tmp65_;
			OvirtVmDisplay* _tmp66_ = NULL;
			OvirtVmDisplay* _tmp67_;
			OvirtVmDisplay* _tmp68_;
			guint _tmp69_ = 0U;
			guint _tmp70_;
			BoxesVncDisplay* _tmp71_;
			BoxesDisplay* _tmp72_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp57_ = ((BoxesMachine*) self)->config;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp58_ = self->priv->vm;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp58_, "display", &_tmp59_, NULL);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp60_ = _tmp59_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp61_ = _tmp60_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp61_, "address", &_tmp62_, NULL);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp63_ = _tmp62_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp64_ = _tmp63_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp65_ = self->priv->vm;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp65_, "display", &_tmp66_, NULL);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp67_ = _tmp66_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp68_ = _tmp67_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp68_, "port", &_tmp69_, NULL);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp70_ = _tmp69_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp71_ = boxes_vnc_display_new (_tmp57_, _tmp64_, (gint) _tmp70_);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp72_ = (BoxesDisplay*) _tmp71_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp68_);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp64_);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp61_);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			result = _tmp72_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return result;
#line 1363 "ovirt-machine.c"
		}
		default:
		{
			OvirtVm* _tmp73_;
			OvirtVmDisplay* _tmp74_ = NULL;
			OvirtVmDisplay* _tmp75_;
			OvirtVmDisplay* _tmp76_;
			OvirtVmDisplayType _tmp77_ = 0;
			OvirtVmDisplayType _tmp78_;
			OvirtVm* _tmp79_;
			OvirtVmDisplay* _tmp80_ = NULL;
			OvirtVmDisplay* _tmp81_;
			OvirtVmDisplay* _tmp82_;
			OvirtVmDisplayType _tmp83_ = 0;
			OvirtVmDisplayType _tmp84_;
			OvirtVm* _tmp85_;
			gchar* _tmp86_ = NULL;
			gchar* _tmp87_;
			gchar* _tmp88_;
			GError* _tmp89_;
			GError* _tmp90_;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp73_ = self->priv->vm;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp73_, "display", &_tmp74_, NULL);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp75_ = _tmp74_;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp76_ = _tmp75_;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp76_, "type", &_tmp77_, NULL);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp78_ = _tmp77_;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_warning ("ovirt-machine.vala:90: unsupported display of type %d", (gint) _tmp78_);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp76_);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp79_ = self->priv->vm;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp79_, "display", &_tmp80_, NULL);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp81_ = _tmp80_;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp82_ = _tmp81_;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp82_, "type", &_tmp83_, NULL);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp84_ = _tmp83_;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp85_ = self->priv->vm;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp85_, "name", &_tmp86_, NULL);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp87_ = _tmp86_;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp88_ = _tmp87_;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp89_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "unsupported display type %d for %s", _tmp84_, _tmp88_);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp90_ = _tmp89_;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp88_);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp82_);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_inner_error_ = _tmp90_;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return NULL;
#line 1435 "ovirt-machine.c"
		}
	}
}


static void boxes_ovirt_machine_update_state (BoxesOvirtMachine* self) {
	OvirtVm* _tmp0_;
	OvirtVmState _tmp1_ = 0;
	OvirtVmState _tmp2_;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp0_ = self->priv->vm;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp0_, "state", &_tmp1_, NULL);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	switch (_tmp2_) {
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case OVIRT_VM_STATE_UP:
#line 1457 "ovirt-machine.c"
		{
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			break;
#line 1463 "ovirt-machine.c"
		}
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case OVIRT_VM_STATE_DOWN:
#line 1467 "ovirt-machine.c"
		{
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			break;
#line 1473 "ovirt-machine.c"
		}
		default:
		{
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_UNKNOWN);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			break;
#line 1481 "ovirt-machine.c"
		}
	}
}


static void boxes_ovirt_machine_class_init (BoxesOvirtMachineClass * klass) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_ovirt_machine_parent_class = g_type_class_peek_parent (klass);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_type_class_add_private (klass, sizeof (BoxesOvirtMachinePrivate));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->connect_display = boxes_ovirt_machine_real_connect_display;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->connect_display_finish = boxes_ovirt_machine_real_connect_display_finish;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_properties = boxes_ovirt_machine_real_get_properties;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_ovirt_machine_finalize;
#line 1500 "ovirt-machine.c"
}


static void boxes_ovirt_machine_instance_init (BoxesOvirtMachine * self) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self->priv = BOXES_OVIRT_MACHINE_GET_PRIVATE (self);
#line 1507 "ovirt-machine.c"
}


static void boxes_ovirt_machine_finalize (GObject* obj) {
	BoxesOvirtMachine * self;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachine);
#line 6 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (self->priv->vm);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (self->priv->proxy);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	G_OBJECT_CLASS (boxes_ovirt_machine_parent_class)->finalize (obj);
#line 1521 "ovirt-machine.c"
}


GType boxes_ovirt_machine_get_type (void) {
	static volatile gsize boxes_ovirt_machine_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_ovirt_machine_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesOvirtMachineClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_ovirt_machine_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesOvirtMachine), 0, (GInstanceInitFunc) boxes_ovirt_machine_instance_init, NULL };
		GType boxes_ovirt_machine_type_id;
		boxes_ovirt_machine_type_id = g_type_register_static (BOXES_TYPE_MACHINE, "BoxesOvirtMachine", &g_define_type_info, 0);
		g_once_init_leave (&boxes_ovirt_machine_type_id__volatile, boxes_ovirt_machine_type_id);
	}
	return boxes_ovirt_machine_type_id__volatile;
}



