/* libvirt-machine.c generated by valac 0.17.3.12-6a5ea3, the Vala compiler
 * generated from libvirt-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 <stdlib.h>
#include <string.h>
#include <libvirt-gobject/libvirt-gobject.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <float.h>
#include <math.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <clutter-gtk/clutter-gtk.h>
#include <osinfo/osinfo.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_UI_STATE (boxes_ui_state_get_type ())

#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 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_TYPE_MACHINE_ACTOR (boxes_machine_actor_get_type ())
#define BOXES_MACHINE_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MACHINE_ACTOR, BoxesMachineActor))
#define BOXES_MACHINE_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MACHINE_ACTOR, BoxesMachineActorClass))
#define BOXES_IS_MACHINE_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MACHINE_ACTOR))
#define BOXES_IS_MACHINE_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MACHINE_ACTOR))
#define BOXES_MACHINE_ACTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MACHINE_ACTOR, BoxesMachineActorClass))

typedef struct _BoxesMachineActor BoxesMachineActor;
typedef struct _BoxesMachineActorClass BoxesMachineActorClass;

#define BOXES_TYPE_COLLECTION_SOURCE (boxes_collection_source_get_type ())
#define BOXES_COLLECTION_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_SOURCE, BoxesCollectionSource))
#define BOXES_COLLECTION_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_SOURCE, BoxesCollectionSourceClass))
#define BOXES_IS_COLLECTION_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_SOURCE))
#define BOXES_IS_COLLECTION_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_SOURCE))
#define BOXES_COLLECTION_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_SOURCE, BoxesCollectionSourceClass))

typedef struct _BoxesCollectionSource BoxesCollectionSource;
typedef struct _BoxesCollectionSourceClass BoxesCollectionSourceClass;

#define BOXES_TYPE_DISPLAY_CONFIG (boxes_display_config_get_type ())
#define BOXES_DISPLAY_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfig))
#define BOXES_DISPLAY_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfigClass))
#define BOXES_IS_DISPLAY_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY_CONFIG))
#define BOXES_IS_DISPLAY_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY_CONFIG))
#define BOXES_DISPLAY_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfigClass))

typedef struct _BoxesDisplayConfig BoxesDisplayConfig;
typedef struct _BoxesDisplayConfigClass BoxesDisplayConfigClass;

#define BOXES_TYPE_LIBVIRT_MACHINE (boxes_libvirt_machine_get_type ())
#define BOXES_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine))
#define BOXES_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))
#define BOXES_IS_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_IS_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_LIBVIRT_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))

typedef struct _BoxesLibvirtMachine BoxesLibvirtMachine;
typedef struct _BoxesLibvirtMachineClass BoxesLibvirtMachineClass;
typedef struct _BoxesLibvirtMachinePrivate BoxesLibvirtMachinePrivate;

#define BOXES_TYPE_VM_CREATOR (boxes_vm_creator_get_type ())
#define BOXES_VM_CREATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_VM_CREATOR, BoxesVMCreator))
#define BOXES_VM_CREATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_VM_CREATOR, BoxesVMCreatorClass))
#define BOXES_IS_VM_CREATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_VM_CREATOR))
#define BOXES_IS_VM_CREATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_VM_CREATOR))
#define BOXES_VM_CREATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_VM_CREATOR, BoxesVMCreatorClass))

typedef struct _BoxesVMCreator BoxesVMCreator;
typedef struct _BoxesVMCreatorClass BoxesVMCreatorClass;

#define BOXES_LIBVIRT_MACHINE_TYPE_MACHINE_STAT (boxes_libvirt_machine_machine_stat_get_type ())
typedef struct _BoxesLibvirtMachineMachineStat BoxesLibvirtMachineMachineStat;
#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_vm_creator_unref0(var) ((var == NULL) ? NULL : (var = (boxes_vm_creator_unref (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 _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define __vala_GVirDomainInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirDomainInfo_free (var), NULL)))

#define BOXES_MACHINE_TYPE_MACHINE_STATE (boxes_machine_machine_state_get_type ())
typedef struct _Block8Data Block8Data;
typedef struct _Block9Data Block9Data;
#define __vala_GVirDomainDiskStats_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirDomainDiskStats_free (var), NULL)))
typedef struct _BoxesLibvirtMachineUpdateIoStatData BoxesLibvirtMachineUpdateIoStatData;
typedef struct _Block10Data Block10Data;
typedef struct _Block11Data Block11Data;
#define __vala_GVirDomainInterfaceStats_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirDomainInterfaceStats_free (var), NULL)))
typedef struct _BoxesLibvirtMachineUpdateNetStatData BoxesLibvirtMachineUpdateNetStatData;
typedef struct _BoxesLibvirtMachineUpdateStatsData BoxesLibvirtMachineUpdateStatsData;
typedef struct _Block12Data Block12Data;
#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 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;
typedef struct _Block13Data Block13Data;
typedef struct _BoxesLibvirtMachineTakeScreenshotData BoxesLibvirtMachineTakeScreenshotData;

#define BOXES_TYPE_APP (boxes_app_get_type ())
#define BOXES_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP, BoxesApp))
#define BOXES_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP, BoxesAppClass))
#define BOXES_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP))
#define BOXES_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP))
#define BOXES_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP, BoxesAppClass))

typedef struct _BoxesApp BoxesApp;
typedef struct _BoxesAppClass BoxesAppClass;
typedef struct _BoxesLibvirtMachineSuspendData BoxesLibvirtMachineSuspendData;
typedef struct _BoxesAppPrivate BoxesAppPrivate;

#define BOXES_TYPE_TOPBAR (boxes_topbar_get_type ())
#define BOXES_TOPBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_TOPBAR, BoxesTopbar))
#define BOXES_TOPBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_TOPBAR, BoxesTopbarClass))
#define BOXES_IS_TOPBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_TOPBAR))
#define BOXES_IS_TOPBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_TOPBAR))
#define BOXES_TOPBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_TOPBAR, BoxesTopbarClass))

typedef struct _BoxesTopbar BoxesTopbar;
typedef struct _BoxesTopbarClass BoxesTopbarClass;

#define BOXES_TYPE_NOTIFICATIONBAR (boxes_notificationbar_get_type ())
#define BOXES_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbar))
#define BOXES_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))
#define BOXES_IS_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_IS_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_NOTIFICATIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))

typedef struct _BoxesNotificationbar BoxesNotificationbar;
typedef struct _BoxesNotificationbarClass BoxesNotificationbarClass;

#define BOXES_TYPE_REVEALER (boxes_revealer_get_type ())
#define BOXES_REVEALER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_REVEALER, BoxesRevealer))
#define BOXES_REVEALER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_REVEALER, BoxesRevealerClass))
#define BOXES_IS_REVEALER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_REVEALER))
#define BOXES_IS_REVEALER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_REVEALER))
#define BOXES_REVEALER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_REVEALER, BoxesRevealerClass))

typedef struct _BoxesRevealer BoxesRevealer;
typedef struct _BoxesRevealerClass BoxesRevealerClass;

#define BOXES_TYPE_SIDEBAR (boxes_sidebar_get_type ())
#define BOXES_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SIDEBAR, BoxesSidebar))
#define BOXES_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SIDEBAR, BoxesSidebarClass))
#define BOXES_IS_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SIDEBAR))
#define BOXES_IS_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SIDEBAR))
#define BOXES_SIDEBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SIDEBAR, BoxesSidebarClass))

typedef struct _BoxesSidebar BoxesSidebar;
typedef struct _BoxesSidebarClass BoxesSidebarClass;

#define BOXES_TYPE_SELECTIONBAR (boxes_selectionbar_get_type ())
#define BOXES_SELECTIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbar))
#define BOXES_SELECTIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarClass))
#define BOXES_IS_SELECTIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SELECTIONBAR))
#define BOXES_IS_SELECTIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SELECTIONBAR))
#define BOXES_SELECTIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarClass))

typedef struct _BoxesSelectionbar BoxesSelectionbar;
typedef struct _BoxesSelectionbarClass BoxesSelectionbarClass;

#define BOXES_TYPE_WIZARD (boxes_wizard_get_type ())
#define BOXES_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD, BoxesWizard))
#define BOXES_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD, BoxesWizardClass))
#define BOXES_IS_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD))
#define BOXES_IS_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD))
#define BOXES_WIZARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD, BoxesWizardClass))

typedef struct _BoxesWizard BoxesWizard;
typedef struct _BoxesWizardClass BoxesWizardClass;

#define BOXES_TYPE_PROPERTIES (boxes_properties_get_type ())
#define BOXES_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES, BoxesProperties))
#define BOXES_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES, BoxesPropertiesClass))
#define BOXES_IS_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES))
#define BOXES_IS_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES))
#define BOXES_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES, BoxesPropertiesClass))

typedef struct _BoxesProperties BoxesProperties;
typedef struct _BoxesPropertiesClass BoxesPropertiesClass;

#define BOXES_TYPE_DISPLAY_PAGE (boxes_display_page_get_type ())
#define BOXES_DISPLAY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPage))
#define BOXES_DISPLAY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPageClass))
#define BOXES_IS_DISPLAY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY_PAGE))
#define BOXES_IS_DISPLAY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY_PAGE))
#define BOXES_DISPLAY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPageClass))

typedef struct _BoxesDisplayPage BoxesDisplayPage;
typedef struct _BoxesDisplayPageClass BoxesDisplayPageClass;

#define BOXES_TYPE_COLLECTION (boxes_collection_get_type ())
#define BOXES_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION, BoxesCollection))
#define BOXES_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION, BoxesCollectionClass))
#define BOXES_IS_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION))
#define BOXES_IS_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION))
#define BOXES_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION, BoxesCollectionClass))

typedef struct _BoxesCollection BoxesCollection;
typedef struct _BoxesCollectionClass BoxesCollectionClass;
typedef struct _Block14Data Block14Data;
#define __vala_GVirNodeInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirNodeInfo_free (var), NULL)))
typedef struct _Block15Data Block15Data;
typedef struct _Block16Data Block16Data;
#define __vala_GVirStorageVolInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirStorageVolInfo_free (var), NULL)))
#define __vala_GVirStoragePoolInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirStoragePoolInfo_free (var), NULL)))
typedef struct _Block17Data Block17Data;

#define BOXES_TYPE_ICONFIG (boxes_iconfig_get_type ())
#define BOXES_ICONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_ICONFIG, BoxesIConfig))
#define BOXES_IS_ICONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_ICONFIG))
#define BOXES_ICONFIG_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_ICONFIG, BoxesIConfigIface))

typedef struct _BoxesIConfig BoxesIConfig;
typedef struct _BoxesIConfigIface BoxesIConfigIface;

typedef enum  {
	BOXES_UI_STATE_NONE,
	BOXES_UI_STATE_COLLECTION,
	BOXES_UI_STATE_CREDS,
	BOXES_UI_STATE_DISPLAY,
	BOXES_UI_STATE_SETTINGS,
	BOXES_UI_STATE_WIZARD,
	BOXES_UI_STATE_PROPERTIES
} BoxesUIState;

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

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;
};

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

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

struct _BoxesMachine {
	BoxesCollectionItem parent_instance;
	BoxesMachinePrivate * priv;
	BoxesMachineActor* machine_actor;
	BoxesCollectionSource* source;
	BoxesDisplayConfig* config;
	gboolean stay_on_display;
	gboolean deleted;
};

struct _BoxesMachineClass {
	BoxesCollectionItemClass parent_class;
	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);
	gchar* (*get_screenshot_prefix) (BoxesMachine* self);
	void (*connect_display) (BoxesMachine* self);
	void (*disconnect_display) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
};

struct _BoxesLibvirtMachine {
	BoxesMachine parent_instance;
	BoxesLibvirtMachinePrivate * priv;
	GVirDomain* domain;
	GVirConfigDomain* domain_config;
	GVirConnection* connection;
	BoxesVMCreator* vm_creator;
	gdouble* cpu_stats;
	gint cpu_stats_length1;
	gint _cpu_stats_size_;
	gdouble* io_stats;
	gint io_stats_length1;
	gint _io_stats_size_;
	gdouble* net_stats;
	gint net_stats_length1;
	gint _net_stats_size_;
};

struct _BoxesLibvirtMachineClass {
	BoxesMachineClass parent_class;
};

struct _BoxesLibvirtMachineMachineStat {
	gint64 timestamp;
	gdouble cpu_time;
	gdouble cpu_time_abs;
	gdouble cpu_guest_percent;
	gdouble memory_percent;
	GVirDomainDiskStats* disk;
	gdouble disk_read;
	gdouble disk_write;
	GVirDomainInterfaceStats* net;
	gdouble net_read;
	gdouble net_write;
};

struct _BoxesLibvirtMachinePrivate {
	gchar* storage_volume_path;
	gboolean _connect_display;
	guint ram_update_timeout;
	guint storage_update_timeout;
	guint stats_update_timeout;
	GCancellable* stats_cancellable;
	BoxesLibvirtMachineMachineStat* stats;
	gint stats_length1;
	gint _stats_size_;
};

typedef enum  {
	BOXES_MACHINE_MACHINE_STATE_UNKNOWN,
	BOXES_MACHINE_MACHINE_STATE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_RUNNING,
	BOXES_MACHINE_MACHINE_STATE_PAUSED
} BoxesMachineMachineState;

struct _Block8Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineMachineStat* stat;
	gpointer _async_data_;
};

struct _Block9Data {
	int _ref_count_;
	Block8Data * _data8_;
	GVirDomainDisk* disk;
};

typedef void (*BoxesRunInThreadFunc) (void* user_data, GError** error);
struct _BoxesLibvirtMachineUpdateIoStatData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	GVirDomainInfo* info;
	BoxesLibvirtMachineMachineStat* stat;
	Block8Data* _data8_;
	BoxesLibvirtMachineMachineStat* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainState _tmp2_;
	Block9Data* _data9_;
	GVirDomainDisk* _tmp3_;
	GVirDomainDisk* _tmp4_;
	BoxesLibvirtMachineMachineStat* _tmp5_;
	gint _tmp5__length1;
	BoxesLibvirtMachineMachineStat _tmp6_;
	BoxesLibvirtMachineMachineStat _tmp7_;
	BoxesLibvirtMachineMachineStat prev;
	BoxesLibvirtMachineMachineStat _tmp8_;
	GVirDomainDiskStats* _tmp9_;
	BoxesLibvirtMachineMachineStat* _tmp10_;
	BoxesLibvirtMachineMachineStat* _tmp11_;
	GVirDomainDiskStats* _tmp12_;
	gint64 _tmp13_;
	BoxesLibvirtMachineMachineStat _tmp14_;
	GVirDomainDiskStats* _tmp15_;
	gint64 _tmp16_;
	BoxesLibvirtMachineMachineStat* _tmp17_;
	BoxesLibvirtMachineMachineStat* _tmp18_;
	GVirDomainDiskStats* _tmp19_;
	gint64 _tmp20_;
	BoxesLibvirtMachineMachineStat _tmp21_;
	GVirDomainDiskStats* _tmp22_;
	gint64 _tmp23_;
	GError* err;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
	GError* _tmp26_;
	const gchar* _tmp27_;
	GError * _inner_error_;
};

struct _Block10Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineMachineStat* stat;
	gpointer _async_data_;
};

struct _Block11Data {
	int _ref_count_;
	Block10Data * _data10_;
	GVirDomainInterface* net;
};

struct _BoxesLibvirtMachineUpdateNetStatData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	GVirDomainInfo* info;
	BoxesLibvirtMachineMachineStat* stat;
	Block10Data* _data10_;
	BoxesLibvirtMachineMachineStat* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainState _tmp2_;
	Block11Data* _data11_;
	GVirDomainInterface* _tmp3_;
	GVirDomainInterface* _tmp4_;
	BoxesLibvirtMachineMachineStat* _tmp5_;
	gint _tmp5__length1;
	BoxesLibvirtMachineMachineStat _tmp6_;
	BoxesLibvirtMachineMachineStat _tmp7_;
	BoxesLibvirtMachineMachineStat prev;
	BoxesLibvirtMachineMachineStat _tmp8_;
	GVirDomainInterfaceStats* _tmp9_;
	BoxesLibvirtMachineMachineStat* _tmp10_;
	BoxesLibvirtMachineMachineStat* _tmp11_;
	GVirDomainInterfaceStats* _tmp12_;
	gint64 _tmp13_;
	BoxesLibvirtMachineMachineStat _tmp14_;
	GVirDomainInterfaceStats* _tmp15_;
	gint64 _tmp16_;
	BoxesLibvirtMachineMachineStat* _tmp17_;
	BoxesLibvirtMachineMachineStat* _tmp18_;
	GVirDomainInterfaceStats* _tmp19_;
	gint64 _tmp20_;
	BoxesLibvirtMachineMachineStat _tmp21_;
	GVirDomainInterfaceStats* _tmp22_;
	gint64 _tmp23_;
	GError* err;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
	GError* _tmp26_;
	const gchar* _tmp27_;
	GError * _inner_error_;
};

struct _BoxesLibvirtMachineUpdateStatsData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	gint64 _tmp0_;
	gint64 now;
	gint64 _tmp1_;
	BoxesLibvirtMachineMachineStat _tmp2_;
	BoxesLibvirtMachineMachineStat stat;
	GVirDomain* _tmp3_;
	GCancellable* _tmp4_;
	GVirDomainInfo* _tmp5_;
	GVirDomainInfo* info;
	GVirDomainInfo* _tmp6_;
	GVirDomainInfo* _tmp7_;
	GVirDomainInfo* _tmp8_;
	GVirDomainInfo* _tmp9_;
	BoxesLibvirtMachineMachineStat* _tmp10_;
	gint _tmp10__length1;
	BoxesLibvirtMachineMachineStat* _tmp11_;
	gint _tmp11__length1;
	BoxesLibvirtMachineMachineStat* _tmp12_;
	gint _tmp12__length1;
	BoxesLibvirtMachineMachineStat _tmp13_;
	BoxesLibvirtMachineMachineStat _tmp14_;
	GError* err;
	GError* _vala1_err;
	GError* _tmp15_;
	const gchar* _tmp16_;
	gdouble* _tmp17_;
	gdouble* _tmp18_;
	gdouble* _tmp19_;
	BoxesLibvirtMachineMachineStat* _tmp20_;
	gint _tmp20__length1;
	BoxesLibvirtMachineMachineStat* stat_collection;
	gint stat_collection_length1;
	gint _stat_collection_size_;
	gint stat_it;
	BoxesLibvirtMachineMachineStat _tmp21_;
	BoxesLibvirtMachineMachineStat _vala1_stat;
	gdouble* _tmp22_;
	gint _tmp22__length1;
	BoxesLibvirtMachineMachineStat _tmp23_;
	gdouble _tmp24_;
	gdouble* _tmp25_;
	gint _tmp25__length1;
	BoxesLibvirtMachineMachineStat _tmp26_;
	gdouble _tmp27_;
	BoxesLibvirtMachineMachineStat _tmp28_;
	gdouble _tmp29_;
	gdouble* _tmp30_;
	gint _tmp30__length1;
	BoxesLibvirtMachineMachineStat _tmp31_;
	gdouble _tmp32_;
	BoxesLibvirtMachineMachineStat _tmp33_;
	gdouble _tmp34_;
	GError * _inner_error_;
};

struct _Block12Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	gboolean stats_updating;
};

typedef enum  {
	BOXES_ERROR_INVALID,
	BOXES_ERROR_COMMAND_FAILED
} BoxesError;
#define BOXES_ERROR boxes_error_quark ()
typedef void (*PropertyStringChanged) (BoxesProperty* property, const gchar* value, void* user_data, GError** error);
struct _Block13Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	GVirStream* stream;
	gpointer _async_data_;
};

struct _BoxesLibvirtMachineTakeScreenshotData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	GdkPixbuf* result;
	Block13Data* _data13_;
	GVirDomainState state;
	GVirDomain* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainInfo* _tmp2_;
	GVirDomainInfo* _tmp3_;
	GVirDomainState _tmp4_;
	GError* _error_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gboolean _tmp7_;
	GVirDomainState _tmp8_;
	GVirDomainState _tmp9_;
	gboolean _tmp10_;
	GVirConnection* _tmp11_;
	GVirStream* _tmp12_;
	GdkPixbufLoader* _tmp13_;
	GdkPixbufLoader* loader;
	GVirStream* _tmp14_;
	GInputStream* _tmp15_;
	GInputStream* _tmp16_;
	GInputStream* input_stream;
	guint8* _tmp17_;
	guint8* buffer;
	gint buffer_length1;
	gint _buffer_size_;
	gssize length;
	gboolean _tmp18_;
	gboolean _tmp19_;
	gssize _tmp20_;
	GInputStream* _tmp21_;
	guint8* _tmp22_;
	gint _tmp22__length1;
	gssize _tmp23_;
	gssize _tmp24_;
	GdkPixbufLoader* _tmp25_;
	guint8* _tmp26_;
	gint _tmp26__length1;
	gssize _tmp27_;
	GdkPixbufLoader* _tmp28_;
	GdkPixbufLoader* _tmp29_;
	GdkPixbuf* _tmp30_;
	GdkPixbuf* _tmp31_;
	GError * _inner_error_;
};

struct _BoxesLibvirtMachineSuspendData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	gboolean _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	GVirDomain* _tmp3_;
	gboolean _tmp4_;
	GVirDomain* _tmp5_;
	gboolean _tmp6_;
	gboolean _tmp7_;
	GError * _inner_error_;
};

struct _BoxesApp {
	BoxesUI parent_instance;
	BoxesAppPrivate * priv;
	GtkApplicationWindow* window;
	GtkNotebook* notebook;
	GtkClutterEmbed* embed;
	ClutterStage* stage;
	ClutterBinLayout* stage_bin;
	ClutterActor* overlay_bin_actor;
	ClutterBinLayout* overlay_bin;
	BoxesCollectionItem* current_item;
	BoxesTopbar* topbar;
	BoxesNotificationbar* notificationbar;
	BoxesRevealer* sidebar_revealer;
	BoxesRevealer* topbar_revealer;
	BoxesSidebar* sidebar;
	BoxesSelectionbar* selectionbar;
	guint duration;
	GSettings* settings;
	BoxesWizard* wizard;
	BoxesProperties* properties;
	BoxesDisplayPage* display_page;
	BoxesCollection* collection;
	GSimpleAction* action_properties;
	GSimpleAction* action_fullscreen;
	GSimpleAction* action_shutdown;
};

struct _BoxesAppClass {
	BoxesUIClass parent_class;
};

struct _Block14Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesProperty* property;
};

typedef void (*PropertySizeChanged) (BoxesProperty* property, guint64 value, void* user_data, GError** error);
struct _Block15Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesProperty* property;
	guint64 value;
};

struct _Block16Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	gulong state_id;
};

typedef void (*BoxesNotificationbarOKFunc) (void* user_data);
typedef void (*BoxesNotificationbarCancelFunc) (void* user_data);
struct _Block17Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	guint64 value;
};

struct _BoxesIConfigIface {
	GTypeInterface parent_iface;
	GKeyFile* (*get_keyfile) (BoxesIConfig* self);
	const gchar* (*get_filename) (BoxesIConfig* self);
	void (*set_filename) (BoxesIConfig* self, const gchar* value);
	gboolean (*get_has_file) (BoxesIConfig* self);
	void (*set_has_file) (BoxesIConfig* self, gboolean value);
};


static gpointer boxes_libvirt_machine_parent_class = NULL;
extern BoxesApp* boxes_app_app;

GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_ui_state_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 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_actor_get_type (void) G_GNUC_CONST;
GType boxes_collection_source_get_type (void) G_GNUC_CONST;
GType boxes_display_config_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_machine_get_type (void) G_GNUC_CONST;
gpointer boxes_vm_creator_ref (gpointer instance);
void boxes_vm_creator_unref (gpointer instance);
GParamSpec* boxes_param_spec_vm_creator (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void boxes_value_set_vm_creator (GValue* value, gpointer v_object);
void boxes_value_take_vm_creator (GValue* value, gpointer v_object);
gpointer boxes_value_get_vm_creator (const GValue* value);
GType boxes_vm_creator_get_type (void) G_GNUC_CONST;
static GType boxes_libvirt_machine_machine_stat_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static BoxesLibvirtMachineMachineStat* boxes_libvirt_machine_machine_stat_dup (const BoxesLibvirtMachineMachineStat* self);
static void boxes_libvirt_machine_machine_stat_free (BoxesLibvirtMachineMachineStat* self);
static void boxes_libvirt_machine_machine_stat_copy (const BoxesLibvirtMachineMachineStat* self, BoxesLibvirtMachineMachineStat* dest);
static void boxes_libvirt_machine_machine_stat_destroy (BoxesLibvirtMachineMachineStat* self);
#define BOXES_LIBVIRT_MACHINE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachinePrivate))
enum  {
	BOXES_LIBVIRT_MACHINE_DUMMY_PROPERTY,
	BOXES_LIBVIRT_MACHINE_SAVE_ON_QUIT
};
static void _vala_BoxesLibvirtMachineMachineStat_array_free (BoxesLibvirtMachineMachineStat* array, gint array_length);
#define BOXES_LIBVIRT_MACHINE_STATS_SIZE 20
static void boxes_libvirt_machine_real_disconnect_display (BoxesMachine* base);
void boxes_machine_disconnect_display (BoxesMachine* self);
static void boxes_libvirt_machine_real_connect_display (BoxesMachine* base);
void boxes_libvirt_machine_start (BoxesLibvirtMachine* self);
static void boxes_libvirt_machine_update_display (BoxesLibvirtMachine* self);
GType boxes_display_get_type (void) G_GNUC_CONST;
BoxesDisplay* boxes_machine_get_display (BoxesMachine* self);
void boxes_display_connect_it (BoxesDisplay* self);
static void boxes_libvirt_machine_update_domain_config (BoxesLibvirtMachine* self);
GVirStorageVol* boxes_get_storage_volume (GVirConnection* connection, GVirDomain* domain, GVirStoragePool** pool);
static void boxes_libvirt_machine_reconnect_display (BoxesLibvirtMachine* self);
void boxes_machine_connect_display (BoxesMachine* self);
BoxesLibvirtMachine* boxes_libvirt_machine_new (BoxesCollectionSource* source, GVirConnection* connection, GVirDomain* domain, GError** error);
BoxesLibvirtMachine* boxes_libvirt_machine_construct (GType object_type, BoxesCollectionSource* source, GVirConnection* connection, GVirDomain* domain, GError** error);
BoxesMachine* boxes_machine_construct (GType object_type, BoxesCollectionSource* source, const gchar* name);
BoxesDisplayConfig* boxes_display_config_new (BoxesCollectionSource* source, const gchar* subgroup);
BoxesDisplayConfig* boxes_display_config_construct (GType object_type, BoxesCollectionSource* source, const gchar* subgroup);
static void _vala_GVirDomainInfo_free (GVirDomainInfo* self);
GType boxes_machine_machine_state_get_type (void) G_GNUC_CONST;
void boxes_machine_set_state (BoxesMachine* self, BoxesMachineMachineState value);
static void __lambda61_ (BoxesLibvirtMachine* self);
static void ___lambda61__gvir_domain_started (GVirDomain* _sender, gpointer self);
static void __lambda62_ (BoxesLibvirtMachine* self);
static void ___lambda62__gvir_domain_suspended (GVirDomain* _sender, gpointer self);
static void __lambda63_ (BoxesLibvirtMachine* self);
static void ___lambda63__gvir_domain_resumed (GVirDomain* _sender, gpointer self);
static void __lambda64_ (BoxesLibvirtMachine* self);
static void ___lambda64__gvir_domain_stopped (GVirDomain* _sender, gpointer self);
static void _boxes_libvirt_machine_update_domain_config_gvir_domain_updated (GVirDomain* _sender, gpointer self);
void boxes_machine_load_screenshot (BoxesMachine* self);
void boxes_machine_set_screenshot_enable (BoxesMachine* self, gboolean enable);
static void boxes_libvirt_machine_set_stats_enable (BoxesLibvirtMachine* self, gboolean enable);
static void boxes_libvirt_machine_update_cpu_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat);
static void boxes_libvirt_machine_update_mem_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat);
static void boxes_libvirt_machine_update_io_stat_data_free (gpointer _data);
static GVirDomainInfo* _vala_GVirDomainInfo_copy (GVirDomainInfo* self);
static void boxes_libvirt_machine_update_io_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_machine_update_io_stat_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_);
static gboolean boxes_libvirt_machine_update_io_stat_co (BoxesLibvirtMachineUpdateIoStatData* _data_);
static Block8Data* block8_data_ref (Block8Data* _data8_);
static void block8_data_unref (void * _userdata_);
static Block9Data* block9_data_ref (Block9Data* _data9_);
static void block9_data_unref (void * _userdata_);
static GVirDomainDisk* boxes_libvirt_machine_get_domain_disk (BoxesLibvirtMachine* self, GError** error);
void boxes_run_in_thread (BoxesRunInThreadFunc func, void* func_target, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_run_in_thread_finish (GAsyncResult* _res_, GError** error);
static void ___lambda66_ (Block9Data* _data9_, GError** error);
static void _vala_GVirDomainDiskStats_free (GVirDomainDiskStats* self);
static void ____lambda66__boxes_run_in_thread_func (gpointer self, GError** error);
static void boxes_libvirt_machine_update_io_stat_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
const gchar* boxes_collection_item_get_name (BoxesCollectionItem* self);
static void boxes_libvirt_machine_update_net_stat_data_free (gpointer _data);
static void boxes_libvirt_machine_update_net_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_machine_update_net_stat_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_);
static gboolean boxes_libvirt_machine_update_net_stat_co (BoxesLibvirtMachineUpdateNetStatData* _data_);
static Block10Data* block10_data_ref (Block10Data* _data10_);
static void block10_data_unref (void * _userdata_);
static Block11Data* block11_data_ref (Block11Data* _data11_);
static void block11_data_unref (void * _userdata_);
static GVirDomainInterface* boxes_libvirt_machine_get_domain_network_interface (BoxesLibvirtMachine* self, GError** error);
static void ___lambda67_ (Block11Data* _data11_, GError** error);
static void _vala_GVirDomainInterfaceStats_free (GVirDomainInterfaceStats* self);
static void ____lambda67__boxes_run_in_thread_func (gpointer self, GError** error);
static void boxes_libvirt_machine_update_net_stat_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_libvirt_machine_update_stats_data_free (gpointer _data);
static void boxes_libvirt_machine_update_stats (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_machine_update_stats_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_);
static gboolean boxes_libvirt_machine_update_stats_co (BoxesLibvirtMachineUpdateStatsData* _data_);
static void boxes_libvirt_machine_update_stats_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static BoxesLibvirtMachineMachineStat* _vala_array_dup1 (BoxesLibvirtMachineMachineStat* self, int length);
static void _vala_array_add2 (BoxesLibvirtMachineMachineStat** array, int* length, int* size, const BoxesLibvirtMachineMachineStat* value);
static void _vala_array_add3 (gdouble** array, int* length, int* size, gdouble value);
static void _vala_array_add4 (gdouble** array, int* length, int* size, gdouble value);
static void _vala_array_add5 (gdouble** array, int* length, int* size, gdouble value);
static Block12Data* block12_data_ref (Block12Data* _data12_);
static void block12_data_unref (void * _userdata_);
static gboolean ___lambda65_ (Block12Data* _data12_);
static void __lambda68_ (Block12Data* _data12_);
static void ___lambda68__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static gboolean ____lambda65__gsource_func (gpointer self);
GQuark boxes_error_quark (void);
void boxes_libvirt_machine_try_change_name (BoxesLibvirtMachine* self, const gchar* name, GError** error);
void boxes_collection_item_set_name (BoxesCollectionItem* self, const gchar* value);
static GList* boxes_libvirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page);
BoxesProperty* boxes_iproperties_provider_add_string_property (BoxesIPropertiesProvider* self, GList** list, const gchar* name, const gchar* value, PropertyStringChanged changed, void* changed_target);
static void ___lambda69_ (BoxesLibvirtMachine* self, BoxesProperty* property, const gchar* name, GError** error);
static void ____lambda69__property_string_changed (BoxesProperty* property, const gchar* value, gpointer self, GError** error);
gchar* boxes_collection_source_get_uri (BoxesCollectionSource* self);
gchar* boxes_display_get_uri (BoxesDisplay* self);
static void boxes_libvirt_machine_add_ram_property (BoxesLibvirtMachine* self, GList** list);
static void boxes_libvirt_machine_add_storage_property (BoxesLibvirtMachine* self, GList** list);
const gchar* boxes_display_get_protocol (BoxesDisplay* self);
GList* boxes_display_get_properties (BoxesDisplay* self, BoxesPropertiesPage page);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
gchar* boxes_extract_xpath (const gchar* xmldoc, const gchar* xpath, gboolean required, GError** error);
BoxesSpiceDisplay* boxes_spice_display_new (BoxesDisplayConfig* config, const gchar* host, gint port);
BoxesSpiceDisplay* boxes_spice_display_construct (GType object_type, BoxesDisplayConfig* config, const gchar* host, gint port);
GType boxes_spice_display_get_type (void) G_GNUC_CONST;
void boxes_machine_set_display (BoxesMachine* self, BoxesDisplay* value);
BoxesVncDisplay* boxes_vnc_display_new (BoxesDisplayConfig* config, const gchar* host, gint port);
BoxesVncDisplay* boxes_vnc_display_construct (GType object_type, BoxesDisplayConfig* config, const gchar* host, gint port);
GType boxes_vnc_display_get_type (void) G_GNUC_CONST;
static gchar* boxes_libvirt_machine_real_get_screenshot_prefix (BoxesMachine* base);
static void boxes_libvirt_machine_real_take_screenshot_data_free (gpointer _data);
static void boxes_libvirt_machine_real_take_screenshot (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_libvirt_machine_real_take_screenshot_co (BoxesLibvirtMachineTakeScreenshotData* _data_);
static Block13Data* block13_data_ref (Block13Data* _data13_);
static void block13_data_unref (void * _userdata_);
static void boxes_libvirt_machine_take_screenshot_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void __lambda78_ (Block13Data* _data13_, GError** error);
static void ___lambda78__boxes_run_in_thread_func (gpointer self, GError** error);
static void boxes_libvirt_machine_real_delete (BoxesMachine* base, gboolean by_user);
void boxes_machine_delete (BoxesMachine* self, gboolean by_user);
void boxes_libvirt_machine_force_shutdown (BoxesLibvirtMachine* self, gboolean confirm);
GType boxes_app_get_type (void) G_GNUC_CONST;
GVirConnection* boxes_app_get_default_connection (BoxesApp* self);
static void boxes_libvirt_machine_suspend_data_free (gpointer _data);
void boxes_libvirt_machine_suspend (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_libvirt_machine_suspend_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_, GError** error);
static gboolean boxes_libvirt_machine_suspend_co (BoxesLibvirtMachineSuspendData* _data_);
gboolean boxes_libvirt_machine_get_save_on_quit (BoxesLibvirtMachine* self);
static void boxes_libvirt_machine_suspend_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
GType boxes_topbar_get_type (void) G_GNUC_CONST;
GType boxes_notificationbar_get_type (void) G_GNUC_CONST;
GType boxes_revealer_get_type (void) G_GNUC_CONST;
GType boxes_sidebar_get_type (void) G_GNUC_CONST;
GType boxes_selectionbar_get_type (void) G_GNUC_CONST;
GType boxes_wizard_get_type (void) G_GNUC_CONST;
GType boxes_properties_get_type (void) G_GNUC_CONST;
GType boxes_display_page_get_type (void) G_GNUC_CONST;
GType boxes_collection_get_type (void) G_GNUC_CONST;
static void boxes_libvirt_machine_update_ram_property (BoxesLibvirtMachine* self, BoxesProperty* property);
void boxes_property_set_changes_pending (BoxesProperty* self, gboolean value);
static Block14Data* block14_data_ref (Block14Data* _data14_);
static void block14_data_unref (void * _userdata_);
static void _vala_GVirNodeInfo_free (GVirNodeInfo* self);
BoxesProperty* boxes_iproperties_provider_add_size_property (BoxesIPropertiesProvider* self, GList** list, const gchar* name, guint64 size, guint64 min, guint64 max, guint64 step, PropertySizeChanged changed, void* changed_target);
static void boxes_libvirt_machine_on_ram_changed (BoxesLibvirtMachine* self, BoxesProperty* property, guint64 value);
static void _boxes_libvirt_machine_on_ram_changed_property_size_changed (BoxesProperty* property, guint64 value, gpointer self);
static void ___lambda76_ (Block14Data* _data14_);
BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self);
static void ____lambda76__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static Block15Data* block15_data_ref (Block15Data* _data15_);
static void block15_data_unref (void * _userdata_);
static gboolean __lambda70_ (Block15Data* _data15_);
static void boxes_libvirt_machine_notify_reboot_required (BoxesLibvirtMachine* self);
static gboolean ___lambda70__gsource_func (gpointer self);
static void __lambda71_ (BoxesLibvirtMachine* self);
static Block16Data* block16_data_ref (Block16Data* _data16_);
static void block16_data_unref (void * _userdata_);
static void __lambda72_ (Block16Data* _data16_);
static void ___lambda72__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void ___lambda71__boxes_notificationbar_ok_func (gpointer self);
void boxes_notificationbar_display_for_action (BoxesNotificationbar* self, const gchar* message, const gchar* action_label, BoxesNotificationbarOKFunc action_func, void* action_func_target, GDestroyNotify action_func_target_destroy_notify, BoxesNotificationbarCancelFunc ignore_func, void* ignore_func_target, GDestroyNotify ignore_func_target_destroy_notify);
static void _vala_GVirStorageVolInfo_free (GVirStorageVolInfo* self);
static void boxes_libvirt_machine_on_storage_changed (BoxesLibvirtMachine* self, BoxesProperty* property, guint64 value);
static void _boxes_libvirt_machine_on_storage_changed_property_size_changed (BoxesProperty* property, guint64 value, gpointer self);
static void _vala_GVirStoragePoolInfo_free (GVirStoragePoolInfo* self);
static Block17Data* block17_data_ref (Block17Data* _data17_);
static void block17_data_unref (void * _userdata_);
static gboolean __lambda77_ (Block17Data* _data17_);
gboolean boxes_machine_is_running (BoxesMachine* self);
static gboolean ___lambda77__gsource_func (gpointer self);
GType boxes_iconfig_get_type (void) G_GNUC_CONST;
gboolean boxes_iconfig_get_boolean (BoxesIConfig* self, const gchar* group, const gchar* key, gboolean default_value);
void boxes_libvirt_machine_set_save_on_quit (BoxesLibvirtMachine* self, gboolean value);
void boxes_iconfig_set_boolean (BoxesIConfig* self, const gchar* group, const gchar* key, gboolean value);
static GObject * boxes_libvirt_machine_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static GVirDomainDiskStats* _vala_GVirDomainDiskStats_copy (GVirDomainDiskStats* self);
static GVirDomainInterfaceStats* _vala_GVirDomainInterfaceStats_copy (GVirDomainInterfaceStats* self);
static void boxes_libvirt_machine_finalize (GObject* obj);
static void _vala_boxes_libvirt_machine_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_boxes_libvirt_machine_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static void _vala_BoxesLibvirtMachineMachineStat_array_free (BoxesLibvirtMachineMachineStat* array, gint array_length) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (array != NULL) {
#line 967 "libvirt-machine.c"
		int i;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_destroy (&array[i]);
#line 973 "libvirt-machine.c"
		}
	}
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_free (array);
#line 978 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_disconnect_display (BoxesMachine* base) {
	BoxesLibvirtMachine * self;
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 19 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachine*) self)->stay_on_display = FALSE;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (boxes_libvirt_machine_parent_class)->disconnect_display (G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_MACHINE, BoxesMachine));
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->_connect_display = FALSE;
#line 992 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_connect_display (BoxesMachine* base) {
	BoxesLibvirtMachine * self;
	gboolean _tmp0_;
	BoxesDisplay* _tmp1_;
	BoxesDisplay* _tmp2_;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->_connect_display;
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 28 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1009 "libvirt-machine.c"
	}
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->_connect_display = TRUE;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start (self);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_display (self);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_display_connect_it (_tmp2_);
#line 1023 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_domain_config (BoxesLibvirtMachine* self) {
	GError * _inner_error_ = NULL;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 1031 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* _tmp2_;
		GVirConnection* _tmp3_;
		GVirDomain* _tmp4_;
		GVirStorageVol* _tmp5_ = NULL;
		GVirStorageVol* volume;
		const gchar* _tmp6_ = NULL;
		GVirStorageVol* _tmp7_;
		const gchar* _tmp10_;
		gchar* _tmp11_;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_NONE, &_inner_error_);
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 1052 "libvirt-machine.c"
			goto __catch16_g_error;
		}
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self->domain_config);
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->domain_config = _tmp2_;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = self->connection;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->domain;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = boxes_get_storage_volume (_tmp3_, _tmp4_, NULL);
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		volume = _tmp5_;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = volume;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp7_ != NULL) {
#line 1071 "libvirt-machine.c"
			GVirStorageVol* _tmp8_;
			const gchar* _tmp9_ = NULL;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = volume;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = gvir_storage_vol_get_path (_tmp8_, &_inner_error_);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = _tmp9_;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (volume);
#line 1084 "libvirt-machine.c"
				goto __catch16_g_error;
			}
		} else {
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = NULL;
#line 1090 "libvirt-machine.c"
		}
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _tmp6_;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = g_strdup (_tmp10_);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (self->priv->storage_volume_path);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->storage_volume_path = _tmp11_;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (volume);
#line 1102 "libvirt-machine.c"
	}
	goto __finally16;
	__catch16_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp12_;
		const gchar* _tmp13_ = NULL;
		GError* _tmp14_;
		const gchar* _tmp15_;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = self->domain;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = gvir_domain_get_name (_tmp12_);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = _error_;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _tmp14_->message;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("libvirt-machine.vala:70: Failed to fetch configuration for domain '%s'" \
": %s", _tmp13_, _tmp15_);
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 1128 "libvirt-machine.c"
	}
	__finally16:
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1139 "libvirt-machine.c"
	}
}


static void boxes_libvirt_machine_reconnect_display (BoxesLibvirtMachine* self) {
	gboolean _tmp0_;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->_connect_display;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (!_tmp0_) {
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1154 "libvirt-machine.c"
	}
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_disconnect_display ((BoxesMachine*) self);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_connect_display ((BoxesMachine*) self);
#line 1160 "libvirt-machine.c"
}


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


static void _vala_GVirDomainInfo_free (GVirDomainInfo* self) {
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_domain_info_get_type (), self);
#line 1174 "libvirt-machine.c"
}


static void __lambda61_ (BoxesLibvirtMachine* self) {
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_reconnect_display (self);
#line 1183 "libvirt-machine.c"
}


static void ___lambda61__gvir_domain_started (GVirDomain* _sender, gpointer self) {
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda61_ (self);
#line 1190 "libvirt-machine.c"
}


static void __lambda62_ (BoxesLibvirtMachine* self) {
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_PAUSED);
#line 1197 "libvirt-machine.c"
}


static void ___lambda62__gvir_domain_suspended (GVirDomain* _sender, gpointer self) {
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda62_ (self);
#line 1204 "libvirt-machine.c"
}


static void __lambda63_ (BoxesLibvirtMachine* self) {
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 1211 "libvirt-machine.c"
}


static void ___lambda63__gvir_domain_resumed (GVirDomain* _sender, gpointer self) {
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda63_ (self);
#line 1218 "libvirt-machine.c"
}


static void __lambda64_ (BoxesLibvirtMachine* self) {
#line 124 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 1225 "libvirt-machine.c"
}


static void ___lambda64__gvir_domain_stopped (GVirDomain* _sender, gpointer self) {
#line 124 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda64_ (self);
#line 1232 "libvirt-machine.c"
}


static void _boxes_libvirt_machine_update_domain_config_gvir_domain_updated (GVirDomain* _sender, gpointer self) {
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 1239 "libvirt-machine.c"
}


BoxesLibvirtMachine* boxes_libvirt_machine_construct (GType object_type, BoxesCollectionSource* source, GVirConnection* connection, GVirDomain* domain, GError** error) {
	BoxesLibvirtMachine * self = NULL;
	GVirDomain* _tmp0_;
	GVirConfigDomain* _tmp1_ = NULL;
	GVirConfigDomain* config;
	GVirConfigDomain* _tmp2_;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* item_name;
	BoxesCollectionSource* _tmp12_;
	const gchar* _tmp13_;
	GVirDomain* _tmp14_;
	const gchar* _tmp15_ = NULL;
	gchar* _tmp16_;
	gchar* _tmp17_;
	BoxesCollectionSource* _tmp18_;
	GVirDomain* _tmp19_;
	const gchar* _tmp20_ = NULL;
	BoxesDisplayConfig* _tmp21_;
	GVirConnection* _tmp22_;
	GVirConnection* _tmp23_;
	GVirDomain* _tmp24_;
	GVirDomain* _tmp25_;
	GVirDomain* _tmp33_;
	GVirDomain* _tmp34_;
	GVirDomain* _tmp35_;
	GVirDomain* _tmp36_;
	GVirDomain* _tmp37_;
	GError * _inner_error_ = NULL;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (source != NULL, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (connection != NULL, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (domain != NULL, NULL);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = domain;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	config = _tmp1_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 1296 "libvirt-machine.c"
	}
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = config;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = gvir_config_domain_get_title (_tmp2_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = _tmp5_;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp6_ == NULL) {
#line 1310 "libvirt-machine.c"
		GVirDomain* _tmp7_;
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = domain;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_domain_get_name (_tmp7_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = g_strdup (_tmp8_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp5_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp9_;
#line 1324 "libvirt-machine.c"
	}
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = _tmp5_;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = g_strdup (_tmp10_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	item_name = _tmp11_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = source;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = item_name;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) boxes_machine_construct (object_type, _tmp12_, _tmp13_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = domain;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = gvir_domain_get_name (_tmp14_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = g_strconcat ("new libvirt machine: ", _tmp15_, NULL);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = _tmp16_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:89: %s", _tmp17_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp17_);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = source;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp19_ = domain;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp20_ = gvir_domain_get_uuid (_tmp19_);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp21_ = boxes_display_config_new (_tmp18_, _tmp20_);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (((BoxesMachine*) self)->config);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachine*) self)->config = _tmp21_;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp22_ = connection;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp23_ = _g_object_ref0 (_tmp22_);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->connection);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->connection = _tmp23_;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp24_ = domain;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp25_ = _g_object_ref0 (_tmp24_);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->domain);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->domain = _tmp25_;
#line 1378 "libvirt-machine.c"
	{
		GVirDomain* _tmp26_;
		GVirDomainInfo* _tmp27_ = NULL;
		GVirDomainInfo* _tmp28_;
		GVirDomainInfo* _tmp29_;
		GVirDomainState _tmp30_;
		GVirDomainState _tmp31_;
		GVirDomainState s;
		GVirDomainState _tmp32_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp26_ = domain;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp27_ = gvir_domain_get_info (_tmp26_, &_inner_error_);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp28_ = _tmp27_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 1396 "libvirt-machine.c"
			goto __catch17_g_error;
		}
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp29_ = _tmp28_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp30_ = _tmp29_->state;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp31_ = _tmp30_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_tmp29_);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		s = _tmp31_;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp32_ = s;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (_tmp32_) {
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_RUNNING:
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_BLOCKED:
#line 1417 "libvirt-machine.c"
			{
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1423 "libvirt-machine.c"
			}
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_PAUSED:
#line 1427 "libvirt-machine.c"
			{
#line 102 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_PAUSED);
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1433 "libvirt-machine.c"
			}
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_SHUTDOWN:
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_SHUTOFF:
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_CRASHED:
#line 1441 "libvirt-machine.c"
			{
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1447 "libvirt-machine.c"
			}
			default:
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_NONE:
#line 1452 "libvirt-machine.c"
			{
#line 111 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_UNKNOWN);
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1458 "libvirt-machine.c"
			}
		}
	}
	goto __finally17;
	__catch17_g_error:
	{
		GError* _error_ = NULL;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_UNKNOWN);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 1474 "libvirt-machine.c"
	}
	__finally17:
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (item_name);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp5_);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 1491 "libvirt-machine.c"
	}
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp33_ = domain;
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp33_, "started", (GCallback) ___lambda61__gvir_domain_started, self, 0);
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp34_ = domain;
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp34_, "suspended", (GCallback) ___lambda62__gvir_domain_suspended, self, 0);
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp35_ = domain;
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp35_, "resumed", (GCallback) ___lambda63__gvir_domain_resumed, self, 0);
#line 124 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp36_ = domain;
#line 124 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp36_, "stopped", (GCallback) ___lambda64__gvir_domain_stopped, self, 0);
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp37_ = domain;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp37_, "updated", (GCallback) _boxes_libvirt_machine_update_domain_config_gvir_domain_updated, self, 0);
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_load_screenshot ((BoxesMachine*) self);
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_screenshot_enable ((BoxesMachine*) self, TRUE);
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_set_stats_enable (self, TRUE);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (item_name);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp5_);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (config);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self;
#line 1529 "libvirt-machine.c"
}


BoxesLibvirtMachine* boxes_libvirt_machine_new (BoxesCollectionSource* source, GVirConnection* connection, GVirDomain* domain, GError** error) {
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return boxes_libvirt_machine_construct (BOXES_TYPE_LIBVIRT_MACHINE, source, connection, domain, error);
#line 1536 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_cpu_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat) {
	BoxesLibvirtMachineMachineStat* _tmp0_;
	gint _tmp0__length1;
	BoxesLibvirtMachineMachineStat _tmp1_;
	BoxesLibvirtMachineMachineStat _tmp2_ = {0};
	BoxesLibvirtMachineMachineStat prev;
	gboolean _tmp3_ = FALSE;
	GVirDomainInfo* _tmp4_;
	GVirDomainState _tmp5_;
	gboolean _tmp8_;
	GVirDomainInfo* _tmp9_;
	guint64 _tmp10_;
	BoxesLibvirtMachineMachineStat _tmp11_;
	gdouble _tmp12_;
	GVirDomainInfo* _tmp13_;
	guint64 _tmp14_;
	BoxesLibvirtMachineMachineStat _tmp15_;
	gint64 _tmp16_;
	BoxesLibvirtMachineMachineStat _tmp17_;
	gint64 _tmp18_;
	gint64 dt;
	BoxesLibvirtMachineMachineStat _tmp19_;
	gdouble _tmp20_;
	gint64 _tmp21_;
	gdouble percent;
	gdouble _tmp22_;
	GVirDomainInfo* _tmp23_;
	guint16 _tmp24_;
	gdouble _tmp25_;
	gdouble _tmp26_ = 0.0;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (info != NULL);
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (stat != NULL);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->stats;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0__length1 = self->priv->stats_length1;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_copy (&_tmp1_, &_tmp2_);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	prev = _tmp2_;
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = info;
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->state;
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_ == GVIR_DOMAIN_STATE_CRASHED) {
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = TRUE;
#line 1594 "libvirt-machine.c"
	} else {
		GVirDomainInfo* _tmp6_;
		GVirDomainState _tmp7_;
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = info;
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _tmp6_->state;
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp7_ == GVIR_DOMAIN_STATE_SHUTOFF;
#line 1604 "libvirt-machine.c"
	}
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = _tmp3_;
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp8_) {
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&prev);
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1614 "libvirt-machine.c"
	}
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = info;
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = _tmp9_->cpuTime;
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = prev;
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = _tmp11_.cpu_time_abs;
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_time = _tmp10_ - _tmp12_;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = info;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = _tmp13_->cpuTime;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_time_abs = (gdouble) _tmp14_;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = *stat;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = _tmp15_.timestamp;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = prev;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = _tmp17_.timestamp;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	dt = (_tmp16_ - _tmp18_) * 10;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp19_ = *stat;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp20_ = _tmp19_.cpu_time;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp21_ = dt;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	percent = _tmp20_ / _tmp21_;
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp22_ = percent;
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp23_ = info;
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp24_ = _tmp23_->nrVirtCpu;
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	percent = _tmp22_ / _tmp24_;
#line 147 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp25_ = percent;
#line 147 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp26_ = CLAMP (_tmp25_, (gdouble) 0, (gdouble) 100);
#line 147 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_guest_percent = _tmp26_;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_destroy (&prev);
#line 1666 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_mem_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat) {
	GVirDomainInfo* _tmp0_;
	GVirDomainState _tmp1_;
	GVirDomainInfo* _tmp2_;
	guint64 _tmp3_;
	GVirDomainInfo* _tmp4_;
	guint64 _tmp5_;
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (info != NULL);
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (stat != NULL);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = info;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_->state;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 152 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1691 "libvirt-machine.c"
	}
#line 154 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = info;
#line 154 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_->memory;
#line 154 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = info;
#line 154 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->maxMem;
#line 154 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).memory_percent = (_tmp3_ * 100.0) / _tmp5_;
#line 1703 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_io_stat_data_free (gpointer _data) {
	BoxesLibvirtMachineUpdateIoStatData* _data_;
	_data_ = _data;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInfo_free0 (_data_->info);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineUpdateIoStatData, _data_);
#line 1716 "libvirt-machine.c"
}


static GVirDomainInfo* _vala_GVirDomainInfo_copy (GVirDomainInfo* self) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return g_boxed_copy (gvir_domain_info_get_type (), self);
#line 1723 "libvirt-machine.c"
}


static gpointer __vala_GVirDomainInfo_copy0 (gpointer self) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? _vala_GVirDomainInfo_copy (self) : NULL;
#line 1730 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_io_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateIoStatData* _data_;
	BoxesLibvirtMachine* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainInfo* _tmp2_;
	BoxesLibvirtMachineMachineStat* _tmp3_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineUpdateIoStatData);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_update_io_stat);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_update_io_stat_data_free);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = info;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = __vala_GVirDomainInfo_copy0 (_tmp1_);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->info = _tmp2_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = stat;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->stat = _tmp3_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_io_stat_co (_data_);
#line 1762 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_io_stat_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_) {
	BoxesLibvirtMachineUpdateIoStatData* _data_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1770 "libvirt-machine.c"
}


static Block8Data* block8_data_ref (Block8Data* _data8_) {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data8_->_ref_count_);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data8_;
#line 1779 "libvirt-machine.c"
}


static void block8_data_unref (void * _userdata_) {
	Block8Data* _data8_;
	_data8_ = (Block8Data*) _userdata_;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data8_->_ref_count_)) {
#line 1788 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data8_->self;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block8Data, _data8_);
#line 1796 "libvirt-machine.c"
	}
}


static Block9Data* block9_data_ref (Block9Data* _data9_) {
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data9_->_ref_count_);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data9_;
#line 1806 "libvirt-machine.c"
}


static void block9_data_unref (void * _userdata_) {
	Block9Data* _data9_;
	_data9_ = (Block9Data*) _userdata_;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) {
#line 1815 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data9_->_data8_->self;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data9_->disk);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block8_data_unref (_data9_->_data8_);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data9_->_data8_ = NULL;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block9Data, _data9_);
#line 1827 "libvirt-machine.c"
	}
}


static void _vala_GVirDomainDiskStats_free (GVirDomainDiskStats* self) {
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_domain_disk_stats_get_type (), self);
#line 1835 "libvirt-machine.c"
}


static void ___lambda66_ (Block9Data* _data9_, GError** error) {
	Block8Data* _data8_;
	BoxesLibvirtMachine * self;
	GVirDomainDisk* _tmp0_;
	GVirDomainDiskStats* _tmp1_ = NULL;
	GVirDomainDiskStats* _tmp2_;
	BoxesLibvirtMachineMachineStat* _tmp3_;
	GError * _inner_error_ = NULL;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data8_ = _data9_->_data8_;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data8_->self;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data9_->disk;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_disk_get_stats (_tmp0_, &_inner_error_);
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1863 "libvirt-machine.c"
	}
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _data8_->stat;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 ((*_tmp3_).disk);
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*_tmp3_).disk = _tmp2_;
#line 1871 "libvirt-machine.c"
}


static void ____lambda66__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda66_ (self, error);
#line 1878 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_io_stat_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateIoStatData* _data_;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_io_stat_co (_data_);
#line 1892 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_update_io_stat_co (BoxesLibvirtMachineUpdateIoStatData* _data_) {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 1901 "libvirt-machine.c"
		goto _state_0;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 1905 "libvirt-machine.c"
		goto _state_1;
		default:
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 1910 "libvirt-machine.c"
	}
	_state_0:
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data8_ = g_slice_new0 (Block8Data);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data8_->_ref_count_ = 1;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data8_->self = g_object_ref (_data_->self);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->stat;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data8_->stat = _data_->_tmp0_;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data8_->_async_data_ = _data_;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->info;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_->state;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp2_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block8_data_unref (_data_->_data8_);
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data8_ = NULL;
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1939 "libvirt-machine.c"
		} else {
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1943 "libvirt-machine.c"
		}
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 1949 "libvirt-machine.c"
	}
	{
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data9_ = g_slice_new0 (Block9Data);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data9_->_ref_count_ = 1;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data9_->_data8_ = block8_data_ref (_data_->_data8_);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = NULL;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = boxes_libvirt_machine_get_domain_disk (_data_->self, &_data_->_inner_error_);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data9_->disk = _data_->_tmp3_;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block9_data_unref (_data_->_data9_);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data9_ = NULL;
#line 1970 "libvirt-machine.c"
			goto __catch18_g_error;
		}
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_data9_->disk;
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp4_ == NULL) {
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block9_data_unref (_data_->_data9_);
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data9_ = NULL;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block8_data_unref (_data_->_data8_);
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data8_ = NULL;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1989 "libvirt-machine.c"
			} else {
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1993 "libvirt-machine.c"
			}
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 1999 "libvirt-machine.c"
		}
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda66__boxes_run_in_thread_func, _data_->_data9_, NULL, boxes_libvirt_machine_update_io_stat_ready, _data_);
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2007 "libvirt-machine.c"
		_state_1:
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block9_data_unref (_data_->_data9_);
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data9_ = NULL;
#line 2017 "libvirt-machine.c"
			goto __catch18_g_error;
		}
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->self->priv->stats;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5__length1 = _data_->self->priv->stats_length1;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp7_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp6_, &_data_->_tmp7_);
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->prev = _data_->_tmp7_;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->prev;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->_tmp8_.disk;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp9_ != NULL) {
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp10_ = _data_->_data8_->stat;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = _data_->_data8_->stat;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = (*_data_->_tmp11_).disk;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp13_ = _data_->_tmp12_->rd_bytes;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = _data_->prev;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp15_ = _data_->_tmp14_.disk;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp16_ = _data_->_tmp15_->rd_bytes;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp10_).disk_read = (gdouble) (_data_->_tmp13_ - _data_->_tmp16_);
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp17_ = _data_->_data8_->stat;
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = _data_->_data8_->stat;
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp19_ = (*_data_->_tmp18_).disk;
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = _data_->_tmp19_->wr_bytes;
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = _data_->prev;
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22_ = _data_->_tmp21_.disk;
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp23_ = _data_->_tmp22_->wr_bytes;
#line 172 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp17_).disk_write = (gdouble) (_data_->_tmp20_ - _data_->_tmp23_);
#line 2070 "libvirt-machine.c"
		}
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->prev);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block9_data_unref (_data_->_data9_);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data9_ = NULL;
#line 2078 "libvirt-machine.c"
	}
	goto __finally18;
	__catch18_g_error:
	{
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp24_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp25_ = _data_->_tmp24_;
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp26_ = _data_->err;
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp27_ = _data_->_tmp26_->message;
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:175: Failed to fetch I/O statistics for %s: %s", _data_->_tmp25_, _data_->_tmp27_);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 2099 "libvirt-machine.c"
	}
	__finally18:
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block8_data_unref (_data_->_data8_);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data8_ = NULL;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2114 "libvirt-machine.c"
	}
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block8_data_unref (_data_->_data8_);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data8_ = NULL;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2124 "libvirt-machine.c"
	} else {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2128 "libvirt-machine.c"
	}
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 2134 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_net_stat_data_free (gpointer _data) {
	BoxesLibvirtMachineUpdateNetStatData* _data_;
	_data_ = _data;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInfo_free0 (_data_->info);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineUpdateNetStatData, _data_);
#line 2147 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_net_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateNetStatData* _data_;
	BoxesLibvirtMachine* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainInfo* _tmp2_;
	BoxesLibvirtMachineMachineStat* _tmp3_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineUpdateNetStatData);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_update_net_stat);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_update_net_stat_data_free);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = info;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = __vala_GVirDomainInfo_copy0 (_tmp1_);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->info = _tmp2_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = stat;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->stat = _tmp3_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_net_stat_co (_data_);
#line 2179 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_net_stat_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_) {
	BoxesLibvirtMachineUpdateNetStatData* _data_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2187 "libvirt-machine.c"
}


static Block10Data* block10_data_ref (Block10Data* _data10_) {
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data10_->_ref_count_);
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data10_;
#line 2196 "libvirt-machine.c"
}


static void block10_data_unref (void * _userdata_) {
	Block10Data* _data10_;
	_data10_ = (Block10Data*) _userdata_;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data10_->_ref_count_)) {
#line 2205 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data10_->self;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block10Data, _data10_);
#line 2213 "libvirt-machine.c"
	}
}


static Block11Data* block11_data_ref (Block11Data* _data11_) {
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data11_->_ref_count_);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data11_;
#line 2223 "libvirt-machine.c"
}


static void block11_data_unref (void * _userdata_) {
	Block11Data* _data11_;
	_data11_ = (Block11Data*) _userdata_;
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data11_->_ref_count_)) {
#line 2232 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data11_->_data10_->self;
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data11_->net);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block10_data_unref (_data11_->_data10_);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data11_->_data10_ = NULL;
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block11Data, _data11_);
#line 2244 "libvirt-machine.c"
	}
}


static void _vala_GVirDomainInterfaceStats_free (GVirDomainInterfaceStats* self) {
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_domain_interface_stats_get_type (), self);
#line 2252 "libvirt-machine.c"
}


static void ___lambda67_ (Block11Data* _data11_, GError** error) {
	Block10Data* _data10_;
	BoxesLibvirtMachine * self;
	GVirDomainInterface* _tmp0_;
	GVirDomainInterfaceStats* _tmp1_ = NULL;
	GVirDomainInterfaceStats* _tmp2_;
	BoxesLibvirtMachineMachineStat* _tmp3_;
	GError * _inner_error_ = NULL;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data10_ = _data11_->_data10_;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data10_->self;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data11_->net;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_interface_get_stats (_tmp0_, &_inner_error_);
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2280 "libvirt-machine.c"
	}
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _data10_->stat;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 ((*_tmp3_).net);
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*_tmp3_).net = _tmp2_;
#line 2288 "libvirt-machine.c"
}


static void ____lambda67__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda67_ (self, error);
#line 2295 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_net_stat_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateNetStatData* _data_;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_net_stat_co (_data_);
#line 2309 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_update_net_stat_co (BoxesLibvirtMachineUpdateNetStatData* _data_) {
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 2318 "libvirt-machine.c"
		goto _state_0;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 2322 "libvirt-machine.c"
		goto _state_1;
		default:
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 2327 "libvirt-machine.c"
	}
	_state_0:
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data10_ = g_slice_new0 (Block10Data);
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data10_->_ref_count_ = 1;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data10_->self = g_object_ref (_data_->self);
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->stat;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data10_->stat = _data_->_tmp0_;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data10_->_async_data_ = _data_;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->info;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_->state;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp2_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block10_data_unref (_data_->_data10_);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data10_ = NULL;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2356 "libvirt-machine.c"
		} else {
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2360 "libvirt-machine.c"
		}
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2366 "libvirt-machine.c"
	}
	{
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data11_ = g_slice_new0 (Block11Data);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data11_->_ref_count_ = 1;
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data11_->_data10_ = block10_data_ref (_data_->_data10_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = boxes_libvirt_machine_get_domain_network_interface (_data_->self, &_data_->_inner_error_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data11_->net = _data_->_tmp3_;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block11_data_unref (_data_->_data11_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data11_ = NULL;
#line 2387 "libvirt-machine.c"
			goto __catch19_g_error;
		}
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_data11_->net;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp4_ == NULL) {
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block11_data_unref (_data_->_data11_);
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data11_ = NULL;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block10_data_unref (_data_->_data10_);
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data10_ = NULL;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2406 "libvirt-machine.c"
			} else {
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 2410 "libvirt-machine.c"
			}
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 2416 "libvirt-machine.c"
		}
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda67__boxes_run_in_thread_func, _data_->_data11_, NULL, boxes_libvirt_machine_update_net_stat_ready, _data_);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2424 "libvirt-machine.c"
		_state_1:
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block11_data_unref (_data_->_data11_);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data11_ = NULL;
#line 2434 "libvirt-machine.c"
			goto __catch19_g_error;
		}
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->self->priv->stats;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5__length1 = _data_->self->priv->stats_length1;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp7_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp6_, &_data_->_tmp7_);
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->prev = _data_->_tmp7_;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->prev;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->_tmp8_.net;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp9_ != NULL) {
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp10_ = _data_->_data10_->stat;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = _data_->_data10_->stat;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = (*_data_->_tmp11_).net;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp13_ = _data_->_tmp12_->rx_bytes;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = _data_->prev;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp15_ = _data_->_tmp14_.net;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp16_ = _data_->_tmp15_->rx_bytes;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp10_).net_read = (gdouble) (_data_->_tmp13_ - _data_->_tmp16_);
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp17_ = _data_->_data10_->stat;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = _data_->_data10_->stat;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp19_ = (*_data_->_tmp18_).net;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = _data_->_tmp19_->tx_bytes;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = _data_->prev;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22_ = _data_->_tmp21_.net;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp23_ = _data_->_tmp22_->tx_bytes;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp17_).net_write = (gdouble) (_data_->_tmp20_ - _data_->_tmp23_);
#line 2487 "libvirt-machine.c"
		}
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->prev);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block11_data_unref (_data_->_data11_);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data11_ = NULL;
#line 2495 "libvirt-machine.c"
	}
	goto __finally19;
	__catch19_g_error:
	{
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp24_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp25_ = _data_->_tmp24_;
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp26_ = _data_->err;
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp27_ = _data_->_tmp26_->message;
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:197: Failed to fetch network statistics for %s: %" \
"s", _data_->_tmp25_, _data_->_tmp27_);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 2516 "libvirt-machine.c"
	}
	__finally19:
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block10_data_unref (_data_->_data10_);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data10_ = NULL;
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2531 "libvirt-machine.c"
	}
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block10_data_unref (_data_->_data10_);
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data10_ = NULL;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2541 "libvirt-machine.c"
	} else {
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2545 "libvirt-machine.c"
	}
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 2551 "libvirt-machine.c"
}


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


static void boxes_libvirt_machine_update_stats (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateStatsData* _data_;
	BoxesLibvirtMachine* _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineUpdateStatsData);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_update_stats);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_update_stats_data_free);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_stats_co (_data_);
#line 2581 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_stats_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_) {
	BoxesLibvirtMachineUpdateStatsData* _data_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2589 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_stats_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateStatsData* _data_;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_stats_co (_data_);
#line 2603 "libvirt-machine.c"
}


static BoxesLibvirtMachineMachineStat* _vala_array_dup1 (BoxesLibvirtMachineMachineStat* self, int length) {
	BoxesLibvirtMachineMachineStat* result;
	int i;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = g_new0 (BoxesLibvirtMachineMachineStat, length);
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	for (i = 0; i < length; i++) {
#line 2614 "libvirt-machine.c"
		BoxesLibvirtMachineMachineStat _tmp0_ = {0};
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&self[i], &_tmp0_);
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		result[i] = _tmp0_;
#line 2620 "libvirt-machine.c"
	}
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 2624 "libvirt-machine.c"
}


static void _vala_array_add2 (BoxesLibvirtMachineMachineStat** array, int* length, int* size, const BoxesLibvirtMachineMachineStat* value) {
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (BoxesLibvirtMachineMachineStat, *array, *size);
#line 2635 "libvirt-machine.c"
	}
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = *value;
#line 2639 "libvirt-machine.c"
}


static void _vala_array_add3 (gdouble** array, int* length, int* size, gdouble value) {
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (gdouble, *array, *size);
#line 2650 "libvirt-machine.c"
	}
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = value;
#line 2654 "libvirt-machine.c"
}


static void _vala_array_add4 (gdouble** array, int* length, int* size, gdouble value) {
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (gdouble, *array, *size);
#line 2665 "libvirt-machine.c"
	}
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = value;
#line 2669 "libvirt-machine.c"
}


static void _vala_array_add5 (gdouble** array, int* length, int* size, gdouble value) {
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (gdouble, *array, *size);
#line 2680 "libvirt-machine.c"
	}
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = value;
#line 2684 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_update_stats_co (BoxesLibvirtMachineUpdateStatsData* _data_) {
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 2693 "libvirt-machine.c"
		goto _state_0;
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 2697 "libvirt-machine.c"
		goto _state_1;
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 2701 "libvirt-machine.c"
		goto _state_2;
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 2705 "libvirt-machine.c"
		goto _state_3;
		default:
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 2710 "libvirt-machine.c"
	}
	_state_0:
	{
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = 0LL;
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = g_get_monotonic_time ();
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->now = _data_->_tmp0_;
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = _data_->now;
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp2_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp2_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_.timestamp = _data_->_tmp1_;
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat = _data_->_tmp2_;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->self->domain;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->self->priv->stats_cancellable;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_get_info_async (_data_->_tmp3_, _data_->_tmp4_, boxes_libvirt_machine_update_stats_ready, _data_);
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2740 "libvirt-machine.c"
		_state_1:
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = NULL;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = gvir_domain_get_info_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->info = _data_->_tmp5_;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_destroy (&_data_->stat);
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 2754 "libvirt-machine.c"
				goto __catch20_g_io_error_cancelled;
			}
			goto __catch20_g_error;
		}
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->info;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_cpu_stat (_data_->self, _data_->_tmp6_, &_data_->stat);
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = _data_->info;
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_mem_stat (_data_->self, _data_->_tmp7_, &_data_->stat);
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->info;
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 2;
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_io_stat (_data_->self, _data_->_tmp8_, &_data_->stat, boxes_libvirt_machine_update_stats_ready, _data_);
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2775 "libvirt-machine.c"
		_state_2:
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_io_stat_finish (_data_->self, _data_->_res_);
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->info;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 3;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_net_stat (_data_->self, _data_->_tmp9_, &_data_->stat, boxes_libvirt_machine_update_stats_ready, _data_);
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2787 "libvirt-machine.c"
		_state_3:
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_net_stat_finish (_data_->self, _data_->_res_);
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10_ = _data_->self->priv->stats;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10__length1 = _data_->self->priv->stats_length1;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11_ = ((_data_->_tmp10_ + 1) != NULL) ? _vala_array_dup1 (_data_->_tmp10_ + 1, BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1) : ((gpointer) (_data_->_tmp10_ + 1));
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11__length1 = BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->stats = (_vala_BoxesLibvirtMachineMachineStat_array_free (_data_->self->priv->stats, _data_->self->priv->stats_length1), NULL);
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->stats = _data_->_tmp11_;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->stats_length1 = _data_->_tmp11__length1;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->_stats_size_ = _data_->self->priv->stats_length1;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12_ = _data_->self->priv->stats;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12__length1 = _data_->self->priv->stats_length1;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp13_ = _data_->stat;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp14_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp13_, &_data_->_tmp14_);
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_vala_array_add2 (&_data_->self->priv->stats, &_data_->self->priv->stats_length1, &_data_->self->priv->_stats_size_, &_data_->_tmp14_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_data_->info);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->stat);
#line 2823 "libvirt-machine.c"
	}
	goto __finally20;
	__catch20_g_io_error_cancelled:
	{
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2838 "libvirt-machine.c"
		} else {
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2842 "libvirt-machine.c"
		}
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2848 "libvirt-machine.c"
	}
	goto __finally20;
	__catch20_g_error:
	{
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_vala1_err = _data_->_inner_error_;
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 223 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp15_ = _data_->_vala1_err;
#line 223 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp16_ = _data_->_tmp15_->message;
#line 223 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:223: %s", _data_->_tmp16_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->_vala1_err);
#line 2865 "libvirt-machine.c"
	}
	__finally20:
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2876 "libvirt-machine.c"
	}
#line 226 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = NULL;
#line 226 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = g_new0 (gdouble, 0);
#line 226 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats = (g_free (_data_->self->cpu_stats), NULL);
#line 226 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats = _data_->_tmp17_;
#line 226 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats_length1 = 0;
#line 226 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_cpu_stats_size_ = _data_->self->cpu_stats_length1;
#line 227 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = NULL;
#line 227 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = g_new0 (gdouble, 0);
#line 227 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats = (g_free (_data_->self->io_stats), NULL);
#line 227 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats = _data_->_tmp18_;
#line 227 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats_length1 = 0;
#line 227 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_io_stats_size_ = _data_->self->io_stats_length1;
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = NULL;
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = g_new0 (gdouble, 0);
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats = (g_free (_data_->self->net_stats), NULL);
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats = _data_->_tmp19_;
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats_length1 = 0;
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_net_stats_size_ = _data_->self->net_stats_length1;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20_ = _data_->self->priv->stats;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20__length1 = _data_->self->priv->stats_length1;
#line 2918 "libvirt-machine.c"
	{
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection_length1 = 0;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_stat_collection_size_ = 0;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection = _data_->_tmp20_;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection_length1 = _data_->_tmp20__length1;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (_data_->stat_it = 0; _data_->stat_it < _data_->_tmp20__length1; _data_->stat_it = _data_->stat_it + 1) {
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			memset (&_data_->_tmp21_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_copy (&_data_->stat_collection[_data_->stat_it], &_data_->_tmp21_);
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_vala1_stat = _data_->_tmp21_;
#line 2936 "libvirt-machine.c"
			{
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22_ = _data_->self->cpu_stats;
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22__length1 = _data_->self->cpu_stats_length1;
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp23_ = _data_->_vala1_stat;
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp24_ = _data_->_tmp23_.cpu_guest_percent;
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_vala_array_add3 (&_data_->self->cpu_stats, &_data_->self->cpu_stats_length1, &_data_->self->_cpu_stats_size_, _data_->_tmp24_);
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25_ = _data_->self->net_stats;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25__length1 = _data_->self->net_stats_length1;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp26_ = _data_->_vala1_stat;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp27_ = _data_->_tmp26_.net_read;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp28_ = _data_->_vala1_stat;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp29_ = _data_->_tmp28_.net_write;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_vala_array_add4 (&_data_->self->net_stats, &_data_->self->net_stats_length1, &_data_->self->_net_stats_size_, _data_->_tmp27_ + _data_->_tmp29_);
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30_ = _data_->self->io_stats;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30__length1 = _data_->self->io_stats_length1;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp31_ = _data_->_vala1_stat;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp32_ = _data_->_tmp31_.disk_read;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp33_ = _data_->_vala1_stat;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp34_ = _data_->_tmp33_.disk_write;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_vala_array_add5 (&_data_->self->io_stats, &_data_->self->io_stats_length1, &_data_->self->_io_stats_size_, _data_->_tmp32_ + _data_->_tmp34_);
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_libvirt_machine_machine_stat_destroy (&_data_->_vala1_stat);
#line 2978 "libvirt-machine.c"
			}
		}
	}
#line 236 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_emit_by_name (_data_->self, "stats-updated");
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2988 "libvirt-machine.c"
	} else {
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2992 "libvirt-machine.c"
	}
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 2998 "libvirt-machine.c"
}


static Block12Data* block12_data_ref (Block12Data* _data12_) {
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data12_->_ref_count_);
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data12_;
#line 3007 "libvirt-machine.c"
}


static void block12_data_unref (void * _userdata_) {
	Block12Data* _data12_;
	_data12_ = (Block12Data*) _userdata_;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data12_->_ref_count_)) {
#line 3016 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data12_->self;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block12Data, _data12_);
#line 3024 "libvirt-machine.c"
	}
}


static void __lambda68_ (Block12Data* _data12_) {
	BoxesLibvirtMachine * self;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data12_->self;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data12_->stats_updating = FALSE;
#line 3035 "libvirt-machine.c"
}


static void ___lambda68__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda68_ (self);
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block12_data_unref (self);
#line 3044 "libvirt-machine.c"
}


static gboolean ___lambda65_ (Block12Data* _data12_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	gboolean _tmp0_;
#line 247 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data12_->self;
#line 248 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data12_->stats_updating;
#line 248 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 3058 "libvirt-machine.c"
		const gchar* _tmp1_;
		const gchar* _tmp2_;
#line 249 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 249 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 249 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:249: Fetching of stats for '%s' is taking too lon" \
"g. Probably a libvirt bug.", _tmp2_);
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		result = TRUE;
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return result;
#line 3071 "libvirt-machine.c"
	}
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data12_->stats_updating = TRUE;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_stats (self, ___lambda68__gasync_ready_callback, block12_data_ref (_data12_));
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = TRUE;
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3081 "libvirt-machine.c"
}


static gboolean ____lambda65__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda65_ (self);
#line 247 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3090 "libvirt-machine.c"
}


static void boxes_libvirt_machine_set_stats_enable (BoxesLibvirtMachine* self, gboolean enable) {
	gboolean _tmp0_;
#line 239 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = enable;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 3102 "libvirt-machine.c"
		Block12Data* _data12_;
		const gchar* _tmp1_;
		const gchar* _tmp2_;
		gchar* _tmp3_;
		gchar* _tmp4_;
		guint _tmp5_;
		GCancellable* _tmp6_;
		guint _tmp7_ = 0U;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data12_ = g_slice_new0 (Block12Data);
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data12_->_ref_count_ = 1;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data12_->self = g_object_ref (self);
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = g_strconcat ("enable statistics for ", _tmp2_, NULL);
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:241: %s", _tmp4_);
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp4_);
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = self->priv->stats_update_timeout;
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp5_ != ((guint) 0)) {
#line 243 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block12_data_unref (_data12_);
#line 243 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data12_ = NULL;
#line 243 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3139 "libvirt-machine.c"
		}
#line 245 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->priv->stats_cancellable;
#line 245 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_cancellable_reset (_tmp6_);
#line 246 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data12_->stats_updating = FALSE;
#line 247 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 1, ____lambda65__gsource_func, block12_data_ref (_data12_), block12_data_unref);
#line 247 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->stats_update_timeout = _tmp7_;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block12_data_unref (_data12_);
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data12_ = NULL;
#line 3155 "libvirt-machine.c"
	} else {
		const gchar* _tmp8_;
		const gchar* _tmp9_;
		gchar* _tmp10_;
		gchar* _tmp11_;
		guint _tmp12_;
#line 260 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 260 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_;
#line 260 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = g_strconcat ("disable statistics for ", _tmp9_, NULL);
#line 260 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _tmp10_;
#line 260 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:260: %s", _tmp11_);
#line 260 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp11_);
#line 261 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = self->priv->stats_update_timeout;
#line 261 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp12_ != ((guint) 0)) {
#line 3178 "libvirt-machine.c"
			GCancellable* _tmp13_;
			guint _tmp14_;
#line 262 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp13_ = self->priv->stats_cancellable;
#line 262 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_cancellable_cancel (_tmp13_);
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp14_ = self->priv->stats_update_timeout;
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_source_remove (_tmp14_);
#line 3189 "libvirt-machine.c"
		}
#line 265 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->stats_update_timeout = (guint) 0;
#line 3193 "libvirt-machine.c"
	}
}


void boxes_libvirt_machine_try_change_name (BoxesLibvirtMachine* self, const gchar* name, GError** error) {
	GError * _inner_error_ = NULL;
#line 269 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 269 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (name != NULL);
#line 3204 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* config;
		GVirConfigDomain* _tmp2_;
		const gchar* _tmp3_;
		GVirDomain* _tmp4_;
		GVirConfigDomain* _tmp5_;
		const gchar* _tmp6_;
#line 271 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 271 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 271 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		config = _tmp1_;
#line 271 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 3222 "libvirt-machine.c"
			goto __catch21_g_error;
		}
#line 273 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = config;
#line 273 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = name;
#line 273 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_config_domain_set_title (_tmp2_, _tmp3_);
#line 275 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->domain;
#line 275 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = config;
#line 275 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_set_config (_tmp4_, _tmp5_, &_inner_error_);
#line 275 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 275 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (config);
#line 3241 "libvirt-machine.c"
			goto __catch21_g_error;
		}
#line 277 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = name;
#line 277 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_collection_item_set_name ((BoxesCollectionItem*) self, _tmp6_);
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 3250 "libvirt-machine.c"
	}
	goto __finally21;
	__catch21_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp7_;
		const gchar* _tmp8_ = NULL;
		const gchar* _tmp9_;
		GError* _tmp10_;
		const gchar* _tmp11_;
		GError* _tmp12_;
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = self->domain;
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_domain_get_name (_tmp7_);
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = name;
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _error_;
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _tmp10_->message;
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:279: Failed to change title of box '%s' to '%s': " \
"%s", _tmp8_, _tmp9_, _tmp11_);
#line 281 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, "Invalid libvirt title");
#line 281 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = _tmp12_;
#line 281 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 3284 "libvirt-machine.c"
		goto __finally21;
	}
	__finally21:
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3296 "libvirt-machine.c"
		} else {
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3304 "libvirt-machine.c"
		}
	}
}


static void ___lambda69_ (BoxesLibvirtMachine* self, BoxesProperty* property, const gchar* name, GError** error) {
	const gchar* _tmp0_;
	GError * _inner_error_ = NULL;
#line 290 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 290 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (name != NULL);
#line 291 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = name;
#line 291 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_try_change_name (self, _tmp0_, &_inner_error_);
#line 291 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 291 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 291 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 291 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3329 "libvirt-machine.c"
		} else {
#line 291 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 291 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 291 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3337 "libvirt-machine.c"
		}
	}
}


static void ____lambda69__property_string_changed (BoxesProperty* property, const gchar* value, gpointer self, GError** error) {
#line 290 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda69_ (self, property, value, error);
#line 3346 "libvirt-machine.c"
}


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


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


static GList* boxes_libvirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page) {
	BoxesLibvirtMachine * self;
	GList* result = NULL;
	GList* list;
	BoxesPropertiesPage _tmp0_;
	BoxesDisplay* _tmp28_;
	BoxesDisplay* _tmp29_;
	BoxesPropertiesPage _tmp30_;
	GList* _tmp31_ = NULL;
#line 285 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 286 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	list = NULL;
#line 288 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = page;
#line 288 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_tmp0_) {
#line 288 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_LOGIN:
#line 3385 "libvirt-machine.c"
		{
			const gchar* _tmp1_ = NULL;
			const gchar* _tmp2_;
			const gchar* _tmp3_;
			BoxesProperty* _tmp4_ = NULL;
			BoxesProperty* _tmp5_;
			const gchar* _tmp6_ = NULL;
			BoxesCollectionSource* _tmp7_;
			gchar* _tmp8_;
			gchar* _tmp9_;
			gchar* _tmp10_;
			BoxesProperty* _tmp11_ = NULL;
			BoxesProperty* _tmp12_;
			const gchar* _tmp13_ = NULL;
			BoxesDisplay* _tmp14_;
			BoxesDisplay* _tmp15_;
			gchar* _tmp16_;
			gchar* _tmp17_;
			gchar* _tmp18_;
			BoxesProperty* _tmp19_ = NULL;
			BoxesProperty* _tmp20_;
#line 290 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp1_ = _ ("Name");
#line 290 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp2_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 290 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = _tmp2_;
#line 290 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp4_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp1_, _tmp3_, ____lambda69__property_string_changed, self);
#line 290 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp5_ = _tmp4_;
#line 290 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_tmp5_);
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = _ ("Virtualizer");
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = ((BoxesMachine*) self)->source;
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = boxes_collection_source_get_uri (_tmp7_);
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = _tmp8_;
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp10_ = _tmp9_;
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp11_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp6_, _tmp10_, NULL, NULL);
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp12_ = _tmp11_;
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_tmp12_);
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp10_);
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp13_ = _ ("URI");
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp14_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp15_ = _tmp14_;
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp16_ = boxes_display_get_uri (_tmp15_);
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp17_ = _tmp16_;
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp18_ = _tmp17_;
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp19_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp13_, _tmp18_, NULL, NULL);
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp20_ = _tmp19_;
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_tmp20_);
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp18_);
#line 295 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 3459 "libvirt-machine.c"
		}
#line 288 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_SYSTEM:
#line 3463 "libvirt-machine.c"
		{
#line 298 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_add_ram_property (self, &list);
#line 299 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_add_storage_property (self, &list);
#line 300 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 3471 "libvirt-machine.c"
		}
#line 288 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_DISPLAY:
#line 3475 "libvirt-machine.c"
		{
			const gchar* _tmp21_ = NULL;
			BoxesDisplay* _tmp22_;
			BoxesDisplay* _tmp23_;
			const gchar* _tmp24_;
			const gchar* _tmp25_;
			BoxesProperty* _tmp26_ = NULL;
			BoxesProperty* _tmp27_;
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp21_ = _ ("Protocol");
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp22_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp23_ = _tmp22_;
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp24_ = boxes_display_get_protocol (_tmp23_);
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp25_ = _tmp24_;
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp26_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp21_, _tmp25_, NULL, NULL);
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp27_ = _tmp26_;
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_tmp27_);
#line 304 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 3502 "libvirt-machine.c"
		}
		default:
#line 288 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 3507 "libvirt-machine.c"
	}
#line 307 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp28_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 307 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp29_ = _tmp28_;
#line 307 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp30_ = page;
#line 307 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp31_ = boxes_display_get_properties (_tmp29_, _tmp30_);
#line 307 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	list = g_list_concat (list, _tmp31_);
#line 309 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = list;
#line 309 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3523 "libvirt-machine.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1418 "../vapi/upstream/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1419 "../vapi/upstream/glib-2.0.vapi"
	result = self;
#line 1419 "../vapi/upstream/glib-2.0.vapi"
	return result;
#line 3535 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_display (BoxesLibvirtMachine* self) {
	gchar* type = NULL;
	gchar* port = NULL;
	gchar* socket = NULL;
	gchar* host = NULL;
	gboolean _tmp31_ = FALSE;
	const gchar* _tmp32_;
	gboolean _tmp34_;
	const gchar* _tmp36_;
	const gchar* _tmp37_;
	GQuark _tmp39_ = 0U;
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	static GQuark _tmp38_label0 = 0;
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	static GQuark _tmp38_label1 = 0;
#line 3554 "libvirt-machine.c"
	GError * _inner_error_ = NULL;
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 315 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 3560 "libvirt-machine.c"
	{
		GVirConfigDomain* _tmp0_;
		gchar* _tmp1_ = NULL;
		gchar* xmldoc;
		const gchar* _tmp2_;
		gchar* _tmp3_ = NULL;
		gchar* _tmp4_;
		const gchar* _tmp5_;
		const gchar* _tmp6_;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_;
		gchar* _tmp12_;
		const gchar* _tmp13_;
		const gchar* _tmp14_;
		const gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		gchar* _tmp17_;
		gchar* _tmp18_ = NULL;
		gchar* _tmp19_;
		gchar* _tmp20_;
		const gchar* _tmp21_;
		const gchar* _tmp22_;
		const gchar* _tmp23_ = NULL;
		gchar* _tmp24_ = NULL;
		gchar* _tmp25_;
		gchar* _tmp26_ = NULL;
		gchar* _tmp27_;
		gchar* _tmp28_;
#line 318 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain_config;
#line 318 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_config_object_to_xml ((GVirConfigObject*) _tmp0_);
#line 318 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		xmldoc = _tmp1_;
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = xmldoc;
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = boxes_extract_xpath (_tmp2_, "string(/domain/devices/graphics/@type)", TRUE, &_inner_error_);
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 3608 "libvirt-machine.c"
			goto __catch22_g_error;
		}
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (type);
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		type = _tmp4_;
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = xmldoc;
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = type;
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = string_to_string (_tmp6_);
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp7_, "']/@port)", NULL);
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_;
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = boxes_extract_xpath (_tmp5_, _tmp9_, FALSE, &_inner_error_);
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _tmp10_;
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp9_);
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = _tmp11_;
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 3637 "libvirt-machine.c"
			goto __catch22_g_error;
		}
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (port);
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		port = _tmp12_;
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = xmldoc;
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = type;
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = string_to_string (_tmp14_);
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp16_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp15_, "']/@socket)", NULL);
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp17_ = _tmp16_;
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp18_ = boxes_extract_xpath (_tmp13_, _tmp17_, FALSE, &_inner_error_);
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp19_ = _tmp18_;
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp17_);
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp20_ = _tmp19_;
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 3666 "libvirt-machine.c"
			goto __catch22_g_error;
		}
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (socket);
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		socket = _tmp20_;
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp21_ = xmldoc;
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp22_ = type;
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp23_ = string_to_string (_tmp22_);
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp24_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp23_, "']/@listen)", NULL);
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp25_ = _tmp24_;
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp26_ = boxes_extract_xpath (_tmp21_, _tmp25_, FALSE, &_inner_error_);
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp27_ = _tmp26_;
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp25_);
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp28_ = _tmp27_;
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 3695 "libvirt-machine.c"
			goto __catch22_g_error;
		}
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (host);
#line 322 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		host = _tmp28_;
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (xmldoc);
#line 3704 "libvirt-machine.c"
	}
	goto __finally22;
	__catch22_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp29_;
		const gchar* _tmp30_;
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 324 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp29_ = _error_;
#line 324 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp30_ = _tmp29_->message;
#line 324 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:324: %s", _tmp30_);
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (host);
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (socket);
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (port);
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (type);
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3734 "libvirt-machine.c"
	}
	__finally22:
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (host);
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (socket);
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (port);
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (type);
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 317 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3753 "libvirt-machine.c"
	}
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp32_ = host;
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp32_ == NULL) {
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp31_ = TRUE;
#line 3761 "libvirt-machine.c"
	} else {
		const gchar* _tmp33_;
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp33_ = host;
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp31_ = g_strcmp0 (_tmp33_, "") == 0;
#line 3768 "libvirt-machine.c"
	}
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp34_ = _tmp31_;
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp34_) {
#line 3774 "libvirt-machine.c"
		gchar* _tmp35_;
#line 329 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp35_ = g_strdup ("localhost");
#line 329 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (host);
#line 329 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		host = _tmp35_;
#line 3782 "libvirt-machine.c"
	}
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp36_ = type;
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp37_ = _tmp36_;
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp39_ = (NULL == _tmp37_) ? 0 : g_quark_from_string (_tmp37_);
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp39_ == ((0 != _tmp38_label0) ? _tmp38_label0 : (_tmp38_label0 = g_quark_from_static_string ("spice")))) {
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 3794 "libvirt-machine.c"
			default:
			{
				BoxesDisplayConfig* _tmp40_;
				const gchar* _tmp41_;
				const gchar* _tmp42_;
				gint _tmp43_ = 0;
				BoxesSpiceDisplay* _tmp44_;
				BoxesSpiceDisplay* _tmp45_;
#line 333 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp40_ = ((BoxesMachine*) self)->config;
#line 333 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp41_ = host;
#line 333 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp42_ = port;
#line 333 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp43_ = atoi (_tmp42_);
#line 333 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp44_ = boxes_spice_display_new (_tmp40_, _tmp41_, _tmp43_);
#line 333 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp45_ = _tmp44_;
#line 333 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_display ((BoxesMachine*) self, (BoxesDisplay*) _tmp45_);
#line 333 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_tmp45_);
#line 334 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 3821 "libvirt-machine.c"
			}
		}
	} else if (_tmp39_ == ((0 != _tmp38_label1) ? _tmp38_label1 : (_tmp38_label1 = g_quark_from_static_string ("vnc")))) {
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 3827 "libvirt-machine.c"
			default:
			{
				BoxesDisplayConfig* _tmp46_;
				const gchar* _tmp47_;
				const gchar* _tmp48_;
				gint _tmp49_ = 0;
				BoxesVncDisplay* _tmp50_;
				BoxesVncDisplay* _tmp51_;
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp46_ = ((BoxesMachine*) self)->config;
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp47_ = host;
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp48_ = port;
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp49_ = atoi (_tmp48_);
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp50_ = boxes_vnc_display_new (_tmp46_, _tmp47_, _tmp49_);
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp51_ = _tmp50_;
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_display ((BoxesMachine*) self, (BoxesDisplay*) _tmp51_);
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_tmp51_);
#line 338 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 3854 "libvirt-machine.c"
			}
		}
	} else {
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 3860 "libvirt-machine.c"
			default:
			{
				const gchar* _tmp52_;
				gchar* _tmp53_;
				gchar* _tmp54_;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp52_ = type;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp53_ = g_strconcat ("unsupported display of type ", _tmp52_, NULL);
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp54_ = _tmp53_;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_warning ("libvirt-machine.vala:341: %s", _tmp54_);
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp54_);
#line 342 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 3878 "libvirt-machine.c"
			}
		}
	}
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (host);
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (socket);
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (port);
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (type);
#line 3890 "libvirt-machine.c"
}


static gchar* boxes_libvirt_machine_real_get_screenshot_prefix (BoxesMachine* base) {
	BoxesLibvirtMachine * self;
	gchar* result = NULL;
	GVirDomain* _tmp0_;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
#line 346 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 347 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->domain;
#line 347 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_get_uuid (_tmp0_);
#line 347 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 347 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp2_;
#line 347 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3912 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_take_screenshot_data_free (gpointer _data) {
	BoxesLibvirtMachineTakeScreenshotData* _data_;
	_data_ = _data;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->result);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineTakeScreenshotData, _data_);
#line 3925 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_take_screenshot (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineTakeScreenshotData* _data_;
	BoxesLibvirtMachine* _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineTakeScreenshotData);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_real_take_screenshot);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_real_take_screenshot_data_free);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_take_screenshot_co (_data_);
#line 3947 "libvirt-machine.c"
}


static GdkPixbuf* boxes_libvirt_machine_real_take_screenshot_finish (BoxesMachine* base, GAsyncResult* _res_, GError** error) {
	GdkPixbuf* result;
	BoxesLibvirtMachineTakeScreenshotData* _data_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 3958 "libvirt-machine.c"
	}
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _data_->result;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->result = NULL;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3968 "libvirt-machine.c"
}


static Block13Data* block13_data_ref (Block13Data* _data13_) {
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data13_->_ref_count_);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data13_;
#line 3977 "libvirt-machine.c"
}


static void block13_data_unref (void * _userdata_) {
	Block13Data* _data13_;
	_data13_ = (Block13Data*) _userdata_;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data13_->_ref_count_)) {
#line 3986 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data13_->self;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data13_->stream);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block13Data, _data13_);
#line 3996 "libvirt-machine.c"
	}
}


static void boxes_libvirt_machine_take_screenshot_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineTakeScreenshotData* _data_;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_take_screenshot_co (_data_);
#line 4011 "libvirt-machine.c"
}


static void __lambda78_ (Block13Data* _data13_, GError** error) {
	BoxesLibvirtMachine * self;
	GVirDomain* _tmp0_;
	GVirStream* _tmp1_;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_;
	GError * _inner_error_ = NULL;
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data13_->self;
#line 363 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->domain;
#line 363 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _data13_->stream;
#line 363 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_domain_screenshot (_tmp0_, _tmp1_, (guint) 0, (guint) 0, &_inner_error_);
#line 363 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 363 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp3_);
#line 363 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 363 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 363 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 4040 "libvirt-machine.c"
	}
}


static void ___lambda78__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda78_ (self, error);
#line 4048 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_real_take_screenshot_co (BoxesLibvirtMachineTakeScreenshotData* _data_) {
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 4057 "libvirt-machine.c"
		goto _state_0;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 4061 "libvirt-machine.c"
		goto _state_1;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 4065 "libvirt-machine.c"
		goto _state_2;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 4069 "libvirt-machine.c"
		goto _state_3;
		default:
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 4074 "libvirt-machine.c"
	}
	_state_0:
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data13_ = g_slice_new0 (Block13Data);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data13_->_ref_count_ = 1;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data13_->self = g_object_ref (_data_->self);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data13_->_async_data_ = _data_;
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->state = GVIR_DOMAIN_STATE_NONE;
#line 4087 "libvirt-machine.c"
	{
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = _data_->self->domain;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_get_info_async (_data_->_tmp0_, NULL, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 4097 "libvirt-machine.c"
		_state_1:
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = NULL;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = gvir_domain_get_info_finish (_data_->_tmp0_, _data_->_res_, &_data_->_inner_error_);
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_ = _data_->_tmp1_;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 4107 "libvirt-machine.c"
			goto __catch23_g_error;
		}
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->_tmp2_;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_tmp3_->state;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->state = _data_->_tmp4_;
#line 353 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_data_->_tmp3_);
#line 4118 "libvirt-machine.c"
	}
	goto __finally23;
	__catch23_g_error:
	{
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_;
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:355: Failed to get information on '%s'", _data_->_tmp6_);
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->_error_);
#line 4135 "libvirt-machine.c"
	}
	__finally23:
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block13_data_unref (_data_->_data13_);
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data13_ = NULL;
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4152 "libvirt-machine.c"
		} else {
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4156 "libvirt-machine.c"
		}
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 4162 "libvirt-machine.c"
	}
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp8_ = _data_->state;
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp8_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->state;
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = _data_->_tmp9_ != GVIR_DOMAIN_STATE_PAUSED;
#line 4172 "libvirt-machine.c"
	} else {
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = FALSE;
#line 4176 "libvirt-machine.c"
	}
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp10_ = _data_->_tmp7_;
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp10_) {
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->result = NULL;
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block13_data_unref (_data_->_data13_);
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data13_ = NULL;
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4192 "libvirt-machine.c"
		} else {
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4196 "libvirt-machine.c"
		}
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 4202 "libvirt-machine.c"
	}
#line 361 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp11_ = _data_->self->connection;
#line 361 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp12_ = NULL;
#line 361 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp12_ = gvir_connection_get_stream (_data_->_tmp11_, (guint) 0);
#line 361 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data13_->stream = _data_->_tmp12_;
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 2;
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_run_in_thread (___lambda78__boxes_run_in_thread_func, _data_->_data13_, NULL, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 4218 "libvirt-machine.c"
	_state_2:
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block13_data_unref (_data_->_data13_);
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data13_ = NULL;
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4236 "libvirt-machine.c"
		} else {
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4240 "libvirt-machine.c"
		}
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 4246 "libvirt-machine.c"
	}
#line 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp13_ = gdk_pixbuf_loader_new ();
#line 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->loader = _data_->_tmp13_;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp14_ = _data_->_data13_->stream;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp15_ = NULL;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp15_ = g_io_stream_get_input_stream ((GIOStream*) _data_->_tmp14_);
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp16_ = _g_object_ref0 (_data_->_tmp15_);
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->input_stream = _data_->_tmp16_;
#line 368 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = NULL;
#line 368 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = g_new0 (guint8, 65535);
#line 368 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = _data_->_tmp17_;
#line 368 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer_length1 = 65535;
#line 368 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_buffer_size_ = _data_->buffer_length1;
#line 369 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->length = (gssize) 0;
#line 4274 "libvirt-machine.c"
	{
#line 370 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp18_ = TRUE;
#line 370 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		while (TRUE) {
#line 370 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp19_ = _data_->_tmp18_;
#line 370 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (!_data_->_tmp19_) {
#line 373 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp20_ = _data_->length;
#line 373 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (!(_data_->_tmp20_ > ((gssize) 0))) {
#line 373 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					break;
#line 4290 "libvirt-machine.c"
				}
			}
#line 370 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = FALSE;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = _data_->input_stream;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22_ = _data_->buffer;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22__length1 = _data_->buffer_length1;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_state_ = 3;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_input_stream_read_async (_data_->_tmp21_, _data_->_tmp22_, (gsize) _data_->_tmp22__length1, G_PRIORITY_DEFAULT, NULL, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 4307 "libvirt-machine.c"
			_state_3:
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp23_ = 0L;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp23_ = g_input_stream_read_finish (_data_->_tmp21_, _data_->_res_, &_data_->_inner_error_);
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp24_ = _data_->_tmp23_;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->buffer = (g_free (_data_->buffer), NULL);
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->input_stream);
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->loader);
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block13_data_unref (_data_->_data13_);
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_data13_ = NULL;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4335 "libvirt-machine.c"
				} else {
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 4339 "libvirt-machine.c"
				}
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 4345 "libvirt-machine.c"
			}
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->length = _data_->_tmp24_;
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp25_ = _data_->loader;
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp26_ = _data_->buffer;
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp26__length1 = _data_->buffer_length1;
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp27_ = _data_->length;
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gdk_pixbuf_loader_write (_data_->_tmp25_, _data_->_tmp26_ + 0, (gsize) (_data_->_tmp27_ - 0), &_data_->_inner_error_);
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->buffer = (g_free (_data_->buffer), NULL);
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->input_stream);
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->loader);
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block13_data_unref (_data_->_data13_);
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_data13_ = NULL;
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4379 "libvirt-machine.c"
				} else {
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 4383 "libvirt-machine.c"
				}
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 372 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 4389 "libvirt-machine.c"
			}
		}
	}
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp28_ = _data_->loader;
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gdk_pixbuf_loader_close (_data_->_tmp28_, &_data_->_inner_error_);
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->buffer = (g_free (_data_->buffer), NULL);
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data_->input_stream);
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data_->loader);
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block13_data_unref (_data_->_data13_);
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data13_ = NULL;
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4417 "libvirt-machine.c"
		} else {
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4421 "libvirt-machine.c"
		}
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 4427 "libvirt-machine.c"
	}
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp29_ = _data_->loader;
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp30_ = NULL;
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp30_ = gdk_pixbuf_loader_get_pixbuf (_data_->_tmp29_);
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp31_ = _g_object_ref0 (_data_->_tmp30_);
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->result = _data_->_tmp31_;
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = (g_free (_data_->buffer), NULL);
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->input_stream);
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->loader);
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block13_data_unref (_data_->_data13_);
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data13_ = NULL;
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4453 "libvirt-machine.c"
	} else {
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4457 "libvirt-machine.c"
	}
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = (g_free (_data_->buffer), NULL);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->input_stream);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->loader);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block13_data_unref (_data_->_data13_);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data13_ = NULL;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4477 "libvirt-machine.c"
	} else {
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4481 "libvirt-machine.c"
	}
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 4487 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_delete (BoxesMachine* base, gboolean by_user) {
	BoxesLibvirtMachine * self;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
	GError * _inner_error_ = NULL;
#line 379 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = g_strconcat ("delete libvirt machine: ", _tmp1_, NULL);
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:380: %s", _tmp3_);
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp3_);
#line 381 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = by_user;
#line 381 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (boxes_libvirt_machine_parent_class)->delete (G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_MACHINE, BoxesMachine), _tmp4_);
#line 383 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_set_stats_enable (self, FALSE);
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = by_user;
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_) {
#line 386 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_force_shutdown (self, FALSE);
#line 4526 "libvirt-machine.c"
		{
			GVirConnection* _tmp6_;
			BoxesApp* _tmp7_;
			GVirConnection* _tmp8_;
			GVirConnection* _tmp9_;
			GVirDomain* _tmp15_;
#line 389 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = self->connection;
#line 389 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = boxes_app_app;
#line 389 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = boxes_app_get_default_connection (_tmp7_);
#line 389 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = _tmp8_;
#line 389 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp6_ == _tmp9_) {
#line 4543 "libvirt-machine.c"
				GVirConnection* _tmp10_;
				GVirDomain* _tmp11_;
				GVirStorageVol* _tmp12_ = NULL;
				GVirStorageVol* volume;
				GVirStorageVol* _tmp13_;
#line 390 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp10_ = self->connection;
#line 390 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp11_ = self->domain;
#line 390 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp12_ = boxes_get_storage_volume (_tmp10_, _tmp11_, NULL);
#line 390 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				volume = _tmp12_;
#line 391 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp13_ = volume;
#line 391 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_tmp13_ != NULL) {
#line 4561 "libvirt-machine.c"
					GVirStorageVol* _tmp14_;
#line 392 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp14_ = volume;
#line 392 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					gvir_storage_vol_delete (_tmp14_, (guint) 0, &_inner_error_);
#line 392 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_inner_error_ != NULL) {
#line 392 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (volume);
#line 4571 "libvirt-machine.c"
						goto __catch24_g_error;
					}
				}
#line 389 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (volume);
#line 4577 "libvirt-machine.c"
			}
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp15_ = self->domain;
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_delete (_tmp15_, (guint) GVIR_DOMAIN_DELETE_SAVED_STATE, &_inner_error_);
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 4585 "libvirt-machine.c"
				goto __catch24_g_error;
			}
		}
		goto __finally24;
		__catch24_g_error:
		{
			GError* err = NULL;
			GError* _tmp16_;
			const gchar* _tmp17_;
#line 388 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			err = _inner_error_;
#line 388 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_inner_error_ = NULL;
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp16_ = err;
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp17_ = _tmp16_->message;
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_warning ("libvirt-machine.vala:396: %s", _tmp17_);
#line 388 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_error_free0 (err);
#line 4607 "libvirt-machine.c"
		}
		__finally24:
#line 388 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 388 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 388 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 388 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 4618 "libvirt-machine.c"
		}
	}
}


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


void boxes_libvirt_machine_suspend (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineSuspendData* _data_;
	BoxesLibvirtMachine* _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineSuspendData);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_suspend);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_suspend_data_free);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_suspend_co (_data_);
#line 4650 "libvirt-machine.c"
}


void boxes_libvirt_machine_suspend_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtMachineSuspendData* _data_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 4660 "libvirt-machine.c"
	}
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 4664 "libvirt-machine.c"
}


static void boxes_libvirt_machine_suspend_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineSuspendData* _data_;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_suspend_co (_data_);
#line 4678 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_suspend_co (BoxesLibvirtMachineSuspendData* _data_) {
#line 401 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 401 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 4687 "libvirt-machine.c"
		goto _state_0;
#line 401 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 4691 "libvirt-machine.c"
		goto _state_1;
		default:
#line 401 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 4696 "libvirt-machine.c"
	}
	_state_0:
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = boxes_libvirt_machine_get_save_on_quit (_data_->self);
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp2_) {
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->self->domain;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_save_async (_data_->_tmp3_, (guint) 0, NULL, boxes_libvirt_machine_suspend_ready, _data_);
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 4713 "libvirt-machine.c"
		_state_1:
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = FALSE;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = gvir_domain_save_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = _data_->_tmp4_;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4731 "libvirt-machine.c"
			} else {
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 4735 "libvirt-machine.c"
			}
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 4741 "libvirt-machine.c"
		}
	} else {
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->self->domain;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = FALSE;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = gvir_domain_suspend (_data_->_tmp5_, &_data_->_inner_error_);
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = _data_->_tmp6_;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4762 "libvirt-machine.c"
			} else {
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 4766 "libvirt-machine.c"
			}
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 4772 "libvirt-machine.c"
		}
	}
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp7_ = _data_->_tmp0_;
#line 401 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 401 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4781 "libvirt-machine.c"
	} else {
#line 401 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4785 "libvirt-machine.c"
	}
#line 401 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 401 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 4791 "libvirt-machine.c"
}


void boxes_libvirt_machine_force_shutdown (BoxesLibvirtMachine* self, gboolean confirm) {
	gboolean _tmp0_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	GError * _inner_error_ = NULL;
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 406 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = confirm;
#line 406 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 4806 "libvirt-machine.c"
		BoxesApp* _tmp1_;
		GtkApplicationWindow* _tmp2_;
		const gchar* _tmp3_ = NULL;
		GtkMessageDialog* _tmp4_;
		GtkMessageDialog* dialog;
		GtkMessageDialog* _tmp5_;
		gint _tmp6_ = 0;
		gint response;
		GtkMessageDialog* _tmp7_;
		gint _tmp8_;
#line 407 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_app_app;
#line 407 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_->window;
#line 407 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _ ("When you force shutdown, the box may lose data.");
#line 407 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) _tmp2_, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL, _tmp3_);
#line 407 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_ref_sink (_tmp4_);
#line 407 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		dialog = _tmp4_;
#line 412 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = dialog;
#line 412 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = gtk_dialog_run ((GtkDialog*) _tmp5_);
#line 412 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		response = _tmp6_;
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = dialog;
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp7_);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = response;
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp8_ != ((gint) GTK_RESPONSE_OK)) {
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (dialog);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 4847 "libvirt-machine.c"
		}
#line 406 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (dialog);
#line 4851 "libvirt-machine.c"
	}
#line 419 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 419 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = _tmp9_;
#line 419 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:419: Force shutdown '%s'..", _tmp10_);
#line 4859 "libvirt-machine.c"
	{
		GVirDomain* _tmp11_;
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = self->domain;
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_stop (_tmp11_, (guint) 0, &_inner_error_);
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 4868 "libvirt-machine.c"
			goto __catch25_g_error;
		}
	}
	goto __finally25;
	__catch25_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp12_;
		const gchar* _tmp13_ = NULL;
		GError* _tmp14_;
		const gchar* _tmp15_;
#line 420 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 420 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = self->domain;
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = gvir_domain_get_name (_tmp12_);
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = _error_;
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _tmp14_->message;
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:423: Failed to shutdown '%s': %s", _tmp13_, _tmp15_);
#line 420 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 4896 "libvirt-machine.c"
	}
	__finally25:
#line 420 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 420 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 420 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 420 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 4907 "libvirt-machine.c"
	}
}


static GVirDomainDisk* boxes_libvirt_machine_get_domain_disk (BoxesLibvirtMachine* self, GError** error) {
	GVirDomainDisk* result = NULL;
	GVirDomainDisk* _tmp0_;
	GVirDomainDisk* disk;
	GVirConfigDomain* _tmp1_;
	GList* _tmp2_ = NULL;
#line 427 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (NULL, gvir_domain_disk_get_type ()) ? ((GVirDomainDisk*) NULL) : NULL);
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	disk = _tmp0_;
#line 430 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = self->domain_config;
#line 430 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_config_domain_get_devices (_tmp1_);
#line 4928 "libvirt-machine.c"
	{
		GList* device_config_collection = NULL;
		GList* device_config_it = NULL;
#line 430 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		device_config_collection = _tmp2_;
#line 430 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (device_config_it = device_config_collection; device_config_it != NULL; device_config_it = device_config_it->next) {
#line 4936 "libvirt-machine.c"
			GVirConfigDomainDevice* _tmp3_;
			GVirConfigDomainDevice* device_config = NULL;
#line 430 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_config_it->data);
#line 430 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			device_config = _tmp3_;
#line 4943 "libvirt-machine.c"
			{
				GVirConfigDomainDevice* _tmp4_;
#line 431 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp4_ = device_config;
#line 431 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gvir_config_domain_disk_get_type ())) {
#line 4950 "libvirt-machine.c"
					GVirConfigDomainDevice* _tmp5_;
					GVirConfigDomainDisk* _tmp6_;
					GVirConfigDomainDisk* disk_config;
					GVirConfigDomainDisk* _tmp7_;
					GVirConfigDomainDiskGuestDeviceType _tmp8_ = 0;
					GVirConfigDomainDiskGuestDeviceType disk_type;
					gboolean _tmp9_ = FALSE;
					GVirConfigDomainDiskGuestDeviceType _tmp10_;
					gboolean _tmp14_;
#line 432 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp5_ = device_config;
#line 432 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gvir_config_domain_disk_get_type ()) ? ((GVirConfigDomainDisk*) _tmp5_) : NULL);
#line 432 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					disk_config = _tmp6_;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp7_ = disk_config;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp8_ = gvir_config_domain_disk_get_guest_device_type (_tmp7_);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					disk_type = _tmp8_;
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp10_ = disk_type;
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp10_ == GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK) {
#line 4976 "libvirt-machine.c"
						GVirConfigDomainDisk* _tmp11_;
						const gchar* _tmp12_ = NULL;
						const gchar* _tmp13_;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp11_ = disk_config;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp12_ = gvir_config_domain_disk_get_source (_tmp11_);
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp13_ = self->priv->storage_volume_path;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp9_ = g_strcmp0 (_tmp12_, _tmp13_) == 0;
#line 4988 "libvirt-machine.c"
					} else {
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp9_ = FALSE;
#line 4992 "libvirt-machine.c"
					}
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp14_ = _tmp9_;
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp14_) {
#line 4998 "libvirt-machine.c"
						GVirDomain* _tmp15_;
						GVirConfigDomainDevice* _tmp16_;
						GObject* _tmp17_ = NULL;
						GObject* _tmp18_;
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp15_ = self->domain;
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp16_ = device_config;
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp17_ = g_object_new (gvir_domain_disk_get_type (), "domain", _tmp15_, "config", _tmp16_, NULL);
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp18_ = G_IS_INITIALLY_UNOWNED (_tmp17_) ? g_object_ref_sink (_tmp17_) : _tmp17_;
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (disk);
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						disk = G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, gvir_domain_disk_get_type ()) ? ((GVirDomainDisk*) _tmp18_) : NULL;
#line 440 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (disk_config);
#line 440 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (device_config);
#line 440 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						break;
#line 5021 "libvirt-machine.c"
					}
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (disk_config);
#line 5025 "libvirt-machine.c"
				}
#line 431 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (device_config);
#line 5029 "libvirt-machine.c"
			}
		}
#line 431 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__g_list_free__g_object_unref0_0 (device_config_collection);
#line 5034 "libvirt-machine.c"
	}
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = disk;
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 5040 "libvirt-machine.c"
}


static GVirDomainInterface* boxes_libvirt_machine_get_domain_network_interface (BoxesLibvirtMachine* self, GError** error) {
	GVirDomainInterface* result = NULL;
	GVirDomainInterface* _tmp0_;
	GVirDomainInterface* net;
	GVirConfigDomain* _tmp1_;
	GList* _tmp2_ = NULL;
#line 448 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 449 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (NULL, gvir_domain_interface_get_type ()) ? ((GVirDomainInterface*) NULL) : NULL);
#line 449 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	net = _tmp0_;
#line 452 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = self->domain_config;
#line 452 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_config_domain_get_devices (_tmp1_);
#line 5060 "libvirt-machine.c"
	{
		GList* device_config_collection = NULL;
		GList* device_config_it = NULL;
#line 452 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		device_config_collection = _tmp2_;
#line 452 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (device_config_it = device_config_collection; device_config_it != NULL; device_config_it = device_config_it->next) {
#line 5068 "libvirt-machine.c"
			GVirConfigDomainDevice* _tmp3_;
			GVirConfigDomainDevice* device_config = NULL;
#line 452 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_config_it->data);
#line 452 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			device_config = _tmp3_;
#line 5075 "libvirt-machine.c"
			{
				GVirConfigDomainDevice* _tmp4_;
#line 453 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp4_ = device_config;
#line 453 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gvir_config_domain_interface_get_type ())) {
#line 5082 "libvirt-machine.c"
					GVirDomain* _tmp5_;
					GVirConfigDomainDevice* _tmp6_;
					GObject* _tmp7_ = NULL;
					GObject* _tmp8_;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp5_ = self->domain;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp6_ = device_config;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp7_ = g_object_new (gvir_domain_interface_get_type (), "domain", _tmp5_, "config", _tmp6_, NULL);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp8_ = G_IS_INITIALLY_UNOWNED (_tmp7_) ? g_object_ref_sink (_tmp7_) : _tmp7_;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (net);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					net = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gvir_domain_interface_get_type ()) ? ((GVirDomainInterface*) _tmp8_) : NULL;
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (device_config);
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					break;
#line 5103 "libvirt-machine.c"
				}
#line 453 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (device_config);
#line 5107 "libvirt-machine.c"
			}
		}
#line 453 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__g_list_free__g_object_unref0_0 (device_config_collection);
#line 5112 "libvirt-machine.c"
	}
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = net;
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 5118 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_ram_property (BoxesLibvirtMachine* self, BoxesProperty* property) {
	GError * _inner_error_ = NULL;
#line 462 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 462 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 5128 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* config;
		GVirConfigDomain* _tmp2_;
		guint64 _tmp3_;
		guint64 _tmp4_;
		guint64 actual;
		guint64 _tmp5_;
		guint64 _tmp6_;
		guint64 pending;
		guint64 _tmp7_;
		guint64 _tmp8_;
		BoxesProperty* _tmp9_;
		guint64 _tmp10_;
		guint64 _tmp11_;
#line 464 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 464 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 464 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		config = _tmp1_;
#line 464 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 5153 "libvirt-machine.c"
			goto __catch26_g_error;
		}
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = self->domain_config;
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = gvir_config_domain_get_memory (_tmp2_);
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		actual = _tmp4_ / 1024;
#line 468 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = gvir_config_domain_get_memory (config);
#line 468 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _tmp5_;
#line 468 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		pending = _tmp6_ / 1024;
#line 470 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = actual;
#line 470 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = pending;
#line 470 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:470: RAM actual: %llu, pending: %llu", _tmp7_, _tmp8_);
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = property;
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = actual;
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = pending;
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_property_set_changes_pending (_tmp9_, (_tmp10_ - _tmp11_) > ((guint64) 1));
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 5186 "libvirt-machine.c"
	}
	goto __finally26;
	__catch26_g_error:
	{
		GError* e = NULL;
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		e = _inner_error_;
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (e);
#line 5198 "libvirt-machine.c"
	}
	__finally26:
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5209 "libvirt-machine.c"
	}
}


static Block14Data* block14_data_ref (Block14Data* _data14_) {
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data14_->_ref_count_);
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data14_;
#line 5219 "libvirt-machine.c"
}


static void block14_data_unref (void * _userdata_) {
	Block14Data* _data14_;
	_data14_ = (Block14Data*) _userdata_;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data14_->_ref_count_)) {
#line 5228 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data14_->self;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data14_->property);
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block14Data, _data14_);
#line 5238 "libvirt-machine.c"
	}
}


static void _vala_GVirNodeInfo_free (GVirNodeInfo* self) {
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_node_info_get_type (), self);
#line 5246 "libvirt-machine.c"
}


static void _boxes_libvirt_machine_on_ram_changed_property_size_changed (BoxesProperty* property, guint64 value, gpointer self) {
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_on_ram_changed (self, property, value);
#line 5253 "libvirt-machine.c"
}


static void ___lambda76_ (Block14Data* _data14_) {
	BoxesLibvirtMachine * self;
	BoxesMachineMachineState _tmp0_;
	BoxesMachineMachineState _tmp1_;
#line 489 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data14_->self;
#line 490 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 490 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 490 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 5269 "libvirt-machine.c"
		BoxesProperty* _tmp2_;
#line 491 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _data14_->property;
#line 491 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_property_set_changes_pending (_tmp2_, FALSE);
#line 5275 "libvirt-machine.c"
	}
}


static void ____lambda76__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 489 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda76_ (self);
#line 5283 "libvirt-machine.c"
}


static void boxes_libvirt_machine_add_ram_property (BoxesLibvirtMachine* self, GList** list) {
	GError * _inner_error_ = NULL;
#line 477 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 5291 "libvirt-machine.c"
	{
		Block14Data* _data14_;
		GVirConnection* _tmp0_;
		GVirNodeInfo* _tmp1_ = NULL;
		GVirNodeInfo* _tmp2_;
		GVirNodeInfo* _tmp3_;
		gulong _tmp4_;
		gulong _tmp5_;
		gulong max_ram;
		const gchar* _tmp6_ = NULL;
		GVirConfigDomain* _tmp7_;
		guint64 _tmp8_;
		guint64 _tmp9_;
		gulong _tmp10_;
		BoxesProperty* _tmp11_ = NULL;
		BoxesProperty* _tmp12_;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data14_ = g_slice_new0 (Block14Data);
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data14_->_ref_count_ = 1;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data14_->self = g_object_ref (self);
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->connection;
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_connection_get_node_info (_tmp0_, &_inner_error_);
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block14_data_unref (_data14_);
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data14_ = NULL;
#line 5326 "libvirt-machine.c"
			goto __catch27_g_error;
		}
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp2_;
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_->memory;
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp4_;
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirNodeInfo_free0 (_tmp3_);
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		max_ram = _tmp5_;
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _ ("RAM");
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = self->domain_config;
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_config_domain_get_memory (_tmp7_);
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_;
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = max_ram;
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = boxes_iproperties_provider_add_size_property ((BoxesIPropertiesProvider*) self, list, _tmp6_, _tmp9_, (guint64) (OSINFO_MEBIBYTES / OSINFO_KIBIBYTES), (guint64) _tmp10_, (guint64) (OSINFO_MEBIBYTES / OSINFO_KIBIBYTES), _boxes_libvirt_machine_on_ram_changed_property_size_changed, self);
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data14_->property = _tmp11_;
#line 489 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_connect_data ((GObject*) self, "notify::state", (GCallback) ____lambda76__g_object_notify, block14_data_ref (_data14_), (GClosureNotify) block14_data_unref, 0);
#line 494 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = _data14_->property;
#line 494 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_ram_property (self, _tmp12_);
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block14_data_unref (_data14_);
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data14_ = NULL;
#line 5363 "libvirt-machine.c"
	}
	goto __finally27;
	__catch27_g_error:
	{
		GError* _error_ = NULL;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 5375 "libvirt-machine.c"
	}
	__finally27:
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5386 "libvirt-machine.c"
	}
}


static Block15Data* block15_data_ref (Block15Data* _data15_) {
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data15_->_ref_count_);
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data15_;
#line 5396 "libvirt-machine.c"
}


static void block15_data_unref (void * _userdata_) {
	Block15Data* _data15_;
	_data15_ = (Block15Data*) _userdata_;
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data15_->_ref_count_)) {
#line 5405 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data15_->self;
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data15_->property);
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block15Data, _data15_);
#line 5415 "libvirt-machine.c"
	}
}


static gboolean __lambda70_ (Block15Data* _data15_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	BoxesProperty* _tmp12_;
	GError * _inner_error_ = NULL;
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data15_->self;
#line 5427 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* config;
		GVirConfigDomain* _tmp2_;
		guint64 _tmp3_;
		GVirDomain* _tmp4_;
		GVirConfigDomain* _tmp5_;
		guint64 _tmp6_;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		config = _tmp1_;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 5445 "libvirt-machine.c"
			goto __catch28_g_error;
		}
#line 506 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = config;
#line 506 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _data15_->value;
#line 506 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_config_domain_set_memory (_tmp2_, _tmp3_);
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->domain;
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = config;
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_set_config (_tmp4_, _tmp5_, &_inner_error_);
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (config);
#line 5464 "libvirt-machine.c"
			goto __catch28_g_error;
		}
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _data15_->value;
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:508: RAM changed to %llu", _tmp6_);
#line 509 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_notify_reboot_required (self);
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 5475 "libvirt-machine.c"
	}
	goto __finally28;
	__catch28_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp7_;
		const gchar* _tmp8_ = NULL;
		guint64 _tmp9_;
		GError* _tmp10_;
		const gchar* _tmp11_;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 511 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = self->domain;
#line 511 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_domain_get_name (_tmp7_);
#line 511 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _data15_->value;
#line 511 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _error_;
#line 511 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _tmp10_->message;
#line 511 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:511: Failed to change RAM of box '%s' to %llu: %s", _tmp8_, _tmp9_, _tmp11_);
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 5504 "libvirt-machine.c"
	}
	__finally28:
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5515 "libvirt-machine.c"
	}
#line 516 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->ram_update_timeout = (guint) 0;
#line 517 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = _data15_->property;
#line 517 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_ram_property (self, _tmp12_);
#line 519 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = FALSE;
#line 519 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 5527 "libvirt-machine.c"
}


static gboolean ___lambda70__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda70_ (self);
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 5536 "libvirt-machine.c"
}


static void boxes_libvirt_machine_on_ram_changed (BoxesLibvirtMachine* self, BoxesProperty* property, guint64 value) {
	Block15Data* _data15_;
	BoxesProperty* _tmp0_;
	BoxesProperty* _tmp1_;
	guint64 _tmp2_;
	guint _tmp3_;
	guint _tmp5_ = 0U;
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data15_ = g_slice_new0 (Block15Data);
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data15_->_ref_count_ = 1;
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data15_->self = g_object_ref (self);
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = property;
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data15_->property = _tmp1_;
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = value;
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data15_->value = _tmp2_;
#line 500 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = self->priv->ram_update_timeout;
#line 500 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp3_ != ((guint) 0)) {
#line 5571 "libvirt-machine.c"
		guint _tmp4_;
#line 501 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->priv->ram_update_timeout;
#line 501 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_source_remove (_tmp4_);
#line 5577 "libvirt-machine.c"
	}
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 1, ___lambda70__gsource_func, block15_data_ref (_data15_), block15_data_unref);
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->ram_update_timeout = _tmp5_;
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block15_data_unref (_data15_);
#line 498 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data15_ = NULL;
#line 5587 "libvirt-machine.c"
}


void boxes_libvirt_machine_start (BoxesLibvirtMachine* self) {
	BoxesMachineMachineState _tmp0_;
	BoxesMachineMachineState _tmp1_;
	GError * _inner_error_ = NULL;
#line 523 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 524 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 524 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 524 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 525 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5605 "libvirt-machine.c"
	}
	{
		BoxesMachineMachineState _tmp2_;
		BoxesMachineMachineState _tmp3_;
#line 528 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 528 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp2_;
#line 528 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp3_ == BOXES_MACHINE_MACHINE_STATE_PAUSED) {
#line 5616 "libvirt-machine.c"
			GVirDomain* _tmp4_;
#line 529 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp4_ = self->domain;
#line 529 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_resume (_tmp4_, &_inner_error_);
#line 529 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 5624 "libvirt-machine.c"
				goto __catch29_g_error;
			}
		} else {
			GVirDomain* _tmp5_;
#line 531 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp5_ = self->domain;
#line 531 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_start (_tmp5_, (guint) 0, &_inner_error_);
#line 531 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 5635 "libvirt-machine.c"
				goto __catch29_g_error;
			}
		}
	}
	goto __finally29;
	__catch29_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp6_;
		const gchar* _tmp7_ = NULL;
		GError* _tmp8_;
		const gchar* _tmp9_;
#line 527 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 527 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 533 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->domain;
#line 533 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = gvir_domain_get_name (_tmp6_);
#line 533 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _error_;
#line 533 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_->message;
#line 533 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:533: Failed to start '%s': %s", _tmp7_, _tmp9_);
#line 527 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 5664 "libvirt-machine.c"
	}
	__finally29:
#line 527 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 527 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 527 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 527 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5675 "libvirt-machine.c"
	}
}


static Block16Data* block16_data_ref (Block16Data* _data16_) {
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data16_->_ref_count_);
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data16_;
#line 5685 "libvirt-machine.c"
}


static void block16_data_unref (void * _userdata_) {
	Block16Data* _data16_;
	_data16_ = (Block16Data*) _userdata_;
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data16_->_ref_count_)) {
#line 5694 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data16_->self;
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block16Data, _data16_);
#line 5702 "libvirt-machine.c"
	}
}


static void __lambda72_ (Block16Data* _data16_) {
	BoxesLibvirtMachine * self;
	BoxesMachineMachineState _tmp0_;
	BoxesMachineMachineState _tmp1_;
#line 542 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data16_->self;
#line 543 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 543 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 543 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 5719 "libvirt-machine.c"
		gulong _tmp2_;
#line 544 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_start (self);
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _data16_->state_id;
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_handler_disconnect ((GObject*) self, _tmp2_);
#line 5727 "libvirt-machine.c"
	}
}


static void ___lambda72__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 542 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda72_ (self);
#line 5735 "libvirt-machine.c"
}


static void __lambda71_ (BoxesLibvirtMachine* self) {
	Block16Data* _data16_;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gulong _tmp2_ = 0UL;
	GError * _inner_error_ = NULL;
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data16_ = g_slice_new0 (Block16Data);
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data16_->_ref_count_ = 1;
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data16_->self = g_object_ref (self);
#line 539 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 539 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 539 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:539: Rebooting '%s'..", _tmp1_);
#line 540 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachine*) self)->stay_on_display = TRUE;
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data16_->state_id = (gulong) 0;
#line 542 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = g_signal_connect_data ((GObject*) self, "notify::state", (GCallback) ___lambda72__g_object_notify, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
#line 542 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data16_->state_id = _tmp2_;
#line 5765 "libvirt-machine.c"
	{
		GVirDomain* _tmp3_;
#line 550 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = self->domain;
#line 550 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_shutdown (_tmp3_, (guint) (GVIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN | GVIR_DOMAIN_SHUTDOWN_GUEST_AGENT), &_inner_error_);
#line 550 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 5774 "libvirt-machine.c"
			goto __catch30_g_error;
		}
	}
	goto __finally30;
	__catch30_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp4_;
		const gchar* _tmp5_ = NULL;
		GError* _tmp6_;
		const gchar* _tmp7_;
#line 549 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 549 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->domain;
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = gvir_domain_get_name (_tmp4_);
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _error_;
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _tmp6_->message;
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:553: Failed to reboot '%s': %s", _tmp5_, _tmp7_);
#line 549 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 5802 "libvirt-machine.c"
	}
	__finally30:
#line 549 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 549 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block16_data_unref (_data16_);
#line 549 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data16_ = NULL;
#line 549 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 549 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 549 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5817 "libvirt-machine.c"
	}
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block16_data_unref (_data16_);
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data16_ = NULL;
#line 5823 "libvirt-machine.c"
}


static void ___lambda71__boxes_notificationbar_ok_func (gpointer self) {
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda71_ (self);
#line 5830 "libvirt-machine.c"
}


static void boxes_libvirt_machine_notify_reboot_required (BoxesLibvirtMachine* self) {
	BoxesNotificationbarOKFunc reboot;
	void* reboot_target;
	GDestroyNotify reboot_target_destroy_notify;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_ = NULL;
	gchar* message;
	BoxesApp* _tmp4_;
	BoxesNotificationbar* _tmp5_;
	BoxesNotificationbarOKFunc _tmp6_;
	void* _tmp6__target;
	GDestroyNotify _tmp6__target_destroy_notify;
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot = ___lambda71__boxes_notificationbar_ok_func;
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target = g_object_ref (self);
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target_destroy_notify = g_object_unref;
#line 556 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _ ("Changes require restart of '%s'. Attempt restart?");
#line 556 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 556 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 556 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_strdup_printf (_tmp0_, _tmp2_);
#line 556 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	message = _tmp3_;
#line 557 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = boxes_app_app;
#line 557 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->notificationbar;
#line 557 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = reboot;
#line 557 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6__target = reboot_target;
#line 557 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6__target_destroy_notify = reboot_target_destroy_notify;
#line 557 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target_destroy_notify = NULL;
#line 557 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_notificationbar_display_for_action (_tmp5_, message, GTK_STOCK_YES, _tmp6_, _tmp6__target, _tmp6__target_destroy_notify, NULL, NULL, NULL);
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (message);
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(reboot_target_destroy_notify == NULL) ? NULL : (reboot_target_destroy_notify (reboot_target), NULL);
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot = NULL;
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target = NULL;
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target_destroy_notify = NULL;
#line 5890 "libvirt-machine.c"
}


static void _vala_GVirStorageVolInfo_free (GVirStorageVolInfo* self) {
#line 569 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_storage_vol_info_get_type (), self);
#line 5897 "libvirt-machine.c"
}


static void _boxes_libvirt_machine_on_storage_changed_property_size_changed (BoxesProperty* property, guint64 value, gpointer self) {
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_on_storage_changed (self, property, value);
#line 5904 "libvirt-machine.c"
}


static void _vala_GVirStoragePoolInfo_free (GVirStoragePoolInfo* self) {
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_storage_pool_info_get_type (), self);
#line 5911 "libvirt-machine.c"
}


static void boxes_libvirt_machine_add_storage_property (BoxesLibvirtMachine* self, GList** list) {
	GVirStoragePool* pool = NULL;
	GVirConnection* _tmp0_;
	GVirDomain* _tmp1_;
	GVirStoragePool* _tmp2_ = NULL;
	GVirStorageVol* _tmp3_ = NULL;
	GVirStorageVol* volume;
	GVirStorageVol* _tmp4_;
	GError * _inner_error_ = NULL;
#line 560 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 563 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->connection;
#line 563 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = self->domain;
#line 563 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = boxes_get_storage_volume (_tmp0_, _tmp1_, &_tmp2_);
#line 563 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (pool);
#line 563 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	pool = _tmp2_;
#line 563 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	volume = _tmp3_;
#line 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = volume;
#line 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp4_ == NULL) {
#line 565 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (volume);
#line 565 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (pool);
#line 565 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5948 "libvirt-machine.c"
	}
	{
		GVirStorageVol* _tmp5_;
		GVirStorageVolInfo* _tmp6_ = NULL;
		GVirStorageVolInfo* volume_info;
		GVirStoragePool* _tmp7_;
		GVirStoragePoolInfo* _tmp8_ = NULL;
		GVirStoragePoolInfo* pool_info;
		GVirStorageVolInfo* _tmp9_;
		guint64 _tmp10_;
		GVirStoragePoolInfo* _tmp11_;
		guint64 _tmp12_;
		guint64 max_storage;
		const gchar* _tmp13_ = NULL;
		GVirStorageVolInfo* _tmp14_;
		guint64 _tmp15_;
		GVirStorageVolInfo* _tmp16_;
		guint64 _tmp17_;
		guint64 _tmp18_;
		BoxesProperty* _tmp19_ = NULL;
		BoxesProperty* _tmp20_;
#line 568 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = volume;
#line 568 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = gvir_storage_vol_get_info (_tmp5_, &_inner_error_);
#line 568 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		volume_info = _tmp6_;
#line 568 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 5978 "libvirt-machine.c"
			goto __catch31_g_error;
		}
#line 569 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = pool;
#line 569 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_storage_pool_get_info (_tmp7_, &_inner_error_);
#line 569 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		pool_info = _tmp8_;
#line 569 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 569 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			__vala_GVirStorageVolInfo_free0 (volume_info);
#line 5991 "libvirt-machine.c"
			goto __catch31_g_error;
		}
#line 570 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = volume_info;
#line 570 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _tmp9_->capacity;
#line 570 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = pool_info;
#line 570 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = _tmp11_->available;
#line 570 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		max_storage = (_tmp10_ + _tmp12_) / OSINFO_KIBIBYTES;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = _ ("Storage");
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = volume_info;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _tmp14_->capacity;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp16_ = volume_info;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp17_ = _tmp16_->capacity;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp18_ = max_storage;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp19_ = boxes_iproperties_provider_add_size_property ((BoxesIPropertiesProvider*) self, list, _tmp13_, _tmp15_ / OSINFO_KIBIBYTES, _tmp17_ / OSINFO_KIBIBYTES, _tmp18_, (guint64) (OSINFO_GIBIBYTES / OSINFO_KIBIBYTES), _boxes_libvirt_machine_on_storage_changed_property_size_changed, self);
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp20_ = _tmp19_;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_tmp20_);
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirStoragePoolInfo_free0 (pool_info);
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirStorageVolInfo_free0 (volume_info);
#line 6026 "libvirt-machine.c"
	}
	goto __finally31;
	__catch31_g_error:
	{
		GError* _error_ = NULL;
		GVirStorageVol* _tmp21_;
		const gchar* _tmp22_ = NULL;
		GError* _tmp23_;
		const gchar* _tmp24_;
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 580 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp21_ = volume;
#line 580 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp22_ = gvir_storage_vol_get_name (_tmp21_);
#line 580 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp23_ = _error_;
#line 580 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp24_ = _tmp23_->message;
#line 580 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:580: Failed to get information on volume '%s' or " \
"it's parent pool: %s", _tmp22_, _tmp24_);
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 6052 "libvirt-machine.c"
	}
	__finally31:
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (volume);
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (pool);
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 6067 "libvirt-machine.c"
	}
#line 560 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (volume);
#line 560 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (pool);
#line 6073 "libvirt-machine.c"
}


static Block17Data* block17_data_ref (Block17Data* _data17_) {
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data17_->_ref_count_);
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data17_;
#line 6082 "libvirt-machine.c"
}


static void block17_data_unref (void * _userdata_) {
	Block17Data* _data17_;
	_data17_ = (Block17Data*) _userdata_;
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data17_->_ref_count_)) {
#line 6091 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data17_->self;
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block17Data, _data17_);
#line 6099 "libvirt-machine.c"
	}
}


static gboolean __lambda77_ (Block17Data* _data17_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	GVirConnection* _tmp0_;
	GVirDomain* _tmp1_;
	GVirStorageVol* _tmp2_ = NULL;
	GVirStorageVol* volume;
	GVirStorageVol* _tmp3_;
	GError * _inner_error_ = NULL;
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data17_->self;
#line 592 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->connection;
#line 592 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = self->domain;
#line 592 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = boxes_get_storage_volume (_tmp0_, _tmp1_, NULL);
#line 592 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	volume = _tmp2_;
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = volume;
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp3_ == NULL) {
#line 594 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		result = FALSE;
#line 594 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (volume);
#line 594 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return result;
#line 6133 "libvirt-machine.c"
	}
	{
		gboolean _tmp4_ = FALSE;
		guint64 _tmp11_;
#line 597 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = boxes_machine_is_running ((BoxesMachine*) self);
#line 597 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp4_) {
#line 6142 "libvirt-machine.c"
			GVirDomainDisk* _tmp5_ = NULL;
			GVirDomainDisk* disk;
			GVirDomainDisk* _tmp6_;
#line 598 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp5_ = boxes_libvirt_machine_get_domain_disk (self, &_inner_error_);
#line 598 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			disk = _tmp5_;
#line 598 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 6152 "libvirt-machine.c"
				goto __catch32_g_error;
			}
#line 599 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = disk;
#line 599 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp6_ != NULL) {
#line 6159 "libvirt-machine.c"
				GVirDomainDisk* _tmp7_;
				guint64 _tmp8_;
#line 600 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp7_ = disk;
#line 600 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp8_ = _data17_->value;
#line 600 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				gvir_domain_disk_resize (_tmp7_, _tmp8_, (guint) 0, &_inner_error_);
#line 600 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_inner_error_ != NULL) {
#line 600 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (disk);
#line 6172 "libvirt-machine.c"
					goto __catch32_g_error;
				}
			}
#line 597 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (disk);
#line 6178 "libvirt-machine.c"
		} else {
			GVirStorageVol* _tmp9_;
			guint64 _tmp10_;
#line 603 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = volume;
#line 603 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp10_ = _data17_->value;
#line 603 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_storage_vol_resize (_tmp9_, _tmp10_ * OSINFO_KIBIBYTES, GVIR_STORAGE_VOL_RESIZE_NONE, &_inner_error_);
#line 603 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 6190 "libvirt-machine.c"
				goto __catch32_g_error;
			}
		}
#line 604 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _data17_->value;
#line 604 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:604: Storage changed to %llu", _tmp11_);
#line 6198 "libvirt-machine.c"
	}
	goto __finally32;
	__catch32_g_error:
	{
		GError* _error_ = NULL;
		GVirStorageVol* _tmp12_;
		const gchar* _tmp13_ = NULL;
		guint64 _tmp14_;
		GError* _tmp15_;
		const gchar* _tmp16_;
#line 596 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 596 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 606 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = volume;
#line 606 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = gvir_storage_vol_get_name (_tmp12_);
#line 606 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = _data17_->value;
#line 606 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _error_;
#line 606 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp16_ = _tmp15_->message;
#line 606 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:606: Failed to change storage capacity of volume " \
"'%s' to %llu: %s", _tmp13_, _tmp14_, _tmp16_);
#line 596 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 6227 "libvirt-machine.c"
	}
	__finally32:
#line 596 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 596 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (volume);
#line 596 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 596 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 596 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 6240 "libvirt-machine.c"
	}
#line 611 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->storage_update_timeout = (guint) 0;
#line 613 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = FALSE;
#line 613 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (volume);
#line 613 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6250 "libvirt-machine.c"
}


static gboolean ___lambda77__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda77_ (self);
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6259 "libvirt-machine.c"
}


static void boxes_libvirt_machine_on_storage_changed (BoxesLibvirtMachine* self, BoxesProperty* property, guint64 value) {
	Block17Data* _data17_;
	guint64 _tmp0_;
	guint _tmp1_;
	guint _tmp3_ = 0U;
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data17_ = g_slice_new0 (Block17Data);
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data17_->_ref_count_ = 1;
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data17_->self = g_object_ref (self);
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = value;
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data17_->value = _tmp0_;
#line 588 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = self->priv->storage_update_timeout;
#line 588 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ != ((guint) 0)) {
#line 6286 "libvirt-machine.c"
		guint _tmp2_;
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = self->priv->storage_update_timeout;
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_source_remove (_tmp2_);
#line 6292 "libvirt-machine.c"
	}
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 1, ___lambda77__gsource_func, block17_data_ref (_data17_), block17_data_unref);
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->storage_update_timeout = _tmp3_;
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block17_data_unref (_data17_);
#line 586 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data17_ = NULL;
#line 6302 "libvirt-machine.c"
}


gboolean boxes_libvirt_machine_get_save_on_quit (BoxesLibvirtMachine* self) {
	gboolean result;
	BoxesCollectionSource* _tmp0_;
	gboolean _tmp1_ = FALSE;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = ((BoxesMachine*) self)->source;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_iconfig_get_boolean ((BoxesIConfig*) _tmp0_, "source", "save-on-quit", FALSE);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp1_;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6320 "libvirt-machine.c"
}


void boxes_libvirt_machine_set_save_on_quit (BoxesLibvirtMachine* self, gboolean value) {
	BoxesCollectionSource* _tmp0_;
	gboolean _tmp1_;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = ((BoxesMachine*) self)->source;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = value;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_iconfig_set_boolean ((BoxesIConfig*) _tmp0_, "source", "save-on-quit", _tmp1_);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_notify ((GObject *) self, "save-on-quit");
#line 6337 "libvirt-machine.c"
}


static GObject * boxes_libvirt_machine_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineMachineStat* _tmp0_ = NULL;
	GCancellable* _tmp1_;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	parent_class = G_OBJECT_CLASS (boxes_libvirt_machine_parent_class);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine);
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = g_new0 (BoxesLibvirtMachineMachineStat, BOXES_LIBVIRT_MACHINE_STATS_SIZE);
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats = (_vala_BoxesLibvirtMachineMachineStat_array_free (self->priv->stats, self->priv->stats_length1), NULL);
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats = _tmp0_;
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats_length1 = BOXES_LIBVIRT_MACHINE_STATS_SIZE;
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->_stats_size_ = self->priv->stats_length1;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = g_cancellable_new ();
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->stats_cancellable);
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats_cancellable = _tmp1_;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return obj;
#line 6371 "libvirt-machine.c"
}


static GVirDomainDiskStats* _vala_GVirDomainDiskStats_copy (GVirDomainDiskStats* self) {
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return g_boxed_copy (gvir_domain_disk_stats_get_type (), self);
#line 6378 "libvirt-machine.c"
}


static gpointer __vala_GVirDomainDiskStats_copy0 (gpointer self) {
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? _vala_GVirDomainDiskStats_copy (self) : NULL;
#line 6385 "libvirt-machine.c"
}


static GVirDomainInterfaceStats* _vala_GVirDomainInterfaceStats_copy (GVirDomainInterfaceStats* self) {
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return g_boxed_copy (gvir_domain_interface_stats_get_type (), self);
#line 6392 "libvirt-machine.c"
}


static gpointer __vala_GVirDomainInterfaceStats_copy0 (gpointer self) {
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? _vala_GVirDomainInterfaceStats_copy (self) : NULL;
#line 6399 "libvirt-machine.c"
}


static void boxes_libvirt_machine_machine_stat_copy (const BoxesLibvirtMachineMachineStat* self, BoxesLibvirtMachineMachineStat* dest) {
	gint64 _tmp0_;
	gdouble _tmp1_;
	gdouble _tmp2_;
	gdouble _tmp3_;
	gdouble _tmp4_;
	GVirDomainDiskStats* _tmp5_;
	GVirDomainDiskStats* _tmp6_;
	gdouble _tmp7_;
	gdouble _tmp8_;
	GVirDomainInterfaceStats* _tmp9_;
	GVirDomainInterfaceStats* _tmp10_;
	gdouble _tmp11_;
	gdouble _tmp12_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = (*self).timestamp;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).timestamp = _tmp0_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = (*self).cpu_time;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).cpu_time = _tmp1_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = (*self).cpu_time_abs;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).cpu_time_abs = _tmp2_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = (*self).cpu_guest_percent;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).cpu_guest_percent = _tmp3_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = (*self).memory_percent;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).memory_percent = _tmp4_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = (*self).disk;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = __vala_GVirDomainDiskStats_copy0 (_tmp5_);
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 ((*dest).disk);
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).disk = _tmp6_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = (*self).disk_read;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).disk_read = _tmp7_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = (*self).disk_write;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).disk_write = _tmp8_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = (*self).net;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = __vala_GVirDomainInterfaceStats_copy0 (_tmp9_);
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 ((*dest).net);
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).net = _tmp10_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = (*self).net_read;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).net_read = _tmp11_;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = (*self).net_write;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).net_write = _tmp12_;
#line 6469 "libvirt-machine.c"
}


static void boxes_libvirt_machine_machine_stat_destroy (BoxesLibvirtMachineMachineStat* self) {
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 ((*self).disk);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 ((*self).net);
#line 6478 "libvirt-machine.c"
}


static BoxesLibvirtMachineMachineStat* boxes_libvirt_machine_machine_stat_dup (const BoxesLibvirtMachineMachineStat* self) {
	BoxesLibvirtMachineMachineStat* dup;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	dup = g_new0 (BoxesLibvirtMachineMachineStat, 1);
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_copy (self, dup);
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return dup;
#line 6490 "libvirt-machine.c"
}


static void boxes_libvirt_machine_machine_stat_free (BoxesLibvirtMachineMachineStat* self) {
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_destroy (self);
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_free (self);
#line 6499 "libvirt-machine.c"
}


static GType boxes_libvirt_machine_machine_stat_get_type (void) {
	static volatile gsize boxes_libvirt_machine_machine_stat_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_libvirt_machine_machine_stat_type_id__volatile)) {
		GType boxes_libvirt_machine_machine_stat_type_id;
		boxes_libvirt_machine_machine_stat_type_id = g_boxed_type_register_static ("BoxesLibvirtMachineMachineStat", (GBoxedCopyFunc) boxes_libvirt_machine_machine_stat_dup, (GBoxedFreeFunc) boxes_libvirt_machine_machine_stat_free);
		g_once_init_leave (&boxes_libvirt_machine_machine_stat_type_id__volatile, boxes_libvirt_machine_machine_stat_type_id);
	}
	return boxes_libvirt_machine_machine_stat_type_id__volatile;
}


static void boxes_libvirt_machine_class_init (BoxesLibvirtMachineClass * klass) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_parent_class = g_type_class_peek_parent (klass);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_type_class_add_private (klass, sizeof (BoxesLibvirtMachinePrivate));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->disconnect_display = boxes_libvirt_machine_real_disconnect_display;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->connect_display = boxes_libvirt_machine_real_connect_display;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_properties = boxes_libvirt_machine_real_get_properties;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_screenshot_prefix = boxes_libvirt_machine_real_get_screenshot_prefix;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->take_screenshot = boxes_libvirt_machine_real_take_screenshot;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->take_screenshot_finish = boxes_libvirt_machine_real_take_screenshot_finish;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->delete = boxes_libvirt_machine_real_delete;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_libvirt_machine_get_property;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_libvirt_machine_set_property;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_libvirt_machine_constructor;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_libvirt_machine_finalize;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_MACHINE_SAVE_ON_QUIT, g_param_spec_boolean ("save-on-quit", "save-on-quit", "save-on-quit", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_new ("stats_updated", BOXES_TYPE_LIBVIRT_MACHINE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 6545 "libvirt-machine.c"
}


static void boxes_libvirt_machine_instance_init (BoxesLibvirtMachine * self) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv = BOXES_LIBVIRT_MACHINE_GET_PRIVATE (self);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->ram_update_timeout = (guint) 0;
#line 52 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->storage_update_timeout = (guint) 0;
#line 6556 "libvirt-machine.c"
}


static void boxes_libvirt_machine_finalize (GObject* obj) {
	BoxesLibvirtMachine * self;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine);
#line 6 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->domain);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->domain_config);
#line 8 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->connection);
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (self->priv->storage_volume_path);
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_boxes_vm_creator_unref0 (self->vm_creator);
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->stats_cancellable);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats = (_vala_BoxesLibvirtMachineMachineStat_array_free (self->priv->stats, self->priv->stats_length1), NULL);
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->cpu_stats = (g_free (self->cpu_stats), NULL);
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->io_stats = (g_free (self->io_stats), NULL);
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->net_stats = (g_free (self->net_stats), NULL);
#line 448 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (boxes_libvirt_machine_parent_class)->finalize (obj);
#line 6586 "libvirt-machine.c"
}


GType boxes_libvirt_machine_get_type (void) {
	static volatile gsize boxes_libvirt_machine_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_libvirt_machine_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesLibvirtMachineClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_libvirt_machine_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesLibvirtMachine), 0, (GInstanceInitFunc) boxes_libvirt_machine_instance_init, NULL };
		GType boxes_libvirt_machine_type_id;
		boxes_libvirt_machine_type_id = g_type_register_static (BOXES_TYPE_MACHINE, "BoxesLibvirtMachine", &g_define_type_info, 0);
		g_once_init_leave (&boxes_libvirt_machine_type_id__volatile, boxes_libvirt_machine_type_id);
	}
	return boxes_libvirt_machine_type_id__volatile;
}


static void _vala_boxes_libvirt_machine_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesLibvirtMachine * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (property_id) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_SAVE_ON_QUIT:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_value_set_boolean (value, boxes_libvirt_machine_get_save_on_quit (self));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 6613 "libvirt-machine.c"
		default:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 6619 "libvirt-machine.c"
	}
}


static void _vala_boxes_libvirt_machine_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	BoxesLibvirtMachine * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (property_id) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_SAVE_ON_QUIT:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_save_on_quit (self, g_value_get_boolean (value));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 6635 "libvirt-machine.c"
		default:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 6641 "libvirt-machine.c"
	}
}



