/* libvirt-machine.c generated by valac 0.18.0.29-efcd0, 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 <libcommon.h>
#include <libvirt-gobject/libvirt-gobject.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <config.h>
#include <gtk/gtk.h>
#include <clutter-gtk/clutter-gtk.h>
#include <osinfo/osinfo.h>
#include <libgd/gd.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 TYPE_PROPERTY_CREATION_FLAG (property_creation_flag_get_type ())

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

typedef struct _BoxesProperty BoxesProperty;
typedef struct _BoxesPropertyClass BoxesPropertyClass;

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

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

#define BOXES_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_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 _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;
typedef struct _BoxesLibvirtMachineConnectDisplayData BoxesLibvirtMachineConnectDisplayData;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_free0(var) (var = (g_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 _Block14Data Block14Data;
typedef struct _Block15Data Block15Data;
#define __vala_GVirDomainDiskStats_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirDomainDiskStats_free (var), NULL)))
typedef struct _BoxesLibvirtMachineUpdateIoStatData BoxesLibvirtMachineUpdateIoStatData;
typedef struct _Block16Data Block16Data;
typedef struct _Block17Data Block17Data;
#define __vala_GVirDomainInterfaceStats_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirDomainInterfaceStats_free (var), NULL)))
typedef struct _BoxesLibvirtMachineUpdateNetStatData BoxesLibvirtMachineUpdateNetStatData;
typedef struct _BoxesLibvirtMachineUpdateStatsData BoxesLibvirtMachineUpdateStatsData;
typedef struct _Block18Data Block18Data;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
typedef struct _Block19Data Block19Data;

#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 _Block20Data Block20Data;
typedef struct _BoxesLibvirtMachineTakeScreenshotData BoxesLibvirtMachineTakeScreenshotData;
typedef struct _Block21Data Block21Data;
typedef struct _BoxesLibvirtMachineSaveData BoxesLibvirtMachineSaveData;
typedef struct _BoxesLibvirtMachineSuspendData BoxesLibvirtMachineSuspendData;

#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 _BoxesAppPrivate BoxesAppPrivate;

#define BOXES_TYPE_CLUTTER_WIDGET (boxes_clutter_widget_get_type ())
#define BOXES_CLUTTER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_CLUTTER_WIDGET, BoxesClutterWidget))
#define BOXES_CLUTTER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_CLUTTER_WIDGET, BoxesClutterWidgetClass))
#define BOXES_IS_CLUTTER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_CLUTTER_WIDGET))
#define BOXES_IS_CLUTTER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_CLUTTER_WIDGET))
#define BOXES_CLUTTER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_CLUTTER_WIDGET, BoxesClutterWidgetClass))

typedef struct _BoxesClutterWidget BoxesClutterWidget;
typedef struct _BoxesClutterWidgetClass BoxesClutterWidgetClass;

#define BOXES_TYPE_SEARCHBAR (boxes_searchbar_get_type ())
#define BOXES_SEARCHBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SEARCHBAR, BoxesSearchbar))
#define BOXES_SEARCHBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SEARCHBAR, BoxesSearchbarClass))
#define BOXES_IS_SEARCHBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SEARCHBAR))
#define BOXES_IS_SEARCHBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SEARCHBAR))
#define BOXES_SEARCHBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SEARCHBAR, BoxesSearchbarClass))

typedef struct _BoxesSearchbar BoxesSearchbar;
typedef struct _BoxesSearchbarClass BoxesSearchbarClass;

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

#define BOXES_TYPE_COLLECTION_FILTER (boxes_collection_filter_get_type ())
#define BOXES_COLLECTION_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_FILTER, BoxesCollectionFilter))
#define BOXES_COLLECTION_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_FILTER, BoxesCollectionFilterClass))
#define BOXES_IS_COLLECTION_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_FILTER))
#define BOXES_IS_COLLECTION_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_FILTER))
#define BOXES_COLLECTION_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_FILTER, BoxesCollectionFilterClass))

typedef struct _BoxesCollectionFilter BoxesCollectionFilter;
typedef struct _BoxesCollectionFilterClass BoxesCollectionFilterClass;

#define BOXES_TYPE_COLLECTION_VIEW (boxes_collection_view_get_type ())
#define BOXES_COLLECTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionView))
#define BOXES_COLLECTION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionViewClass))
#define BOXES_IS_COLLECTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_VIEW))
#define BOXES_IS_COLLECTION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_VIEW))
#define BOXES_COLLECTION_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionViewClass))

typedef struct _BoxesCollectionView BoxesCollectionView;
typedef struct _BoxesCollectionViewClass BoxesCollectionViewClass;
typedef struct _Block22Data Block22Data;
#define __vala_GVirNodeInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirNodeInfo_free (var), NULL)))
typedef struct _Block23Data Block23Data;
typedef struct _BoxesLibvirtMachineStartData BoxesLibvirtMachineStartData;
typedef struct _Block24Data Block24Data;
#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 _Block25Data Block25Data;

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;

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

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

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

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

struct _BoxesLibvirtMachine {
	BoxesMachine parent_instance;
	BoxesLibvirtMachinePrivate * priv;
	GVirDomain* domain;
	GVirConfigDomain* domain_config;
	GVirConnection* connection;
	GVirStorageVol* storage_volume;
	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 {
	guint shutdown_timeout;
	guint stats_update_timeout;
	GCancellable* stats_cancellable;
	BoxesLibvirtMachineMachineStat* stats;
	gint stats_length1;
	gint _stats_size_;
	gboolean force_stopped;
};

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

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

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

struct _Block15Data {
	int _ref_count_;
	Block14Data * _data14_;
	GVirDomainDisk* disk;
};

struct _BoxesLibvirtMachineUpdateIoStatData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	GVirDomainInfo* info;
	BoxesLibvirtMachineMachineStat* stat;
	Block14Data* _data14_;
	BoxesLibvirtMachineMachineStat* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainState _tmp2_;
	Block15Data* _data15_;
	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 _Block16Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineMachineStat* stat;
	gpointer _async_data_;
};

struct _Block17Data {
	int _ref_count_;
	Block16Data * _data16_;
	GVirDomainInterface* net;
};

struct _BoxesLibvirtMachineUpdateNetStatData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	GVirDomainInfo* info;
	BoxesLibvirtMachineMachineStat* stat;
	Block16Data* _data16_;
	BoxesLibvirtMachineMachineStat* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainState _tmp2_;
	Block17Data* _data17_;
	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 _Block18Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	gboolean stats_updating;
};

typedef void (*PropertyStringChanged) (BoxesProperty* property, const gchar* value, void* user_data, GError** error);
struct _Block19Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesProperty* property;
};

struct _Block20Data {
	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;
	Block20Data* _data20_;
	GVirDomainState state;
	GVirDomain* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainInfo* _tmp2_;
	GVirDomainInfo* _tmp3_;
	GVirDomainState _tmp4_;
	GError* _error_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gboolean _tmp7_;
	gboolean _tmp8_;
	GVirDomainState _tmp9_;
	GVirDomainState _tmp10_;
	gboolean _tmp11_;
	GVirDomainState _tmp12_;
	gboolean _tmp13_;
	GVirConnection* _tmp14_;
	GVirStream* _tmp15_;
	GdkPixbufLoader* _tmp16_;
	GdkPixbufLoader* loader;
	GVirStream* _tmp17_;
	GInputStream* _tmp18_;
	GInputStream* _tmp19_;
	GInputStream* input_stream;
	guint8* _tmp20_;
	guint8* buffer;
	gint buffer_length1;
	gint _buffer_size_;
	gssize length;
	gboolean _tmp21_;
	gboolean _tmp22_;
	gssize _tmp23_;
	GInputStream* _tmp24_;
	guint8* _tmp25_;
	gint _tmp25__length1;
	gssize _tmp26_;
	gssize _tmp27_;
	GdkPixbufLoader* _tmp28_;
	guint8* _tmp29_;
	gint _tmp29__length1;
	gssize _tmp30_;
	GdkPixbufLoader* _tmp31_;
	GdkPixbufLoader* _tmp32_;
	GdkPixbuf* _tmp33_;
	GdkPixbuf* _tmp34_;
	GError * _inner_error_;
};

struct _Block21Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	GVirDomain* domain;
};

struct _BoxesLibvirtMachineSaveData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	GVirDomain* _tmp0_;
	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;
	BoxesClutterWidget* embed;
	ClutterStage* stage;
	ClutterBinLayout* stage_bin;
	ClutterActor* overlay_bin_actor;
	ClutterBinLayout* overlay_bin;
	BoxesCollectionItem* current_item;
	BoxesSearchbar* searchbar;
	BoxesTopbar* topbar;
	BoxesNotificationbar* notificationbar;
	BoxesRevealer* sidebar_revealer;
	BoxesRevealer* searchbar_revealer;
	BoxesSidebar* sidebar;
	BoxesSelectionbar* selectionbar;
	guint duration;
	GSettings* settings;
	BoxesWizard* wizard;
	BoxesProperties* properties;
	BoxesDisplayPage* display_page;
	BoxesCollection* collection;
	BoxesCollectionFilter* filter;
	GSimpleAction* action_properties;
	GSimpleAction* action_fullscreen;
	BoxesCollectionView* view;
};

struct _BoxesAppClass {
	BoxesUIClass parent_class;
};

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

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

struct _BoxesLibvirtMachineStartData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	BoxesMachineMachineState _tmp0_;
	BoxesMachineMachineState _tmp1_;
	BoxesMachineMachineState _tmp2_;
	BoxesMachineMachineState _tmp3_;
	GVirDomain* _tmp4_;
	BoxesMachineMachineState _tmp5_;
	BoxesMachineMachineState _tmp6_;
	GVirDomain* _tmp7_;
	GVirDomain* _tmp8_;
	gboolean _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	GVirDomain* _tmp20_;
	GError * _inner_error_;
};

struct _Block24Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	gulong state_id;
	GdNotification* notification;
};

typedef void (*BoxesNotificationbarOKFunc) (void* user_data);
typedef void (*BoxesNotificationbarCancelFunc) (void* user_data);
struct _Block25Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	guint64 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 property_creation_flag_get_type (void) G_GNUC_CONST;
GType boxes_property_get_type (void) G_GNUC_CONST;
GType boxes_iproperties_provider_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
GType boxes_machine_actor_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_data_free (gpointer _data);
static void boxes_libvirt_machine_real_connect_display (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_libvirt_machine_real_connect_display_co (BoxesLibvirtMachineConnectDisplayData* _data_);
static void boxes_libvirt_machine_start (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_machine_start_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_, GError** error);
static void boxes_libvirt_machine_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static gboolean boxes_libvirt_machine_update_display (BoxesLibvirtMachine* self, GError** error);
GType boxes_display_get_type (void) G_GNUC_CONST;
BoxesDisplay* boxes_machine_get_display (BoxesMachine* self);
void boxes_display_connect_it (BoxesDisplay* self, GError** error);
void boxes_machine_show_display (BoxesMachine* self);
void boxes_display_set_enable_audio (BoxesDisplay* self, gboolean enable);
static void boxes_libvirt_machine_update_domain_config (BoxesLibvirtMachine* self);
GVirStorageVol* boxes_get_storage_volume (GVirConnection* connection, GVirDomain* domain);
static void boxes_libvirt_machine_reconnect_display (BoxesLibvirtMachine* self);
void boxes_machine_connect_display (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_machine_connect_display_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error);
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);
void boxes_machine_create_display_config (BoxesMachine* self, const gchar* uuid);
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 boxes_libvirt_machine_set_stats_enable (BoxesLibvirtMachine* self, gboolean enable);
static void __lambda83_ (BoxesLibvirtMachine* self);
static void ___lambda83__gvir_domain_started (GVirDomain* _sender, gpointer self);
static void __lambda84_ (BoxesLibvirtMachine* self);
static void ___lambda84__gvir_domain_suspended (GVirDomain* _sender, gpointer self);
static void __lambda85_ (BoxesLibvirtMachine* self);
static void ___lambda85__gvir_domain_resumed (GVirDomain* _sender, gpointer self);
static void __lambda86_ (BoxesLibvirtMachine* self);
static void ___lambda86__gvir_domain_stopped (GVirDomain* _sender, gpointer self);
static void __lambda87_ (BoxesLibvirtMachine* self);
static void ___lambda87__gvir_domain_pmsuspended (GVirDomain* _sender, gpointer self);
static void __lambda88_ (BoxesLibvirtMachine* self);
BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self);
static void ___lambda88__g_object_notify (GObject* _sender, GParamSpec* pspec, 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_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 Block14Data* block14_data_ref (Block14Data* _data14_);
static void block14_data_unref (void * _userdata_);
static Block15Data* block15_data_ref (Block15Data* _data15_);
static void block15_data_unref (void * _userdata_);
static GVirDomainDisk* boxes_libvirt_machine_get_domain_disk (BoxesLibvirtMachine* self, GError** error);
static void ___lambda80_ (Block15Data* _data15_, GError** error);
static void _vala_GVirDomainDiskStats_free (GVirDomainDiskStats* self);
static void ____lambda80__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 Block16Data* block16_data_ref (Block16Data* _data16_);
static void block16_data_unref (void * _userdata_);
static Block17Data* block17_data_ref (Block17Data* _data17_);
static void block17_data_unref (void * _userdata_);
static GVirDomainInterface* boxes_libvirt_machine_get_domain_network_interface (BoxesLibvirtMachine* self, GError** error);
static void ___lambda81_ (Block17Data* _data17_, GError** error);
static void _vala_GVirDomainInterfaceStats_free (GVirDomainInterfaceStats* self);
static void ____lambda81__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_dup2 (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 Block18Data* block18_data_ref (Block18Data* _data18_);
static void block18_data_unref (void * _userdata_);
static gboolean ___lambda79_ (Block18Data* _data18_);
static void __lambda82_ (Block18Data* _data18_);
static void ___lambda82__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static gboolean ____lambda79__gsource_func (gpointer self);
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);
void boxes_libvirt_machine_try_enable_usb_redir (BoxesLibvirtMachine* self, GError** error);
void boxes_vm_configurator_remove_usb_controllers (GVirConfigDomain* domain, GError** error);
void boxes_vm_configurator_add_usb_support (GVirConfigDomain* domain);
gboolean boxes_machine_is_on (BoxesMachine* self);
static void boxes_libvirt_machine_notify_reboot_required (BoxesLibvirtMachine* self);
static GList* boxes_libvirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page, PropertyCreationFlag flags);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
BoxesProperty* boxes_iproperties_provider_add_string_property (BoxesIPropertiesProvider* self, GList** list, const gchar* name, const gchar* value, PropertyStringChanged changed, void* changed_target);
static void ___lambda94_ (BoxesLibvirtMachine* self, BoxesProperty* property, const gchar* name, GError** error);
static void ____lambda94__property_string_changed (BoxesProperty* property, const gchar* value, gpointer self, GError** error);
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);
static Block19Data* block19_data_ref (Block19Data* _data19_);
static void block19_data_unref (void * _userdata_);
BoxesProperty* boxes_iproperties_provider_add_property (BoxesIPropertiesProvider* self, GList** list, const gchar* name, GtkWidget* widget, GtkWidget* extra_widget);
static void ____lambda98_ (Block19Data* _data19_);
static void _____lambda98__gtk_button_clicked (GtkButton* _sender, gpointer self);
GList* boxes_display_get_properties (BoxesDisplay* self, BoxesPropertiesPage page, PropertyCreationFlag flags);
static BoxesDisplay* boxes_libvirt_machine_create_display (BoxesLibvirtMachine* self, GError** error);
void boxes_machine_set_display (BoxesMachine* self, BoxesDisplay* value);
gchar* boxes_extract_xpath (const gchar* xmldoc, const gchar* xpath, gboolean required, GError** error);
BoxesSpiceDisplay* boxes_spice_display_new (BoxesBoxConfig* config, const gchar* host, gint port);
BoxesSpiceDisplay* boxes_spice_display_construct (GType object_type, BoxesBoxConfig* config, const gchar* host, gint port);
GType boxes_spice_display_get_type (void) G_GNUC_CONST;
BoxesVncDisplay* boxes_vnc_display_new (BoxesBoxConfig* config, const gchar* host, gint port);
BoxesVncDisplay* boxes_vnc_display_construct (GType object_type, BoxesBoxConfig* config, const gchar* host, gint port);
GType boxes_vnc_display_get_type (void) G_GNUC_CONST;
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 Block20Data* block20_data_ref (Block20Data* _data20_);
static void block20_data_unref (void * _userdata_);
static void boxes_libvirt_machine_take_screenshot_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void __lambda99_ (Block20Data* _data20_, GError** error);
static void ___lambda99__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);
static Block21Data* block21_data_ref (Block21Data* _data21_);
static void block21_data_unref (void * _userdata_);
static void ___lambda100_ (Block21Data* _data21_, GError** error);
static void ____lambda100__boxes_run_in_thread_func (gpointer self, GError** error);
static void boxes_libvirt_machine_real_save_data_free (gpointer _data);
static void boxes_libvirt_machine_real_save (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_libvirt_machine_real_save_co (BoxesLibvirtMachineSaveData* _data_);
static void boxes_libvirt_machine_save_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
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_);
void boxes_libvirt_machine_force_shutdown (BoxesLibvirtMachine* self, gboolean confirm);
GType boxes_app_get_type (void) G_GNUC_CONST;
GType boxes_clutter_widget_get_type (void) G_GNUC_CONST;
GType boxes_searchbar_get_type (void) G_GNUC_CONST;
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;
GType boxes_collection_filter_get_type (void) G_GNUC_CONST;
GType boxes_collection_view_get_type (void) G_GNUC_CONST;
static void boxes_libvirt_machine_update_ram_property (BoxesLibvirtMachine* self, BoxesProperty* property);
void boxes_property_set_reboot_required (BoxesProperty* self, gboolean value);
static Block22Data* block22_data_ref (Block22Data* _data22_);
static void block22_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 ___lambda96_ (Block22Data* _data22_);
static void ____lambda96__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static Block23Data* block23_data_ref (Block23Data* _data23_);
static void block23_data_unref (void * _userdata_);
static gboolean __lambda95_ (Block23Data* _data23_);
static gboolean ___lambda95__gsource_func (gpointer self);
void boxes_property_set_deferred_change (BoxesProperty* self, GSourceFunc value, gpointer value_target, GDestroyNotify value_target_destroy_notify);
static void boxes_libvirt_machine_start_data_free (gpointer _data);
static gboolean boxes_libvirt_machine_start_co (BoxesLibvirtMachineStartData* _data_);
static void boxes_libvirt_machine_start_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void boxes_machine_set_status (BoxesMachine* self, const gchar* value);
static void __lambda89_ (BoxesLibvirtMachine* self);
static Block24Data* block24_data_ref (Block24Data* _data24_);
static void block24_data_unref (void * _userdata_);
static void __lambda90_ (Block24Data* _data24_);
static void ___lambda91_ (BoxesLibvirtMachine* self, GObject* obj, GAsyncResult* res);
static void ____lambda91__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void ___lambda90__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static gboolean __lambda92_ (Block24Data* _data24_);
static void __lambda93_ (Block24Data* _data24_);
static void ___lambda93__boxes_notificationbar_ok_func (gpointer self);
GdNotification* 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, gint timeout);
static gboolean ___lambda92__gsource_func (gpointer self);
static void ___lambda89__boxes_notificationbar_ok_func (gpointer self);
#define BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT 6
GVirStoragePool* boxes_get_storage_pool (GVirConnection* connection);
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 Block25Data* block25_data_ref (Block25Data* _data25_);
static void block25_data_unref (void * _userdata_);
static gboolean __lambda97_ (Block25Data* _data25_);
gboolean boxes_machine_is_running (BoxesMachine* self);
static gboolean ___lambda97__gsource_func (gpointer self);
void boxes_libvirt_machine_set_save_on_quit (BoxesLibvirtMachine* self, 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 54 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (array != NULL) {
#line 1092 "libvirt-machine.c"
		int i;
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_destroy (&array[i]);
#line 1098 "libvirt-machine.c"
		}
	}
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_free (array);
#line 1103 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_disconnect_display (BoxesMachine* base) {
	BoxesLibvirtMachine * self;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachine*) self)->stay_on_display = FALSE;
#line 20 "/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 1115 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_connect_display_data_free (gpointer _data) {
	BoxesLibvirtMachineConnectDisplayData* _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 (BoxesLibvirtMachineConnectDisplayData, _data_);
#line 1126 "libvirt-machine.c"
}


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


static void boxes_libvirt_machine_real_connect_display (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineConnectDisplayData* _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 (BoxesLibvirtMachineConnectDisplayData);
#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_connect_display);
#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_connect_display_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_connect_display_co (_data_);
#line 1155 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_connect_display_finish (BoxesMachine* base, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtMachineConnectDisplayData* _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 1165 "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 1169 "libvirt-machine.c"
}


static void boxes_libvirt_machine_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineConnectDisplayData* _data_;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_connect_display_co (_data_);
#line 1183 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_real_connect_display_co (BoxesLibvirtMachineConnectDisplayData* _data_) {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 1192 "libvirt-machine.c"
		goto _state_0;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 1196 "libvirt-machine.c"
		goto _state_1;
		default:
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 1201 "libvirt-machine.c"
	}
	_state_0:
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 1;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start (_data_->self, boxes_libvirt_machine_connect_display_ready, _data_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 1210 "libvirt-machine.c"
	_state_1:
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1224 "libvirt-machine.c"
		} else {
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1228 "libvirt-machine.c"
		}
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 1234 "libvirt-machine.c"
	}
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = FALSE;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = boxes_libvirt_machine_update_display (_data_->self, &_data_->_inner_error_);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1252 "libvirt-machine.c"
		} else {
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1256 "libvirt-machine.c"
		}
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 1262 "libvirt-machine.c"
	}
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp1_) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->_tmp2_;
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_display_connect_it (_data_->_tmp3_, &_data_->_inner_error_);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1282 "libvirt-machine.c"
			} else {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1286 "libvirt-machine.c"
			}
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 1292 "libvirt-machine.c"
		}
	} else {
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_show_display ((BoxesMachine*) _data_->self);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->_tmp4_;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_display_set_enable_audio (_data_->_tmp5_, TRUE);
#line 1303 "libvirt-machine.c"
	}
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1309 "libvirt-machine.c"
	} else {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1313 "libvirt-machine.c"
	}
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 1319 "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 1327 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* _tmp2_;
		GVirConnection* _tmp3_;
		GVirDomain* _tmp4_;
		GVirStorageVol* _tmp5_ = NULL;
#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 1343 "libvirt-machine.c"
			goto __catch14_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 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = self->connection;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->domain;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = boxes_get_storage_volume (_tmp3_, _tmp4_);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self->storage_volume);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->storage_volume = _tmp5_;
#line 1360 "libvirt-machine.c"
	}
	goto __finally14;
	__catch14_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp6_;
		const gchar* _tmp7_ = NULL;
		GError* _tmp8_;
		const gchar* _tmp9_;
#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 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->domain;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = gvir_domain_get_name (_tmp6_);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _error_;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_->message;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("libvirt-machine.vala:68: Failed to fetch configuration for domain '%s'" \
": %s", _tmp7_, _tmp9_);
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 1386 "libvirt-machine.c"
	}
	__finally14:
#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 1397 "libvirt-machine.c"
	}
}


static void boxes_libvirt_machine_reconnect_display (BoxesLibvirtMachine* self) {
	BoxesDisplay* _tmp0_;
	BoxesDisplay* _tmp1_;
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == NULL) {
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1415 "libvirt-machine.c"
	}
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_disconnect_display ((BoxesMachine*) self);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_connect_display ((BoxesMachine*) self, NULL, NULL);
#line 1421 "libvirt-machine.c"
}


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


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


static void ___lambda83__gvir_domain_started (GVirDomain* _sender, gpointer self) {
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda83_ (self);
#line 1442 "libvirt-machine.c"
}


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


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


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


static void ___lambda85__gvir_domain_resumed (GVirDomain* _sender, gpointer self) {
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda85_ (self);
#line 1470 "libvirt-machine.c"
}


static void __lambda86_ (BoxesLibvirtMachine* self) {
	GVirDomain* _tmp0_;
	GSignalInvocationHint* _tmp1_ = NULL;
	GQuark _tmp2_;
	GQuark _tmp3_ = 0U;
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->domain;
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = g_signal_get_invocation_hint (_tmp0_);
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = (*_tmp1_).detail;
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_quark_from_string ("saved");
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp2_ == _tmp3_) {
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SAVED);
#line 1491 "libvirt-machine.c"
	} else {
		gboolean _tmp4_;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->priv->force_stopped;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp4_) {
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			self->priv->force_stopped = FALSE;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED);
#line 1502 "libvirt-machine.c"
		} else {
#line 136 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 1506 "libvirt-machine.c"
		}
	}
}


static void ___lambda86__gvir_domain_stopped (GVirDomain* _sender, gpointer self) {
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda86_ (self);
#line 1515 "libvirt-machine.c"
}


static void __lambda87_ (BoxesLibvirtMachine* self) {
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SLEEPING);
#line 1522 "libvirt-machine.c"
}


static void ___lambda87__gvir_domain_pmsuspended (GVirDomain* _sender, gpointer self) {
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda87_ (self);
#line 1529 "libvirt-machine.c"
}


static void __lambda88_ (BoxesLibvirtMachine* self) {
	BoxesMachineMachineState _tmp0_;
	BoxesMachineMachineState _tmp1_;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_reconnect_display (self);
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_stats_enable (self, TRUE);
#line 1546 "libvirt-machine.c"
	} else {
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_stats_enable (self, FALSE);
#line 1550 "libvirt-machine.c"
	}
}


static void ___lambda88__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda88_ (self);
#line 1558 "libvirt-machine.c"
}


static void _boxes_libvirt_machine_update_domain_config_gvir_domain_updated (GVirDomain* _sender, gpointer self) {
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 1565 "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_;
	GVirDomain* _tmp18_;
	const gchar* _tmp19_ = NULL;
	GVirConnection* _tmp20_;
	GVirConnection* _tmp21_;
	GVirDomain* _tmp22_;
	GVirDomain* _tmp23_;
	GVirDomain* _tmp33_;
	GVirDomain* _tmp34_;
	GVirDomain* _tmp35_;
	GVirDomain* _tmp36_;
	GVirDomain* _tmp37_;
	GVirDomain* _tmp38_;
	BoxesMachineMachineState _tmp39_;
	BoxesMachineMachineState _tmp40_;
	GError * _inner_error_ = NULL;
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (source != NULL, NULL);
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (connection != NULL, NULL);
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (domain != NULL, NULL);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = domain;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	config = _tmp1_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 1623 "libvirt-machine.c"
	}
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = config;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = gvir_config_domain_get_title (_tmp2_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = _tmp5_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp6_ == NULL) {
#line 1637 "libvirt-machine.c"
		GVirDomain* _tmp7_;
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = domain;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_domain_get_name (_tmp7_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = g_strdup (_tmp8_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp5_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp9_;
#line 1651 "libvirt-machine.c"
	}
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = _tmp5_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = g_strdup (_tmp10_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	item_name = _tmp11_;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = source;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = item_name;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) boxes_machine_construct (object_type, _tmp12_, _tmp13_);
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = domain;
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = gvir_domain_get_name (_tmp14_);
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = g_strconcat ("new libvirt machine: ", _tmp15_, NULL);
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = _tmp16_;
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:88: %s", _tmp17_);
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp17_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = domain;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp19_ = gvir_domain_get_uuid (_tmp18_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_create_display_config ((BoxesMachine*) self, _tmp19_);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp20_ = connection;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp21_ = _g_object_ref0 (_tmp20_);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->connection);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->connection = _tmp21_;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp22_ = domain;
#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->domain);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->domain = _tmp23_;
#line 1699 "libvirt-machine.c"
	{
		GVirDomain* _tmp24_;
		GVirDomainInfo* _tmp25_ = NULL;
		GVirDomainInfo* _tmp26_;
		GVirDomainInfo* _tmp27_;
		GVirDomainState _tmp28_;
		GVirDomainState _tmp29_;
		GVirDomainState s;
		GVirDomainState _tmp30_;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp24_ = domain;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp25_ = gvir_domain_get_info (_tmp24_, &_inner_error_);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp26_ = _tmp25_;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 1717 "libvirt-machine.c"
			goto __catch15_g_error;
		}
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp27_ = _tmp26_;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp28_ = _tmp27_->state;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp29_ = _tmp28_;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_tmp27_);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		s = _tmp29_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp30_ = s;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (_tmp30_) {
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_RUNNING:
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_BLOCKED:
#line 1738 "libvirt-machine.c"
			{
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_libvirt_machine_set_stats_enable (self, TRUE);
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1746 "libvirt-machine.c"
			}
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_PAUSED:
#line 1750 "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 1756 "libvirt-machine.c"
			}
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_SHUTDOWN:
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_SHUTOFF:
#line 1762 "libvirt-machine.c"
			{
				GVirDomain* _tmp31_;
				gboolean _tmp32_ = FALSE;
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp31_ = domain;
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp32_ = gvir_domain_get_saved (_tmp31_);
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_tmp32_) {
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SAVED);
#line 1774 "libvirt-machine.c"
				} else {
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 1778 "libvirt-machine.c"
				}
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1782 "libvirt-machine.c"
			}
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_CRASHED:
#line 1786 "libvirt-machine.c"
			{
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1792 "libvirt-machine.c"
			}
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_PMSUSPENDED:
#line 1796 "libvirt-machine.c"
			{
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SLEEPING);
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1802 "libvirt-machine.c"
			}
			default:
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_NONE:
#line 1807 "libvirt-machine.c"
			{
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_UNKNOWN);
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1813 "libvirt-machine.c"
			}
		}
	}
	goto __finally15;
	__catch15_g_error:
	{
		GError* _error_ = NULL;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_UNKNOWN);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 1829 "libvirt-machine.c"
	}
	__finally15:
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (item_name);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp5_);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 1846 "libvirt-machine.c"
	}
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp33_ = domain;
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp33_, "started", (GCallback) ___lambda83__gvir_domain_started, self, 0);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp34_ = domain;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp34_, "suspended", (GCallback) ___lambda84__gvir_domain_suspended, self, 0);
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp35_ = domain;
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp35_, "resumed", (GCallback) ___lambda85__gvir_domain_resumed, self, 0);
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp36_ = domain;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp36_, "stopped", (GCallback) ___lambda86__gvir_domain_stopped, self, 0);
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp37_ = domain;
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp37_, "pmsuspended", (GCallback) ___lambda87__gvir_domain_pmsuspended, self, 0);
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object ((GObject*) self, "notify::state", (GCallback) ___lambda88__g_object_notify, self, 0);
#line 149 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp38_ = domain;
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp38_, "updated", (GCallback) _boxes_libvirt_machine_update_domain_config_gvir_domain_updated, self, 0);
#line 152 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp39_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 152 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp40_ = _tmp39_;
#line 152 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp40_ != BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_load_screenshot ((BoxesMachine*) self);
#line 1884 "libvirt-machine.c"
	}
#line 154 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_screenshot_enable ((BoxesMachine*) self, TRUE);
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (item_name);
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp5_);
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (config);
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self;
#line 1896 "libvirt-machine.c"
}


BoxesLibvirtMachine* boxes_libvirt_machine_new (BoxesCollectionSource* source, GVirConnection* connection, GVirDomain* domain, GError** error) {
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return boxes_libvirt_machine_construct (BOXES_TYPE_LIBVIRT_MACHINE, source, connection, domain, error);
#line 1903 "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 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (info != NULL);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (stat != NULL);
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->stats;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0__length1 = self->priv->stats_length1;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_copy (&_tmp1_, &_tmp2_);
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	prev = _tmp2_;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = info;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->state;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_ == GVIR_DOMAIN_STATE_CRASHED) {
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = TRUE;
#line 1961 "libvirt-machine.c"
	} else {
		GVirDomainInfo* _tmp6_;
		GVirDomainState _tmp7_;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = info;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _tmp6_->state;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp7_ == GVIR_DOMAIN_STATE_SHUTOFF;
#line 1971 "libvirt-machine.c"
	}
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = _tmp3_;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp8_) {
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&prev);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1981 "libvirt-machine.c"
	}
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = info;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = _tmp9_->cpuTime;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = prev;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = _tmp11_.cpu_time_abs;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_time = _tmp10_ - _tmp12_;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = info;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = _tmp13_->cpuTime;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_time_abs = (gdouble) _tmp14_;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = *stat;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = _tmp15_.timestamp;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = prev;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = _tmp17_.timestamp;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	dt = (_tmp16_ - _tmp18_) * 10;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp19_ = *stat;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp20_ = _tmp19_.cpu_time;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp21_ = dt;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	percent = _tmp20_ / _tmp21_;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp22_ = percent;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp23_ = info;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp24_ = _tmp23_->nrVirtCpu;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	percent = _tmp22_ / _tmp24_;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp25_ = percent;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp26_ = CLAMP (_tmp25_, (gdouble) 0, (gdouble) 100);
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_guest_percent = _tmp26_;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_destroy (&prev);
#line 2033 "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 173 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 173 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (info != NULL);
#line 173 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (stat != NULL);
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = info;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_->state;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2058 "libvirt-machine.c"
	}
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = info;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_->memory;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = info;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->maxMem;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).memory_percent = (_tmp3_ * 100.0) / _tmp5_;
#line 2070 "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 2083 "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 2090 "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 2097 "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"
	__vala_GVirDomainInfo_free0 (_data_->info);
#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 2131 "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 2139 "libvirt-machine.c"
}


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


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


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


static void block15_data_unref (void * _userdata_) {
	Block15Data* _data15_;
	_data15_ = (Block15Data*) _userdata_;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data15_->_ref_count_)) {
#line 2184 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data15_->_data14_->self;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data15_->disk);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block14_data_unref (_data15_->_data14_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data15_->_data14_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block15Data, _data15_);
#line 2196 "libvirt-machine.c"
	}
}


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


static void ___lambda80_ (Block15Data* _data15_, GError** error) {
	Block14Data* _data14_;
	BoxesLibvirtMachine * self;
	GVirDomainDisk* _tmp0_;
	GVirDomainDiskStats* _tmp1_ = NULL;
	GVirDomainDiskStats* _tmp2_;
	BoxesLibvirtMachineMachineStat* _tmp3_;
	GError * _inner_error_ = NULL;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data14_ = _data15_->_data14_;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data14_->self;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data15_->disk;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_disk_get_stats (_tmp0_, &_inner_error_);
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2232 "libvirt-machine.c"
	}
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _data14_->stat;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 ((*_tmp3_).disk);
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*_tmp3_).disk = _tmp2_;
#line 2240 "libvirt-machine.c"
}


static void ____lambda80__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda80_ (self, error);
#line 2247 "libvirt-machine.c"
}


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


static gboolean boxes_libvirt_machine_update_io_stat_co (BoxesLibvirtMachineUpdateIoStatData* _data_) {
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 2270 "libvirt-machine.c"
		goto _state_0;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 2274 "libvirt-machine.c"
		goto _state_1;
		default:
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 2279 "libvirt-machine.c"
	}
	_state_0:
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_ = g_slice_new0 (Block14Data);
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_->_ref_count_ = 1;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_->self = g_object_ref (_data_->self);
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->stat;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_->stat = _data_->_tmp0_;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_->_async_data_ = _data_;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->info;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_->state;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp2_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block14_data_unref (_data_->_data14_);
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data14_ = NULL;
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2308 "libvirt-machine.c"
		} else {
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2312 "libvirt-machine.c"
		}
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2318 "libvirt-machine.c"
	}
	{
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data15_ = g_slice_new0 (Block15Data);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data15_->_ref_count_ = 1;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data15_->_data14_ = block14_data_ref (_data_->_data14_);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = NULL;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = boxes_libvirt_machine_get_domain_disk (_data_->self, &_data_->_inner_error_);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data15_->disk = _data_->_tmp3_;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block15_data_unref (_data_->_data15_);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data15_ = NULL;
#line 2339 "libvirt-machine.c"
			goto __catch16_g_error;
		}
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_data15_->disk;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp4_ == NULL) {
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block15_data_unref (_data_->_data15_);
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data15_ = NULL;
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block14_data_unref (_data_->_data14_);
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data14_ = NULL;
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2358 "libvirt-machine.c"
			} else {
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 2362 "libvirt-machine.c"
			}
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 2368 "libvirt-machine.c"
		}
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda80__boxes_run_in_thread_func, block15_data_ref (_data_->_data15_), block15_data_unref, NULL, boxes_libvirt_machine_update_io_stat_ready, _data_);
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2376 "libvirt-machine.c"
		_state_1:
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block15_data_unref (_data_->_data15_);
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data15_ = NULL;
#line 2386 "libvirt-machine.c"
			goto __catch16_g_error;
		}
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->self->priv->stats;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5__length1 = _data_->self->priv->stats_length1;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp7_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp6_, &_data_->_tmp7_);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->prev = _data_->_tmp7_;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->prev;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->_tmp8_.disk;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp9_ != NULL) {
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp10_ = _data_->_data14_->stat;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = _data_->_data14_->stat;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = (*_data_->_tmp11_).disk;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp13_ = _data_->_tmp12_->rd_bytes;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = _data_->prev;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp15_ = _data_->_tmp14_.disk;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp16_ = _data_->_tmp15_->rd_bytes;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp10_).disk_read = (gdouble) (_data_->_tmp13_ - _data_->_tmp16_);
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp17_ = _data_->_data14_->stat;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = _data_->_data14_->stat;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp19_ = (*_data_->_tmp18_).disk;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = _data_->_tmp19_->wr_bytes;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = _data_->prev;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22_ = _data_->_tmp21_.disk;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp23_ = _data_->_tmp22_->wr_bytes;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp17_).disk_write = (gdouble) (_data_->_tmp20_ - _data_->_tmp23_);
#line 2439 "libvirt-machine.c"
		}
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->prev);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block15_data_unref (_data_->_data15_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data15_ = NULL;
#line 2447 "libvirt-machine.c"
	}
	goto __finally16;
	__catch16_g_error:
	{
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 198 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp24_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 198 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp25_ = _data_->_tmp24_;
#line 198 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp26_ = _data_->err;
#line 198 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp27_ = _data_->_tmp26_->message;
#line 198 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:198: Failed to fetch I/O statistics for %s: %s", _data_->_tmp25_, _data_->_tmp27_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 2468 "libvirt-machine.c"
	}
	__finally16:
#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"
		block14_data_unref (_data_->_data14_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data14_ = NULL;
#line 184 "/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 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2483 "libvirt-machine.c"
	}
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block14_data_unref (_data_->_data14_);
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_ = NULL;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2493 "libvirt-machine.c"
	} else {
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2497 "libvirt-machine.c"
	}
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 2503 "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 2516 "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"
	__vala_GVirDomainInfo_free0 (_data_->info);
#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 2550 "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 2558 "libvirt-machine.c"
}


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


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


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


static void block17_data_unref (void * _userdata_) {
	Block17Data* _data17_;
	_data17_ = (Block17Data*) _userdata_;
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data17_->_ref_count_)) {
#line 2603 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data17_->_data16_->self;
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data17_->net);
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block16_data_unref (_data17_->_data16_);
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data17_->_data16_ = NULL;
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block17Data, _data17_);
#line 2615 "libvirt-machine.c"
	}
}


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


static void ___lambda81_ (Block17Data* _data17_, GError** error) {
	Block16Data* _data16_;
	BoxesLibvirtMachine * self;
	GVirDomainInterface* _tmp0_;
	GVirDomainInterfaceStats* _tmp1_ = NULL;
	GVirDomainInterfaceStats* _tmp2_;
	BoxesLibvirtMachineMachineStat* _tmp3_;
	GError * _inner_error_ = NULL;
#line 211 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data16_ = _data17_->_data16_;
#line 211 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data16_->self;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data17_->net;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_interface_get_stats (_tmp0_, &_inner_error_);
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2651 "libvirt-machine.c"
	}
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _data16_->stat;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 ((*_tmp3_).net);
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*_tmp3_).net = _tmp2_;
#line 2659 "libvirt-machine.c"
}


static void ____lambda81__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 211 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda81_ (self, error);
#line 2666 "libvirt-machine.c"
}


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


static gboolean boxes_libvirt_machine_update_net_stat_co (BoxesLibvirtMachineUpdateNetStatData* _data_) {
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 2689 "libvirt-machine.c"
		goto _state_0;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 2693 "libvirt-machine.c"
		goto _state_1;
		default:
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 2698 "libvirt-machine.c"
	}
	_state_0:
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_ = g_slice_new0 (Block16Data);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_->_ref_count_ = 1;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_->self = g_object_ref (_data_->self);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->stat;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_->stat = _data_->_tmp0_;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_->_async_data_ = _data_;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->info;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_->state;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp2_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block16_data_unref (_data_->_data16_);
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data16_ = NULL;
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2727 "libvirt-machine.c"
		} else {
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2731 "libvirt-machine.c"
		}
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2737 "libvirt-machine.c"
	}
	{
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data17_ = g_slice_new0 (Block17Data);
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data17_->_ref_count_ = 1;
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data17_->_data16_ = block16_data_ref (_data_->_data16_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = NULL;
#line 207 "/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 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data17_->net = _data_->_tmp3_;
#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"
			block17_data_unref (_data_->_data17_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data17_ = NULL;
#line 2758 "libvirt-machine.c"
			goto __catch17_g_error;
		}
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_data17_->net;
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp4_ == NULL) {
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block17_data_unref (_data_->_data17_);
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data17_ = NULL;
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block16_data_unref (_data_->_data16_);
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data16_ = NULL;
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2777 "libvirt-machine.c"
			} else {
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 2781 "libvirt-machine.c"
			}
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 2787 "libvirt-machine.c"
		}
#line 211 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 211 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda81__boxes_run_in_thread_func, block17_data_ref (_data_->_data17_), block17_data_unref, NULL, boxes_libvirt_machine_update_net_stat_ready, _data_);
#line 211 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2795 "libvirt-machine.c"
		_state_1:
#line 211 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 211 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 211 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block17_data_unref (_data_->_data17_);
#line 211 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data17_ = NULL;
#line 2805 "libvirt-machine.c"
			goto __catch17_g_error;
		}
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->self->priv->stats;
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5__length1 = _data_->self->priv->stats_length1;
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp7_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp6_, &_data_->_tmp7_);
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->prev = _data_->_tmp7_;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->prev;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->_tmp8_.net;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp9_ != NULL) {
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp10_ = _data_->_data16_->stat;
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = _data_->_data16_->stat;
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = (*_data_->_tmp11_).net;
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp13_ = _data_->_tmp12_->rx_bytes;
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = _data_->prev;
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp15_ = _data_->_tmp14_.net;
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp16_ = _data_->_tmp15_->rx_bytes;
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp10_).net_read = (gdouble) (_data_->_tmp13_ - _data_->_tmp16_);
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp17_ = _data_->_data16_->stat;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = _data_->_data16_->stat;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp19_ = (*_data_->_tmp18_).net;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = _data_->_tmp19_->tx_bytes;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = _data_->prev;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22_ = _data_->_tmp21_.net;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp23_ = _data_->_tmp22_->tx_bytes;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp17_).net_write = (gdouble) (_data_->_tmp20_ - _data_->_tmp23_);
#line 2858 "libvirt-machine.c"
		}
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->prev);
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block17_data_unref (_data_->_data17_);
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data17_ = NULL;
#line 2866 "libvirt-machine.c"
	}
	goto __finally17;
	__catch17_g_error:
	{
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 220 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp24_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 220 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp25_ = _data_->_tmp24_;
#line 220 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp26_ = _data_->err;
#line 220 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp27_ = _data_->_tmp26_->message;
#line 220 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:220: Failed to fetch network statistics for %s: %" \
"s", _data_->_tmp25_, _data_->_tmp27_);
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 2887 "libvirt-machine.c"
	}
	__finally17:
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block16_data_unref (_data_->_data16_);
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data16_ = NULL;
#line 206 "/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 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 206 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2902 "libvirt-machine.c"
	}
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block16_data_unref (_data_->_data16_);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_ = NULL;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2912 "libvirt-machine.c"
	} else {
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2916 "libvirt-machine.c"
	}
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 2922 "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 2933 "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 2952 "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 2960 "libvirt-machine.c"
}


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


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


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


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


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


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


static gboolean boxes_libvirt_machine_update_stats_co (BoxesLibvirtMachineUpdateStatsData* _data_) {
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 3064 "libvirt-machine.c"
		goto _state_0;
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 3068 "libvirt-machine.c"
		goto _state_1;
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 3072 "libvirt-machine.c"
		goto _state_2;
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 3076 "libvirt-machine.c"
		goto _state_3;
		default:
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 3081 "libvirt-machine.c"
	}
	_state_0:
	{
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = 0LL;
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = g_get_monotonic_time ();
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->now = _data_->_tmp0_;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = _data_->now;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp2_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp2_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_.timestamp = _data_->_tmp1_;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat = _data_->_tmp2_;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->self->domain;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->self->priv->stats_cancellable;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 233 "/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 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3111 "libvirt-machine.c"
		_state_1:
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = NULL;
#line 233 "/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 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->info = _data_->_tmp5_;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_destroy (&_data_->stat);
#line 233 "/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 3125 "libvirt-machine.c"
				goto __catch18_g_io_error_cancelled;
			}
			goto __catch18_g_error;
		}
#line 235 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->info;
#line 235 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_cpu_stat (_data_->self, _data_->_tmp6_, &_data_->stat);
#line 236 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = _data_->info;
#line 236 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_mem_stat (_data_->self, _data_->_tmp7_, &_data_->stat);
#line 237 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->info;
#line 237 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 2;
#line 237 "/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 237 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3146 "libvirt-machine.c"
		_state_2:
#line 237 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_io_stat_finish (_data_->self, _data_->_res_);
#line 238 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->info;
#line 238 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 3;
#line 238 "/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 238 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3158 "libvirt-machine.c"
		_state_3:
#line 238 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_net_stat_finish (_data_->self, _data_->_res_);
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10_ = _data_->self->priv->stats;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10__length1 = _data_->self->priv->stats_length1;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11_ = ((_data_->_tmp10_ + 1) != NULL) ? _vala_array_dup2 (_data_->_tmp10_ + 1, BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1) : ((gpointer) (_data_->_tmp10_ + 1));
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11__length1 = BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1;
#line 240 "/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 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->stats = _data_->_tmp11_;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->stats_length1 = _data_->_tmp11__length1;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->_stats_size_ = _data_->self->priv->stats_length1;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12_ = _data_->self->priv->stats;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12__length1 = _data_->self->priv->stats_length1;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp13_ = _data_->stat;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp14_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp13_, &_data_->_tmp14_);
#line 241 "/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 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_data_->info);
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->stat);
#line 3194 "libvirt-machine.c"
	}
	goto __finally18;
	__catch18_g_io_error_cancelled:
	{
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 244 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 244 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 244 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3209 "libvirt-machine.c"
		} else {
#line 244 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 3213 "libvirt-machine.c"
		}
#line 244 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 244 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3219 "libvirt-machine.c"
	}
	goto __finally18;
	__catch18_g_error:
	{
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_vala1_err = _data_->_inner_error_;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 246 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp15_ = _data_->_vala1_err;
#line 246 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp16_ = _data_->_tmp15_->message;
#line 246 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:246: %s", _data_->_tmp16_);
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->_vala1_err);
#line 3236 "libvirt-machine.c"
	}
	__finally18:
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 230 "/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 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3247 "libvirt-machine.c"
	}
#line 249 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = NULL;
#line 249 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = g_new0 (gdouble, 0);
#line 249 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats = (g_free (_data_->self->cpu_stats), NULL);
#line 249 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats = _data_->_tmp17_;
#line 249 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats_length1 = 0;
#line 249 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_cpu_stats_size_ = _data_->self->cpu_stats_length1;
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = NULL;
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = g_new0 (gdouble, 0);
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats = (g_free (_data_->self->io_stats), NULL);
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats = _data_->_tmp18_;
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats_length1 = 0;
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_io_stats_size_ = _data_->self->io_stats_length1;
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = NULL;
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = g_new0 (gdouble, 0);
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats = (g_free (_data_->self->net_stats), NULL);
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats = _data_->_tmp19_;
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats_length1 = 0;
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_net_stats_size_ = _data_->self->net_stats_length1;
#line 253 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20_ = _data_->self->priv->stats;
#line 253 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20__length1 = _data_->self->priv->stats_length1;
#line 3289 "libvirt-machine.c"
	{
#line 253 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection_length1 = 0;
#line 253 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_stat_collection_size_ = 0;
#line 253 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection = _data_->_tmp20_;
#line 253 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection_length1 = _data_->_tmp20__length1;
#line 253 "/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 253 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			memset (&_data_->_tmp21_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 253 "/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 253 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_vala1_stat = _data_->_tmp21_;
#line 3307 "libvirt-machine.c"
			{
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22_ = _data_->self->cpu_stats;
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22__length1 = _data_->self->cpu_stats_length1;
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp23_ = _data_->_vala1_stat;
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp24_ = _data_->_tmp23_.cpu_guest_percent;
#line 254 "/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 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25_ = _data_->self->net_stats;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25__length1 = _data_->self->net_stats_length1;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp26_ = _data_->_vala1_stat;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp27_ = _data_->_tmp26_.net_read;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp28_ = _data_->_vala1_stat;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp29_ = _data_->_tmp28_.net_write;
#line 255 "/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 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30_ = _data_->self->io_stats;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30__length1 = _data_->self->io_stats_length1;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp31_ = _data_->_vala1_stat;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp32_ = _data_->_tmp31_.disk_read;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp33_ = _data_->_vala1_stat;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp34_ = _data_->_tmp33_.disk_write;
#line 256 "/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 253 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_libvirt_machine_machine_stat_destroy (&_data_->_vala1_stat);
#line 3349 "libvirt-machine.c"
			}
		}
	}
#line 259 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_emit_by_name (_data_->self, "stats-updated");
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3359 "libvirt-machine.c"
	} else {
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3363 "libvirt-machine.c"
	}
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 3369 "libvirt-machine.c"
}


static Block18Data* block18_data_ref (Block18Data* _data18_) {
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data18_->_ref_count_);
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data18_;
#line 3378 "libvirt-machine.c"
}


static void block18_data_unref (void * _userdata_) {
	Block18Data* _data18_;
	_data18_ = (Block18Data*) _userdata_;
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data18_->_ref_count_)) {
#line 3387 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data18_->self;
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block18Data, _data18_);
#line 3395 "libvirt-machine.c"
	}
}


static void __lambda82_ (Block18Data* _data18_) {
	BoxesLibvirtMachine * self;
#line 278 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data18_->self;
#line 278 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data18_->stats_updating = FALSE;
#line 3406 "libvirt-machine.c"
}


static void ___lambda82__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 278 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda82_ (self);
#line 278 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block18_data_unref (self);
#line 3415 "libvirt-machine.c"
}


static gboolean ___lambda79_ (Block18Data* _data18_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	gboolean _tmp0_;
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data18_->self;
#line 271 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data18_->stats_updating;
#line 271 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 3429 "libvirt-machine.c"
		const gchar* _tmp1_;
		const gchar* _tmp2_;
#line 272 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 272 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 272 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:272: Fetching of stats for '%s' is taking too lon" \
"g. Probably a libvirt bug.", _tmp2_);
#line 274 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		result = TRUE;
#line 274 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return result;
#line 3442 "libvirt-machine.c"
	}
#line 277 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data18_->stats_updating = TRUE;
#line 278 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_stats (self, ___lambda82__gasync_ready_callback, block18_data_ref (_data18_));
#line 280 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = TRUE;
#line 280 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3452 "libvirt-machine.c"
}


static gboolean ____lambda79__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda79_ (self);
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3461 "libvirt-machine.c"
}


static void boxes_libvirt_machine_set_stats_enable (BoxesLibvirtMachine* self, gboolean enable) {
	gboolean _tmp0_;
#line 262 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = enable;
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 3473 "libvirt-machine.c"
		Block18Data* _data18_;
		const gchar* _tmp1_;
		const gchar* _tmp2_;
		gchar* _tmp3_;
		gchar* _tmp4_;
		guint _tmp5_;
		GCancellable* _tmp6_;
		guint _tmp7_ = 0U;
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data18_ = g_slice_new0 (Block18Data);
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data18_->_ref_count_ = 1;
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data18_->self = g_object_ref (self);
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = g_strconcat ("enable statistics for ", _tmp2_, NULL);
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:264: %s", _tmp4_);
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp4_);
#line 265 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = self->priv->stats_update_timeout;
#line 265 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp5_ != ((guint) 0)) {
#line 266 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block18_data_unref (_data18_);
#line 266 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data18_ = NULL;
#line 266 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3510 "libvirt-machine.c"
		}
#line 268 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->priv->stats_cancellable;
#line 268 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_cancellable_reset (_tmp6_);
#line 269 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data18_->stats_updating = FALSE;
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 1, ____lambda79__gsource_func, block18_data_ref (_data18_), block18_data_unref);
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->stats_update_timeout = _tmp7_;
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block18_data_unref (_data18_);
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data18_ = NULL;
#line 3526 "libvirt-machine.c"
	} else {
		const gchar* _tmp8_;
		const gchar* _tmp9_;
		gchar* _tmp10_;
		gchar* _tmp11_;
		guint _tmp12_;
#line 283 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 283 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_;
#line 283 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = g_strconcat ("disable statistics for ", _tmp9_, NULL);
#line 283 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _tmp10_;
#line 283 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:283: %s", _tmp11_);
#line 283 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp11_);
#line 284 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = self->priv->stats_update_timeout;
#line 284 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp12_ != ((guint) 0)) {
#line 3549 "libvirt-machine.c"
			GCancellable* _tmp13_;
			guint _tmp14_;
#line 285 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp13_ = self->priv->stats_cancellable;
#line 285 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_cancellable_cancel (_tmp13_);
#line 286 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp14_ = self->priv->stats_update_timeout;
#line 286 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_source_remove (_tmp14_);
#line 3560 "libvirt-machine.c"
		}
#line 288 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->stats_update_timeout = (guint) 0;
#line 3564 "libvirt-machine.c"
	}
}


void boxes_libvirt_machine_try_change_name (BoxesLibvirtMachine* self, const gchar* name, GError** error) {
	GError * _inner_error_ = NULL;
#line 292 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 292 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (name != NULL);
#line 3575 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* config;
		GVirConfigDomain* _tmp2_;
		const gchar* _tmp3_;
		GVirDomain* _tmp4_;
		GVirConfigDomain* _tmp5_;
		const gchar* _tmp6_;
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		config = _tmp1_;
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 3593 "libvirt-machine.c"
			goto __catch19_g_error;
		}
#line 296 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = config;
#line 296 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = name;
#line 296 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_config_domain_set_title (_tmp2_, _tmp3_);
#line 298 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->domain;
#line 298 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = config;
#line 298 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_set_config (_tmp4_, _tmp5_, &_inner_error_);
#line 298 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 298 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (config);
#line 3612 "libvirt-machine.c"
			goto __catch19_g_error;
		}
#line 300 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = name;
#line 300 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_collection_item_set_name ((BoxesCollectionItem*) self, _tmp6_);
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 3621 "libvirt-machine.c"
	}
	goto __finally19;
	__catch19_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp7_;
		const gchar* _tmp8_ = NULL;
		const gchar* _tmp9_;
		GError* _tmp10_;
		const gchar* _tmp11_;
		GError* _tmp12_;
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 302 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = self->domain;
#line 302 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_domain_get_name (_tmp7_);
#line 302 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = name;
#line 302 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _error_;
#line 302 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _tmp10_->message;
#line 302 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:302: Failed to change title of box '%s' to '%s': " \
"%s", _tmp8_, _tmp9_, _tmp11_);
#line 304 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, "Invalid libvirt title");
#line 304 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = _tmp12_;
#line 304 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 3655 "libvirt-machine.c"
		goto __finally19;
	}
	__finally19:
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3667 "libvirt-machine.c"
		} else {
#line 293 "/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 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3675 "libvirt-machine.c"
		}
	}
}


void boxes_libvirt_machine_try_enable_usb_redir (BoxesLibvirtMachine* self, GError** error) {
	GVirDomain* _tmp0_;
	GVirConfigDomain* _tmp1_ = NULL;
	GVirConfigDomain* config;
	GVirConfigDomain* _tmp2_;
	GVirConfigDomain* _tmp3_;
	GVirDomain* _tmp4_;
	GVirConfigDomain* _tmp5_;
	gboolean _tmp6_ = FALSE;
	GError * _inner_error_ = NULL;
#line 308 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 309 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->domain;
#line 309 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 309 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	config = _tmp1_;
#line 309 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 309 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 309 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3705 "libvirt-machine.c"
	}
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = config;
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_vm_configurator_remove_usb_controllers (_tmp2_, &_inner_error_);
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 312 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3719 "libvirt-machine.c"
	}
#line 315 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = config;
#line 315 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_vm_configurator_add_usb_support (_tmp3_);
#line 318 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = self->domain;
#line 318 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = config;
#line 318 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gvir_domain_set_config (_tmp4_, _tmp5_, &_inner_error_);
#line 318 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 318 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 318 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 318 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3739 "libvirt-machine.c"
	}
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = boxes_machine_is_on ((BoxesMachine*) self);
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp6_) {
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_notify_reboot_required (self);
#line 3747 "libvirt-machine.c"
	}
#line 308 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (config);
#line 3751 "libvirt-machine.c"
}


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


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


static void ___lambda94_ (BoxesLibvirtMachine* self, BoxesProperty* property, const gchar* name, GError** error) {
	const gchar* _tmp0_;
	GError * _inner_error_ = NULL;
#line 336 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 336 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (name != NULL);
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = name;
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_try_change_name (self, _tmp0_, &_inner_error_);
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3790 "libvirt-machine.c"
		} else {
#line 337 "/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 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 337 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3798 "libvirt-machine.c"
		}
	}
}


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


static Block19Data* block19_data_ref (Block19Data* _data19_) {
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data19_->_ref_count_);
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data19_;
#line 3816 "libvirt-machine.c"
}


static void block19_data_unref (void * _userdata_) {
	Block19Data* _data19_;
	_data19_ = (Block19Data*) _userdata_;
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data19_->_ref_count_)) {
#line 3825 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data19_->self;
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data19_->property);
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block19Data, _data19_);
#line 3835 "libvirt-machine.c"
	}
}


static void ____lambda98_ (Block19Data* _data19_) {
	BoxesLibvirtMachine * self;
	GError * _inner_error_ = NULL;
#line 379 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data19_->self;
#line 3845 "libvirt-machine.c"
	{
		BoxesProperty* _tmp0_;
#line 381 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_try_enable_usb_redir (self, &_inner_error_);
#line 381 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 3852 "libvirt-machine.c"
			goto __catch22_g_error;
		}
#line 382 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_domain_config (self);
#line 383 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _data19_->property;
#line 383 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_emit_by_name (_tmp0_, "refresh-properties");
#line 3861 "libvirt-machine.c"
	}
	goto __finally22;
	__catch22_g_error:
	{
		GError* _error_ = NULL;
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:385: Failed to enable usb");
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 3875 "libvirt-machine.c"
	}
	__finally22:
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 380 "/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 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3886 "libvirt-machine.c"
	}
}


static void _____lambda98__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 379 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	____lambda98_ (self);
#line 3894 "libvirt-machine.c"
}


static GList* boxes_libvirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page, PropertyCreationFlag flags) {
	BoxesLibvirtMachine * self;
	GList* result = NULL;
	GList* list;
	BoxesDisplay* _tmp0_;
	BoxesDisplay* _tmp1_;
	BoxesPropertiesPage _tmp4_;
	BoxesDisplay* _tmp58_;
	BoxesDisplay* _tmp59_;
	GError * _inner_error_ = NULL;
#line 323 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 324 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	list = NULL;
#line 327 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 327 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 327 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == NULL) {
#line 3918 "libvirt-machine.c"
		{
#line 329 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_update_display (self, &_inner_error_);
#line 329 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 3924 "libvirt-machine.c"
				goto __catch20_g_error;
			}
		}
		goto __finally20;
		__catch20_g_error:
		{
			GError* e = NULL;
			GError* _tmp2_;
			const gchar* _tmp3_;
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			e = _inner_error_;
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_inner_error_ = NULL;
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp2_ = e;
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = _tmp2_->message;
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_warning ("libvirt-machine.vala:331: %s", _tmp3_);
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_error_free0 (e);
#line 3946 "libvirt-machine.c"
		}
		__finally20:
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			__g_list_free__g_object_unref0_0 (list);
#line 328 "/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 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 328 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 3959 "libvirt-machine.c"
		}
	}
#line 334 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = page;
#line 334 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_tmp4_) {
#line 334 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_LOGIN:
#line 3968 "libvirt-machine.c"
		{
			const gchar* _tmp5_ = NULL;
			const gchar* _tmp6_;
			const gchar* _tmp7_;
			BoxesProperty* _tmp8_ = NULL;
			BoxesProperty* _tmp9_;
			const gchar* _tmp10_ = NULL;
			BoxesCollectionSource* _tmp11_;
			gchar* _tmp12_;
			gchar* _tmp13_;
			gchar* _tmp14_;
			BoxesProperty* _tmp15_ = NULL;
			BoxesProperty* _tmp16_;
			BoxesDisplay* _tmp17_;
			BoxesDisplay* _tmp18_;
#line 336 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp5_ = _ ("Name");
#line 336 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 336 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = _tmp6_;
#line 336 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp5_, _tmp7_, ____lambda94__property_string_changed, self);
#line 336 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = _tmp8_;
#line 336 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_tmp9_);
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp10_ = _ ("Virtualizer");
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp11_ = ((BoxesMachine*) self)->source;
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp12_ = boxes_collection_source_get_uri (_tmp11_);
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp13_ = _tmp12_;
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp14_ = _tmp13_;
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp15_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp10_, _tmp14_, NULL, NULL);
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp16_ = _tmp15_;
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_tmp16_);
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp14_);
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp17_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp18_ = _tmp17_;
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp18_ != NULL) {
#line 4020 "libvirt-machine.c"
				const gchar* _tmp19_ = NULL;
				BoxesDisplay* _tmp20_;
				BoxesDisplay* _tmp21_;
				gchar* _tmp22_;
				gchar* _tmp23_;
				gchar* _tmp24_;
				BoxesProperty* _tmp25_ = NULL;
				BoxesProperty* _tmp26_;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp19_ = _ ("URI");
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp20_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp21_ = _tmp20_;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp22_ = boxes_display_get_uri (_tmp21_);
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp23_ = _tmp22_;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp24_ = _tmp23_;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp25_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp19_, _tmp24_, NULL, NULL);
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp26_ = _tmp25_;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_tmp26_);
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp24_);
#line 4049 "libvirt-machine.c"
			}
#line 342 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 4053 "libvirt-machine.c"
		}
#line 334 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_SYSTEM:
#line 4057 "libvirt-machine.c"
		{
#line 345 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_add_ram_property (self, &list);
#line 346 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_add_storage_property (self, &list);
#line 347 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 4065 "libvirt-machine.c"
		}
#line 334 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_DISPLAY:
#line 4069 "libvirt-machine.c"
		{
			BoxesDisplay* _tmp27_;
			BoxesDisplay* _tmp28_;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp27_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp28_ = _tmp27_;
#line 350 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp28_ != NULL) {
#line 4079 "libvirt-machine.c"
				const gchar* _tmp29_ = NULL;
				BoxesDisplay* _tmp30_;
				BoxesDisplay* _tmp31_;
				const gchar* _tmp32_;
				const gchar* _tmp33_;
				BoxesProperty* _tmp34_ = NULL;
				BoxesProperty* _tmp35_;
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp29_ = _ ("Protocol");
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp30_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp31_ = _tmp30_;
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp32_ = boxes_display_get_protocol (_tmp31_);
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp33_ = _tmp32_;
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp34_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp29_, _tmp33_, NULL, NULL);
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp35_ = _tmp34_;
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_tmp35_);
#line 4103 "libvirt-machine.c"
			}
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 4107 "libvirt-machine.c"
		}
#line 334 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_DEVICES:
#line 4111 "libvirt-machine.c"
		{
			gboolean has_usb_redir;
			gboolean _tmp46_;
			gboolean _tmp48_ = FALSE;
			gboolean _tmp49_;
			gboolean _tmp50_;
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			has_usb_redir = FALSE;
#line 4120 "libvirt-machine.c"
			{
				GVirDomain* _tmp36_;
				GVirConfigDomain* _tmp37_ = NULL;
				GVirConfigDomain* inactive_config;
				GVirConfigDomain* _tmp38_;
				GList* _tmp39_ = NULL;
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp36_ = self->domain;
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp37_ = gvir_domain_get_config (_tmp36_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				inactive_config = _tmp37_;
#line 359 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_inner_error_ != NULL) {
#line 4135 "libvirt-machine.c"
					goto __catch21_g_error;
				}
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp38_ = inactive_config;
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp39_ = gvir_config_domain_get_devices (_tmp38_);
#line 4142 "libvirt-machine.c"
				{
					GList* device_collection = NULL;
					GList* device_it = NULL;
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					device_collection = _tmp39_;
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					for (device_it = device_collection; device_it != NULL; device_it = device_it->next) {
#line 4150 "libvirt-machine.c"
						GVirConfigDomainDevice* _tmp40_;
						GVirConfigDomainDevice* device = NULL;
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp40_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_it->data);
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						device = _tmp40_;
#line 4157 "libvirt-machine.c"
						{
							GVirConfigDomainDevice* _tmp41_;
#line 361 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp41_ = device;
#line 361 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp41_, gvir_config_domain_redirdev_get_type ())) {
#line 362 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								has_usb_redir = TRUE;
#line 363 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_g_object_unref0 (device);
#line 363 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								break;
#line 4170 "libvirt-machine.c"
							}
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (device);
#line 4174 "libvirt-machine.c"
						}
					}
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					__g_list_free__g_object_unref0_0 (device_collection);
#line 4179 "libvirt-machine.c"
				}
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (inactive_config);
#line 4183 "libvirt-machine.c"
			}
			goto __finally21;
			__catch21_g_error:
			{
				GError* _error_ = NULL;
				GVirDomain* _tmp42_;
				const gchar* _tmp43_ = NULL;
				GError* _tmp44_;
				const gchar* _tmp45_;
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_error_ = _inner_error_;
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_inner_error_ = NULL;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp42_ = self->domain;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp43_ = gvir_domain_get_name (_tmp42_);
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp44_ = _error_;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp45_ = _tmp44_->message;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_warning ("libvirt-machine.vala:367: Failed to fetch configuration for domain '%s" \
"': %s", _tmp43_, _tmp45_);
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_error_free0 (_error_);
#line 4209 "libvirt-machine.c"
			}
			__finally21:
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				__g_list_free__g_object_unref0_0 (list);
#line 358 "/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 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_clear_error (&_inner_error_);
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return NULL;
#line 4222 "libvirt-machine.c"
			}
#line 370 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp46_ = has_usb_redir;
#line 370 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (!_tmp46_) {
#line 4228 "libvirt-machine.c"
				PropertyCreationFlag _tmp47_;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp47_ = flags;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				flags = _tmp47_ | PROPERTY_CREATION_FLAG_NO_USB;
#line 4234 "libvirt-machine.c"
			}
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp49_ = has_usb_redir;
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (!_tmp49_) {
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp48_ = HAVE_USBREDIR;
#line 4242 "libvirt-machine.c"
			} else {
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp48_ = FALSE;
#line 4246 "libvirt-machine.c"
			}
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp50_ = _tmp48_;
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp50_) {
#line 4252 "libvirt-machine.c"
				Block19Data* _data19_;
				const gchar* _tmp51_ = NULL;
				GtkButton* _tmp52_;
				GtkButton* button;
				GtkButton* _tmp53_;
				const gchar* _tmp54_ = NULL;
				GtkButton* _tmp55_;
				BoxesProperty* _tmp56_ = NULL;
				GtkButton* _tmp57_;
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data19_ = g_slice_new0 (Block19Data);
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data19_->_ref_count_ = 1;
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data19_->self = g_object_ref (self);
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp51_ = _ ("Add support to guest");
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp52_ = (GtkButton*) gtk_button_new_with_label (_tmp51_);
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_ref_sink (_tmp52_);
#line 376 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				button = _tmp52_;
#line 377 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp53_ = button;
#line 377 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				gtk_widget_set_halign ((GtkWidget*) _tmp53_, GTK_ALIGN_START);
#line 378 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp54_ = _ ("USB device support");
#line 378 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp55_ = button;
#line 378 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp56_ = boxes_iproperties_provider_add_property ((BoxesIPropertiesProvider*) self, &list, _tmp54_, (GtkWidget*) _tmp55_, NULL);
#line 378 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data19_->property = _tmp56_;
#line 379 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp57_ = button;
#line 379 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_signal_connect_data (_tmp57_, "clicked", (GCallback) _____lambda98__gtk_button_clicked, block19_data_ref (_data19_), (GClosureNotify) block19_data_unref, 0);
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (button);
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block19_data_unref (_data19_);
#line 375 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data19_ = NULL;
#line 4298 "libvirt-machine.c"
			}
#line 390 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 4302 "libvirt-machine.c"
		}
		default:
#line 334 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 4307 "libvirt-machine.c"
	}
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp58_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp59_ = _tmp58_;
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp59_ != NULL) {
#line 4315 "libvirt-machine.c"
		BoxesDisplay* _tmp60_;
		BoxesDisplay* _tmp61_;
		BoxesPropertiesPage _tmp62_;
		PropertyCreationFlag _tmp63_;
		GList* _tmp64_ = NULL;
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp60_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp61_ = _tmp60_;
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp62_ = page;
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp63_ = flags;
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp64_ = boxes_display_get_properties (_tmp61_, _tmp62_, _tmp63_);
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		list = g_list_concat (list, _tmp64_);
#line 4333 "libvirt-machine.c"
	}
#line 397 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = list;
#line 397 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 4339 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_update_display (BoxesLibvirtMachine* self, GError** error) {
	gboolean result = FALSE;
	BoxesDisplay* _tmp0_;
	BoxesDisplay* _tmp1_;
	gboolean created_display;
	BoxesDisplay* _tmp2_;
	BoxesDisplay* _tmp3_;
	GError * _inner_error_ = NULL;
#line 400 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 401 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 403 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 403 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 403 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	created_display = _tmp1_ == NULL;
#line 404 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 404 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 404 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp3_ == NULL) {
#line 4367 "libvirt-machine.c"
		BoxesDisplay* _tmp4_ = NULL;
		BoxesDisplay* _tmp5_;
		BoxesDisplay* _tmp6_;
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = boxes_libvirt_machine_create_display (self, &_inner_error_);
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp4_;
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 4381 "libvirt-machine.c"
		}
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _tmp5_;
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_set_display ((BoxesMachine*) self, _tmp6_);
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_tmp6_);
#line 4389 "libvirt-machine.c"
	}
#line 406 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = created_display;
#line 406 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 4395 "libvirt-machine.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1260 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1261 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	result = self;
#line 1261 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	return result;
#line 4407 "libvirt-machine.c"
}


static BoxesDisplay* boxes_libvirt_machine_create_display (BoxesLibvirtMachine* self, GError** error) {
	BoxesDisplay* result = NULL;
	gchar* type = NULL;
	gchar* port = NULL;
	gchar* socket = NULL;
	gchar* host = NULL;
	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_;
	gboolean _tmp29_ = FALSE;
	const gchar* _tmp30_;
	gboolean _tmp32_;
	const gchar* _tmp34_;
	const gchar* _tmp35_;
	GQuark _tmp37_ = 0U;
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	static GQuark _tmp36_label0 = 0;
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	static GQuark _tmp36_label1 = 0;
#line 4457 "libvirt-machine.c"
	GError * _inner_error_ = NULL;
#line 409 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 412 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->domain_config;
#line 412 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_config_object_to_xml ((GVirConfigObject*) _tmp0_);
#line 412 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	xmldoc = _tmp1_;
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = xmldoc;
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = boxes_extract_xpath (_tmp2_, "string(/domain/devices/graphics/@type)", TRUE, &_inner_error_);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = _tmp3_;
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4491 "libvirt-machine.c"
		} else {
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 413 "/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 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4509 "libvirt-machine.c"
		}
	}
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (type);
#line 413 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	type = _tmp4_;
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = xmldoc;
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = type;
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = string_to_string (_tmp6_);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp7_, "']/@port)", NULL);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = _tmp8_;
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = boxes_extract_xpath (_tmp5_, _tmp9_, FALSE, &_inner_error_);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = _tmp10_;
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp9_);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = _tmp11_;
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4552 "libvirt-machine.c"
		} else {
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 414 "/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 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4570 "libvirt-machine.c"
		}
	}
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (port);
#line 414 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	port = _tmp12_;
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = xmldoc;
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = type;
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = string_to_string (_tmp14_);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp15_, "']/@socket)", NULL);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = _tmp16_;
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = boxes_extract_xpath (_tmp13_, _tmp17_, FALSE, &_inner_error_);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp19_ = _tmp18_;
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp17_);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp20_ = _tmp19_;
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4613 "libvirt-machine.c"
		} else {
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 415 "/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 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4631 "libvirt-machine.c"
		}
	}
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (socket);
#line 415 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	socket = _tmp20_;
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp21_ = xmldoc;
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp22_ = type;
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp23_ = string_to_string (_tmp22_);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp24_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp23_, "']/@listen)", NULL);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp25_ = _tmp24_;
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp26_ = boxes_extract_xpath (_tmp21_, _tmp25_, FALSE, &_inner_error_);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp27_ = _tmp26_;
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp25_);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp28_ = _tmp27_;
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4674 "libvirt-machine.c"
		} else {
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 416 "/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 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4692 "libvirt-machine.c"
		}
	}
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (host);
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	host = _tmp28_;
#line 418 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp30_ = host;
#line 418 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp30_ == NULL) {
#line 418 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp29_ = TRUE;
#line 4705 "libvirt-machine.c"
	} else {
		const gchar* _tmp31_;
#line 418 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp31_ = host;
#line 418 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp29_ = g_strcmp0 (_tmp31_, "") == 0;
#line 4712 "libvirt-machine.c"
	}
#line 418 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp32_ = _tmp29_;
#line 418 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp32_) {
#line 4718 "libvirt-machine.c"
		gchar* _tmp33_;
#line 419 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp33_ = g_strdup ("localhost");
#line 419 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (host);
#line 419 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		host = _tmp33_;
#line 4726 "libvirt-machine.c"
	}
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp34_ = type;
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp35_ = _tmp34_;
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp37_ = (NULL == _tmp35_) ? 0 : g_quark_from_string (_tmp35_);
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp37_ == ((0 != _tmp36_label0) ? _tmp36_label0 : (_tmp36_label0 = g_quark_from_static_string ("spice")))) {
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 4738 "libvirt-machine.c"
			default:
			{
				BoxesBoxConfig* _tmp38_;
				const gchar* _tmp39_;
				const gchar* _tmp40_;
				gint _tmp41_ = 0;
				BoxesSpiceDisplay* _tmp42_;
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp38_ = ((BoxesMachine*) self)->config;
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp39_ = host;
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp40_ = port;
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp41_ = atoi (_tmp40_);
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp42_ = boxes_spice_display_new (_tmp38_, _tmp39_, _tmp41_);
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				result = (BoxesDisplay*) _tmp42_;
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (xmldoc);
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (host);
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (socket);
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (port);
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (type);
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return result;
#line 4770 "libvirt-machine.c"
			}
		}
	} else if (_tmp37_ == ((0 != _tmp36_label1) ? _tmp36_label1 : (_tmp36_label1 = g_quark_from_static_string ("vnc")))) {
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 4776 "libvirt-machine.c"
			default:
			{
				BoxesBoxConfig* _tmp43_;
				const gchar* _tmp44_;
				const gchar* _tmp45_;
				gint _tmp46_ = 0;
				BoxesVncDisplay* _tmp47_;
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp43_ = ((BoxesMachine*) self)->config;
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp44_ = host;
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp45_ = port;
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp46_ = atoi (_tmp45_);
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp47_ = boxes_vnc_display_new (_tmp43_, _tmp44_, _tmp46_);
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				result = (BoxesDisplay*) _tmp47_;
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (xmldoc);
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (host);
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (socket);
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (port);
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (type);
#line 426 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return result;
#line 4808 "libvirt-machine.c"
			}
		}
	} else {
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 4814 "libvirt-machine.c"
			default:
			{
				const gchar* _tmp48_;
				gchar* _tmp49_;
				gchar* _tmp50_;
				GError* _tmp51_;
				GError* _tmp52_;
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp48_ = type;
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp49_ = g_strconcat ("unsupported display of type ", _tmp48_, NULL);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp50_ = _tmp49_;
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp51_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, _tmp50_);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp52_ = _tmp51_;
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp50_);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_inner_error_ = _tmp52_;
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_inner_error_->domain == BOXES_ERROR) {
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_propagate_error (error, _inner_error_);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (xmldoc);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (host);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (socket);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (port);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (type);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					return NULL;
#line 4852 "libvirt-machine.c"
				} else {
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (xmldoc);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (host);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (socket);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (port);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (type);
#line 429 "/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 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_clear_error (&_inner_error_);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					return NULL;
#line 4870 "libvirt-machine.c"
				}
			}
		}
	}
#line 409 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (xmldoc);
#line 409 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (host);
#line 409 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (socket);
#line 409 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (port);
#line 409 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (type);
#line 4885 "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 4898 "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 4920 "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 4931 "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 4941 "libvirt-machine.c"
}


static Block20Data* block20_data_ref (Block20Data* _data20_) {
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data20_->_ref_count_);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data20_;
#line 4950 "libvirt-machine.c"
}


static void block20_data_unref (void * _userdata_) {
	Block20Data* _data20_;
	_data20_ = (Block20Data*) _userdata_;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data20_->_ref_count_)) {
#line 4959 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data20_->self;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data20_->stream);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block20Data, _data20_);
#line 4969 "libvirt-machine.c"
	}
}


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


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


static void ___lambda99__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda99_ (self, error);
#line 5021 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_real_take_screenshot_co (BoxesLibvirtMachineTakeScreenshotData* _data_) {
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 5030 "libvirt-machine.c"
		goto _state_0;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 5034 "libvirt-machine.c"
		goto _state_1;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 5038 "libvirt-machine.c"
		goto _state_2;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 5042 "libvirt-machine.c"
		goto _state_3;
		default:
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 5047 "libvirt-machine.c"
	}
	_state_0:
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data20_ = g_slice_new0 (Block20Data);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data20_->_ref_count_ = 1;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data20_->self = g_object_ref (_data_->self);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data20_->_async_data_ = _data_;
#line 434 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->state = GVIR_DOMAIN_STATE_NONE;
#line 5060 "libvirt-machine.c"
	{
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = _data_->self->domain;
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 436 "/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 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5070 "libvirt-machine.c"
		_state_1:
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = NULL;
#line 436 "/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 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_ = _data_->_tmp1_;
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 5080 "libvirt-machine.c"
			goto __catch23_g_error;
		}
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->_tmp2_;
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_tmp3_->state;
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->state = _data_->_tmp4_;
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_data_->_tmp3_);
#line 5091 "libvirt-machine.c"
	}
	goto __finally23;
	__catch23_g_error:
	{
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_;
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:438: Failed to get information on '%s'", _data_->_tmp6_);
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->_error_);
#line 5108 "libvirt-machine.c"
	}
	__finally23:
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block20_data_unref (_data_->_data20_);
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data20_ = NULL;
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5125 "libvirt-machine.c"
		} else {
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 5129 "libvirt-machine.c"
		}
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5135 "libvirt-machine.c"
	}
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp9_ = _data_->state;
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp9_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10_ = _data_->state;
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->_tmp10_ != GVIR_DOMAIN_STATE_PAUSED;
#line 5145 "libvirt-machine.c"
	} else {
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = FALSE;
#line 5149 "libvirt-machine.c"
	}
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp11_ = _data_->_tmp8_;
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp11_) {
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12_ = _data_->state;
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = _data_->_tmp12_ != GVIR_DOMAIN_STATE_PMSUSPENDED;
#line 5159 "libvirt-machine.c"
	} else {
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = FALSE;
#line 5163 "libvirt-machine.c"
	}
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp13_ = _data_->_tmp7_;
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp13_) {
#line 442 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->result = NULL;
#line 442 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block20_data_unref (_data_->_data20_);
#line 442 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data20_ = NULL;
#line 442 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 442 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5179 "libvirt-machine.c"
		} else {
#line 442 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 5183 "libvirt-machine.c"
		}
#line 442 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 442 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5189 "libvirt-machine.c"
	}
#line 444 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp14_ = _data_->self->connection;
#line 444 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp15_ = NULL;
#line 444 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp15_ = gvir_connection_get_stream (_data_->_tmp14_, (guint) 0);
#line 444 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data20_->stream = _data_->_tmp15_;
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 2;
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_run_in_thread (___lambda99__boxes_run_in_thread_func, block20_data_ref (_data_->_data20_), block20_data_unref, NULL, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 5205 "libvirt-machine.c"
	_state_2:
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block20_data_unref (_data_->_data20_);
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data20_ = NULL;
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5223 "libvirt-machine.c"
		} else {
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 5227 "libvirt-machine.c"
		}
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 445 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5233 "libvirt-machine.c"
	}
#line 449 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp16_ = gdk_pixbuf_loader_new ();
#line 449 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->loader = _data_->_tmp16_;
#line 450 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = _data_->_data20_->stream;
#line 450 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = NULL;
#line 450 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = g_io_stream_get_input_stream ((GIOStream*) _data_->_tmp17_);
#line 450 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = _g_object_ref0 (_data_->_tmp18_);
#line 450 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->input_stream = _data_->_tmp19_;
#line 451 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20_ = NULL;
#line 451 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20_ = g_new0 (guint8, 65535);
#line 451 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = _data_->_tmp20_;
#line 451 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer_length1 = 65535;
#line 451 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_buffer_size_ = _data_->buffer_length1;
#line 452 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->length = (gssize) 0;
#line 5261 "libvirt-machine.c"
	{
#line 453 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp21_ = TRUE;
#line 453 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		while (TRUE) {
#line 453 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22_ = _data_->_tmp21_;
#line 453 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (!_data_->_tmp22_) {
#line 456 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp23_ = _data_->length;
#line 456 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (!(_data_->_tmp23_ > ((gssize) 0))) {
#line 456 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					break;
#line 5277 "libvirt-machine.c"
				}
			}
#line 453 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = FALSE;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp24_ = _data_->input_stream;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp25_ = _data_->buffer;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp25__length1 = _data_->buffer_length1;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_state_ = 3;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_input_stream_read_async (_data_->_tmp24_, (void*) _data_->_tmp25_, (gsize) _data_->_tmp25__length1, G_PRIORITY_DEFAULT, NULL, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 5294 "libvirt-machine.c"
			_state_3:
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp26_ = 0L;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp26_ = g_input_stream_read_finish (_data_->_tmp24_, _data_->_res_, &_data_->_inner_error_);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp27_ = _data_->_tmp26_;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->buffer = (g_free (_data_->buffer), NULL);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->input_stream);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->loader);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block20_data_unref (_data_->_data20_);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_data20_ = NULL;
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5322 "libvirt-machine.c"
				} else {
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 5326 "libvirt-machine.c"
				}
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 5332 "libvirt-machine.c"
			}
#line 454 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->length = _data_->_tmp27_;
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp28_ = _data_->loader;
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp29_ = _data_->buffer;
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp29__length1 = _data_->buffer_length1;
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp30_ = _data_->length;
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gdk_pixbuf_loader_write (_data_->_tmp28_, _data_->_tmp29_ + 0, (gsize) (_data_->_tmp30_ - 0), &_data_->_inner_error_);
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->buffer = (g_free (_data_->buffer), NULL);
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->input_stream);
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->loader);
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block20_data_unref (_data_->_data20_);
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_data20_ = NULL;
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5366 "libvirt-machine.c"
				} else {
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 5370 "libvirt-machine.c"
				}
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 5376 "libvirt-machine.c"
			}
		}
	}
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp31_ = _data_->loader;
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gdk_pixbuf_loader_close (_data_->_tmp31_, &_data_->_inner_error_);
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->buffer = (g_free (_data_->buffer), NULL);
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data_->input_stream);
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data_->loader);
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block20_data_unref (_data_->_data20_);
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data20_ = NULL;
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5404 "libvirt-machine.c"
		} else {
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 5408 "libvirt-machine.c"
		}
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5414 "libvirt-machine.c"
	}
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp32_ = _data_->loader;
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp33_ = NULL;
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp33_ = gdk_pixbuf_loader_get_pixbuf (_data_->_tmp32_);
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp34_ = _g_object_ref0 (_data_->_tmp33_);
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->result = _data_->_tmp34_;
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = (g_free (_data_->buffer), NULL);
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->input_stream);
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->loader);
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block20_data_unref (_data_->_data20_);
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data20_ = NULL;
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5440 "libvirt-machine.c"
	} else {
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 5444 "libvirt-machine.c"
	}
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = (g_free (_data_->buffer), NULL);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->input_stream);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->loader);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block20_data_unref (_data_->_data20_);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data20_ = NULL;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5464 "libvirt-machine.c"
	} else {
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 5468 "libvirt-machine.c"
	}
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 5474 "libvirt-machine.c"
}


static Block21Data* block21_data_ref (Block21Data* _data21_) {
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data21_->_ref_count_);
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data21_;
#line 5483 "libvirt-machine.c"
}


static void block21_data_unref (void * _userdata_) {
	Block21Data* _data21_;
	_data21_ = (Block21Data*) _userdata_;
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data21_->_ref_count_)) {
#line 5492 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data21_->self;
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data21_->domain);
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block21Data, _data21_);
#line 5502 "libvirt-machine.c"
	}
}


static void ___lambda100_ (Block21Data* _data21_, GError** error) {
	BoxesLibvirtMachine * self;
	GVirStorageVol* _tmp6_;
	GError * _inner_error_ = NULL;
#line 477 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data21_->self;
#line 5513 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
#line 480 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _data21_->domain;
#line 480 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_delete (_tmp0_, (guint) GVIR_DOMAIN_DELETE_SAVED_STATE, &_inner_error_);
#line 480 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 5522 "libvirt-machine.c"
			goto __catch24_g_error;
		}
	}
	goto __finally24;
	__catch24_g_error:
	{
		GError* err = NULL;
		GError* _tmp1_;
		const gchar* _tmp2_;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		err = _inner_error_;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 482 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = err;
#line 482 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_->message;
#line 482 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:482: %s", _tmp2_);
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (err);
#line 5544 "libvirt-machine.c"
	}
	__finally24:
#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_propagate_error (error, _inner_error_);
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5553 "libvirt-machine.c"
	}
	{
		GVirDomain* _tmp3_;
#line 487 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _data21_->domain;
#line 487 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_stop (_tmp3_, (guint) 0, &_inner_error_);
#line 487 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 5563 "libvirt-machine.c"
			goto __catch25_g_error;
		}
	}
	goto __finally25;
	__catch25_g_error:
	{
		GError* err = NULL;
		GError* _tmp4_;
		const gchar* _tmp5_;
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		err = _inner_error_;
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 489 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = err;
#line 489 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp4_->message;
#line 489 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:489: %s", _tmp5_);
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (err);
#line 5585 "libvirt-machine.c"
	}
	__finally25:
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5594 "libvirt-machine.c"
	}
#line 493 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = self->storage_volume;
#line 493 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp6_ != NULL) {
#line 5600 "libvirt-machine.c"
		{
			GVirStorageVol* _tmp7_;
#line 495 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = self->storage_volume;
#line 495 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_storage_vol_delete (_tmp7_, (guint) 0, &_inner_error_);
#line 495 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 5609 "libvirt-machine.c"
				goto __catch26_g_error;
			}
		}
		goto __finally26;
		__catch26_g_error:
		{
			GError* err = NULL;
			GError* _tmp8_;
			const gchar* _tmp9_;
#line 494 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			err = _inner_error_;
#line 494 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_inner_error_ = NULL;
#line 497 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = err;
#line 497 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = _tmp8_->message;
#line 497 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_warning ("libvirt-machine.vala:497: %s", _tmp9_);
#line 494 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_error_free0 (err);
#line 5631 "libvirt-machine.c"
		}
		__finally26:
#line 494 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 494 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 494 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 5640 "libvirt-machine.c"
		}
	}
}


static void ____lambda100__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 477 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda100_ (self, error);
#line 5649 "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_;
	guint _tmp5_;
	gboolean _tmp7_;
#line 462 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = g_strconcat ("delete libvirt machine: ", _tmp1_, NULL);
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:463: %s", _tmp3_);
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp3_);
#line 464 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = by_user;
#line 464 "/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 466 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_set_stats_enable (self, FALSE);
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = self->priv->shutdown_timeout;
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_ != ((guint) 0)) {
#line 5686 "libvirt-machine.c"
		guint _tmp6_;
#line 468 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->priv->shutdown_timeout;
#line 468 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_source_remove (_tmp6_);
#line 469 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->shutdown_timeout = (guint) 0;
#line 5694 "libvirt-machine.c"
	}
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = by_user;
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp7_) {
#line 5700 "libvirt-machine.c"
		Block21Data* _data21_;
		GVirDomain* _tmp8_;
		GVirDomain* _tmp9_;
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data21_ = g_slice_new0 (Block21Data);
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data21_->_ref_count_ = 1;
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data21_->self = g_object_ref (self);
#line 473 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = self->domain;
#line 473 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _g_object_ref0 (_tmp8_);
#line 473 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data21_->domain = _tmp9_;
#line 477 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda100__boxes_run_in_thread_func, block21_data_ref (_data21_), block21_data_unref, NULL, NULL, NULL);
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block21_data_unref (_data21_);
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data21_ = NULL;
#line 5722 "libvirt-machine.c"
	}
}


static void boxes_libvirt_machine_real_save_data_free (gpointer _data) {
	BoxesLibvirtMachineSaveData* _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 (BoxesLibvirtMachineSaveData, _data_);
#line 5734 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_save (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineSaveData* _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 (BoxesLibvirtMachineSaveData);
#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_save);
#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_save_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_save_co (_data_);
#line 5756 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_save_finish (BoxesMachine* base, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtMachineSaveData* _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 5766 "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 5770 "libvirt-machine.c"
}


static void boxes_libvirt_machine_save_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineSaveData* _data_;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_save_co (_data_);
#line 5784 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_real_save_co (BoxesLibvirtMachineSaveData* _data_) {
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 5793 "libvirt-machine.c"
		goto _state_0;
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 5797 "libvirt-machine.c"
		goto _state_1;
		default:
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 5802 "libvirt-machine.c"
	}
	_state_0:
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->self->domain;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 1;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gvir_domain_save_async (_data_->_tmp0_, (guint) 0, NULL, boxes_libvirt_machine_save_ready, _data_);
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 5813 "libvirt-machine.c"
	_state_1:
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gvir_domain_save_finish (_data_->_tmp0_, _data_->_res_, &_data_->_inner_error_);
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5827 "libvirt-machine.c"
		} else {
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 5831 "libvirt-machine.c"
		}
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5837 "libvirt-machine.c"
	}
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5843 "libvirt-machine.c"
	} else {
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 5847 "libvirt-machine.c"
	}
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 503 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 5853 "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 5864 "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 5883 "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 5893 "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 5897 "libvirt-machine.c"
}


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


static gboolean boxes_libvirt_machine_suspend_co (BoxesLibvirtMachineSuspendData* _data_) {
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 5920 "libvirt-machine.c"
		goto _state_0;
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 5924 "libvirt-machine.c"
		goto _state_1;
		default:
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 5929 "libvirt-machine.c"
	}
	_state_0:
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = boxes_libvirt_machine_get_save_on_quit (_data_->self);
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp2_) {
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->self->domain;
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 508 "/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 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5946 "libvirt-machine.c"
		_state_1:
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = FALSE;
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = gvir_domain_save_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = _data_->_tmp4_;
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5964 "libvirt-machine.c"
			} else {
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 5968 "libvirt-machine.c"
			}
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 5974 "libvirt-machine.c"
		}
	} else {
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->self->domain;
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = FALSE;
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = gvir_domain_suspend (_data_->_tmp5_, &_data_->_inner_error_);
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = _data_->_tmp6_;
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5995 "libvirt-machine.c"
			} else {
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 5999 "libvirt-machine.c"
			}
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 6005 "libvirt-machine.c"
		}
	}
#line 508 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp7_ = _data_->_tmp0_;
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 6014 "libvirt-machine.c"
	} else {
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 6018 "libvirt-machine.c"
	}
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 507 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 6024 "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 511 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 512 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = confirm;
#line 512 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 6039 "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 513 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_app_app;
#line 513 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_->window;
#line 513 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _ ("When you force shutdown, the box may lose data.");
#line 513 "/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 513 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_ref_sink (_tmp4_);
#line 513 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		dialog = _tmp4_;
#line 518 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = dialog;
#line 518 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = gtk_dialog_run ((GtkDialog*) _tmp5_);
#line 518 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		response = _tmp6_;
#line 519 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = dialog;
#line 519 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp7_);
#line 521 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = response;
#line 521 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp8_ != ((gint) GTK_RESPONSE_OK)) {
#line 522 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (dialog);
#line 522 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 6080 "libvirt-machine.c"
		}
#line 512 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (dialog);
#line 6084 "libvirt-machine.c"
	}
#line 525 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 525 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = _tmp9_;
#line 525 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:525: Force shutdown '%s'..", _tmp10_);
#line 6092 "libvirt-machine.c"
	{
		GVirDomain* _tmp11_;
#line 527 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->force_stopped = TRUE;
#line 528 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = self->domain;
#line 528 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_stop (_tmp11_, (guint) 0, &_inner_error_);
#line 528 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 6103 "libvirt-machine.c"
			goto __catch27_g_error;
		}
	}
	goto __finally27;
	__catch27_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp12_;
		const gchar* _tmp13_ = NULL;
		GError* _tmp14_;
		const gchar* _tmp15_;
#line 526 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 526 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 530 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = self->domain;
#line 530 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = gvir_domain_get_name (_tmp12_);
#line 530 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = _error_;
#line 530 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _tmp14_->message;
#line 530 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:530: Failed to shutdown '%s': %s", _tmp13_, _tmp15_);
#line 526 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 6131 "libvirt-machine.c"
	}
	__finally27:
#line 526 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 526 "/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 526 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 526 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 6142 "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;
	GError * _inner_error_ = NULL;
#line 534 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 535 "/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 535 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	disk = _tmp0_;
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = self->domain_config;
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_config_domain_get_devices (_tmp1_);
#line 6164 "libvirt-machine.c"
	{
		GList* device_config_collection = NULL;
		GList* device_config_it = NULL;
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		device_config_collection = _tmp2_;
#line 537 "/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 6172 "libvirt-machine.c"
			GVirConfigDomainDevice* _tmp3_;
			GVirConfigDomainDevice* device_config = NULL;
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_config_it->data);
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			device_config = _tmp3_;
#line 6179 "libvirt-machine.c"
			{
				GVirConfigDomainDevice* _tmp4_;
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp4_ = device_config;
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gvir_config_domain_disk_get_type ())) {
#line 6186 "libvirt-machine.c"
					GVirConfigDomainDevice* _tmp5_;
					GVirConfigDomainDisk* _tmp6_;
					GVirConfigDomainDisk* disk_config;
					GVirConfigDomainDisk* _tmp7_;
					GVirConfigDomainDiskGuestDeviceType _tmp8_ = 0;
					GVirConfigDomainDiskGuestDeviceType disk_type;
					const gchar* _tmp9_ = NULL;
					GVirStorageVol* _tmp10_;
					const gchar* _tmp13_;
					gchar* _tmp14_;
					gchar* storage_volume_path;
					gboolean _tmp15_ = FALSE;
					GVirConfigDomainDiskGuestDeviceType _tmp16_;
					gboolean _tmp20_;
#line 539 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp5_ = device_config;
#line 539 "/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 539 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					disk_config = _tmp6_;
#line 540 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp7_ = disk_config;
#line 540 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp8_ = gvir_config_domain_disk_get_guest_device_type (_tmp7_);
#line 540 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					disk_type = _tmp8_;
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp10_ = self->storage_volume;
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp10_ != NULL) {
#line 6217 "libvirt-machine.c"
						GVirStorageVol* _tmp11_;
						const gchar* _tmp12_ = NULL;
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp11_ = self->storage_volume;
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp12_ = gvir_storage_vol_get_path (_tmp11_, &_inner_error_);
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp9_ = _tmp12_;
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						if (_inner_error_ != NULL) {
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							g_propagate_error (error, _inner_error_);
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (disk_config);
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (device_config);
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							__g_list_free__g_object_unref0_0 (device_config_collection);
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (disk);
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							return NULL;
#line 6240 "libvirt-machine.c"
						}
					} else {
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp9_ = NULL;
#line 6245 "libvirt-machine.c"
					}
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp13_ = _tmp9_;
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp14_ = g_strdup (_tmp13_);
#line 541 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					storage_volume_path = _tmp14_;
#line 544 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp16_ = disk_type;
#line 544 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp16_ == GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK) {
#line 6257 "libvirt-machine.c"
						GVirConfigDomainDisk* _tmp17_;
						const gchar* _tmp18_ = NULL;
						const gchar* _tmp19_;
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp17_ = disk_config;
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp18_ = gvir_config_domain_disk_get_source (_tmp17_);
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp19_ = storage_volume_path;
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp15_ = g_strcmp0 (_tmp18_, _tmp19_) == 0;
#line 6269 "libvirt-machine.c"
					} else {
#line 544 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp15_ = FALSE;
#line 6273 "libvirt-machine.c"
					}
#line 544 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp20_ = _tmp15_;
#line 544 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp20_) {
#line 6279 "libvirt-machine.c"
						GVirDomain* _tmp21_;
						GVirConfigDomainDevice* _tmp22_;
						GObject* _tmp23_ = NULL;
						GObject* _tmp24_;
#line 546 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp21_ = self->domain;
#line 546 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp22_ = device_config;
#line 546 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp23_ = g_object_new (gvir_domain_disk_get_type (), "domain", _tmp21_, "config", _tmp22_, NULL);
#line 546 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp24_ = G_IS_INITIALLY_UNOWNED (_tmp23_) ? g_object_ref_sink (_tmp23_) : _tmp23_;
#line 546 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (disk);
#line 546 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						disk = G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, gvir_domain_disk_get_type ()) ? ((GVirDomainDisk*) _tmp24_) : NULL;
#line 550 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_free0 (storage_volume_path);
#line 550 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (disk_config);
#line 550 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (device_config);
#line 550 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						break;
#line 6304 "libvirt-machine.c"
					}
#line 544 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (storage_volume_path);
#line 544 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (disk_config);
#line 6310 "libvirt-machine.c"
				}
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (device_config);
#line 6314 "libvirt-machine.c"
			}
		}
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__g_list_free__g_object_unref0_0 (device_config_collection);
#line 6319 "libvirt-machine.c"
	}
#line 555 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = disk;
#line 555 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6325 "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 558 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 559 "/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 559 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	net = _tmp0_;
#line 562 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = self->domain_config;
#line 562 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_config_domain_get_devices (_tmp1_);
#line 6345 "libvirt-machine.c"
	{
		GList* device_config_collection = NULL;
		GList* device_config_it = NULL;
#line 562 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		device_config_collection = _tmp2_;
#line 562 "/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 6353 "libvirt-machine.c"
			GVirConfigDomainDevice* _tmp3_;
			GVirConfigDomainDevice* device_config = NULL;
#line 562 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_config_it->data);
#line 562 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			device_config = _tmp3_;
#line 6360 "libvirt-machine.c"
			{
				GVirConfigDomainDevice* _tmp4_;
#line 563 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp4_ = device_config;
#line 563 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gvir_config_domain_interface_get_type ())) {
#line 6367 "libvirt-machine.c"
					GVirDomain* _tmp5_;
					GVirConfigDomainDevice* _tmp6_;
					GObject* _tmp7_ = NULL;
					GObject* _tmp8_;
#line 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp5_ = self->domain;
#line 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp6_ = device_config;
#line 564 "/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 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp8_ = G_IS_INITIALLY_UNOWNED (_tmp7_) ? g_object_ref_sink (_tmp7_) : _tmp7_;
#line 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (net);
#line 564 "/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 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (device_config);
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					break;
#line 6388 "libvirt-machine.c"
				}
#line 563 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (device_config);
#line 6392 "libvirt-machine.c"
			}
		}
#line 563 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__g_list_free__g_object_unref0_0 (device_config_collection);
#line 6397 "libvirt-machine.c"
	}
#line 571 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = net;
#line 571 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6403 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_ram_property (BoxesLibvirtMachine* self, BoxesProperty* property) {
	GError * _inner_error_ = NULL;
#line 574 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 574 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 6413 "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 576 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 576 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 576 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		config = _tmp1_;
#line 576 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 6438 "libvirt-machine.c"
			goto __catch28_g_error;
		}
#line 579 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = self->domain_config;
#line 579 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = gvir_config_domain_get_memory (_tmp2_);
#line 579 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 579 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		actual = _tmp4_ / 1024;
#line 580 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = gvir_config_domain_get_memory (config);
#line 580 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _tmp5_;
#line 580 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		pending = _tmp6_ / 1024;
#line 582 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = actual;
#line 582 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = pending;
#line 582 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:582: RAM actual: %llu, pending: %llu", _tmp7_, _tmp8_);
#line 584 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = property;
#line 584 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = actual;
#line 584 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = pending;
#line 584 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_property_set_reboot_required (_tmp9_, (_tmp10_ - _tmp11_) > ((guint64) 1));
#line 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 6471 "libvirt-machine.c"
	}
	goto __finally28;
	__catch28_g_error:
	{
		GError* e = NULL;
#line 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		e = _inner_error_;
#line 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (e);
#line 6483 "libvirt-machine.c"
	}
	__finally28:
#line 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 575 "/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 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 6494 "libvirt-machine.c"
	}
}


static Block22Data* block22_data_ref (Block22Data* _data22_) {
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data22_->_ref_count_);
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data22_;
#line 6504 "libvirt-machine.c"
}


static void block22_data_unref (void * _userdata_) {
	Block22Data* _data22_;
	_data22_ = (Block22Data*) _userdata_;
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data22_->_ref_count_)) {
#line 6513 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data22_->self;
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data22_->property);
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block22Data, _data22_);
#line 6523 "libvirt-machine.c"
	}
}


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


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


static void ___lambda96_ (Block22Data* _data22_) {
	BoxesLibvirtMachine * self;
	gboolean _tmp0_ = FALSE;
#line 601 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data22_->self;
#line 602 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_is_on ((BoxesMachine*) self);
#line 602 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (!_tmp0_) {
#line 6551 "libvirt-machine.c"
		BoxesProperty* _tmp1_;
#line 603 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = _data22_->property;
#line 603 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_property_set_reboot_required (_tmp1_, FALSE);
#line 6557 "libvirt-machine.c"
	}
}


static void ____lambda96__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 601 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda96_ (self);
#line 6565 "libvirt-machine.c"
}


static void boxes_libvirt_machine_add_ram_property (BoxesLibvirtMachine* self, GList** list) {
	GError * _inner_error_ = NULL;
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 6573 "libvirt-machine.c"
	{
		Block22Data* _data22_;
		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 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data22_ = g_slice_new0 (Block22Data);
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data22_->_ref_count_ = 1;
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data22_->self = g_object_ref (self);
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->connection;
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_connection_get_node_info (_tmp0_, &_inner_error_);
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block22_data_unref (_data22_);
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data22_ = NULL;
#line 6608 "libvirt-machine.c"
			goto __catch29_g_error;
		}
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp2_;
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_->memory;
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp4_;
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirNodeInfo_free0 (_tmp3_);
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		max_ram = _tmp5_;
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _ ("Memory");
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = self->domain_config;
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_config_domain_get_memory (_tmp7_);
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_;
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = max_ram;
#line 593 "/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 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data22_->property = _tmp11_;
#line 601 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_connect_data ((GObject*) self, "notify::state", (GCallback) ____lambda96__g_object_notify, block22_data_ref (_data22_), (GClosureNotify) block22_data_unref, 0);
#line 606 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = _data22_->property;
#line 606 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_ram_property (self, _tmp12_);
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block22_data_unref (_data22_);
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data22_ = NULL;
#line 6645 "libvirt-machine.c"
	}
	goto __finally29;
	__catch29_g_error:
	{
		GError* _error_ = NULL;
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 6657 "libvirt-machine.c"
	}
	__finally29:
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 590 "/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 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 6668 "libvirt-machine.c"
	}
}


static Block23Data* block23_data_ref (Block23Data* _data23_) {
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data23_->_ref_count_);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data23_;
#line 6678 "libvirt-machine.c"
}


static void block23_data_unref (void * _userdata_) {
	Block23Data* _data23_;
	_data23_ = (Block23Data*) _userdata_;
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data23_->_ref_count_)) {
#line 6687 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data23_->self;
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data23_->property);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block23Data, _data23_);
#line 6697 "libvirt-machine.c"
	}
}


static gboolean __lambda95_ (Block23Data* _data23_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	gboolean _tmp18_ = FALSE;
	GError * _inner_error_ = NULL;
#line 612 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data23_->self;
#line 6709 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* config;
		GVirConfigDomain* _tmp2_;
		guint64 _tmp3_;
		GVirConfigDomain* _tmp4_;
		GObjectClass* _tmp5_ = NULL;
		GParamSpec* _tmp6_ = NULL;
		GVirDomain* _tmp9_;
		GVirConfigDomain* _tmp10_;
		guint64 _tmp11_;
		gboolean _tmp12_ = FALSE;
#line 614 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 614 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 614 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		config = _tmp1_;
#line 614 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 6731 "libvirt-machine.c"
			goto __catch30_g_error;
		}
#line 615 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = config;
#line 615 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _data23_->value;
#line 615 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_config_domain_set_memory (_tmp2_, _tmp3_);
#line 616 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = config;
#line 616 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = G_OBJECT_GET_CLASS ((GObject*) _tmp4_);
#line 616 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = g_object_class_find_property (_tmp5_, "current-memory");
#line 616 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp6_ != NULL) {
#line 6748 "libvirt-machine.c"
			GVirConfigDomain* _tmp7_;
			guint64 _tmp8_;
#line 617 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = config;
#line 617 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = _data23_->value;
#line 617 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_set ((GObject*) _tmp7_, "current-memory", _tmp8_, NULL);
#line 6757 "libvirt-machine.c"
		}
#line 618 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = self->domain;
#line 618 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = config;
#line 618 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_set_config (_tmp9_, _tmp10_, &_inner_error_);
#line 618 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 618 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (config);
#line 6769 "libvirt-machine.c"
			goto __catch30_g_error;
		}
#line 619 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _data23_->value;
#line 619 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:619: RAM changed to %llu", _tmp11_);
#line 620 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = boxes_machine_is_on ((BoxesMachine*) self);
#line 620 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp12_) {
#line 621 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_notify_reboot_required (self);
#line 6782 "libvirt-machine.c"
		}
#line 613 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 6786 "libvirt-machine.c"
	}
	goto __finally30;
	__catch30_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp13_;
		const gchar* _tmp14_ = NULL;
		guint64 _tmp15_;
		GError* _tmp16_;
		const gchar* _tmp17_;
#line 613 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 613 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = self->domain;
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = gvir_domain_get_name (_tmp13_);
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _data23_->value;
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp16_ = _error_;
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp17_ = _tmp16_->message;
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:623: Failed to change RAM of box '%s' to %llu: %s", _tmp14_, _tmp15_, _tmp17_);
#line 613 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 6815 "libvirt-machine.c"
	}
	__finally30:
#line 613 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 613 "/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 613 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 613 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 6826 "libvirt-machine.c"
	}
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = boxes_machine_is_on ((BoxesMachine*) self);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp18_) {
#line 6832 "libvirt-machine.c"
		BoxesProperty* _tmp19_;
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp19_ = _data23_->property;
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_ram_property (self, _tmp19_);
#line 6838 "libvirt-machine.c"
	}
#line 632 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = FALSE;
#line 632 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6844 "libvirt-machine.c"
}


static gboolean ___lambda95__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda95_ (self);
#line 612 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6853 "libvirt-machine.c"
}


static void boxes_libvirt_machine_on_ram_changed (BoxesLibvirtMachine* self, BoxesProperty* property, guint64 value) {
	Block23Data* _data23_;
	BoxesProperty* _tmp0_;
	BoxesProperty* _tmp1_;
	guint64 _tmp2_;
	BoxesProperty* _tmp3_;
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data23_ = g_slice_new0 (Block23Data);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data23_->_ref_count_ = 1;
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data23_->self = g_object_ref (self);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = property;
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data23_->property);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data23_->property = _tmp1_;
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = value;
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data23_->value = _tmp2_;
#line 612 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _data23_->property;
#line 612 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_property_set_deferred_change (_tmp3_, ___lambda95__gsource_func, block23_data_ref (_data23_), block23_data_unref);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block23_data_unref (_data23_);
#line 610 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data23_ = NULL;
#line 6893 "libvirt-machine.c"
}


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


static void boxes_libvirt_machine_start (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineStartData* _data_;
	BoxesLibvirtMachine* _tmp0_;
#line 558 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineStartData);
#line 558 "/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_start);
#line 558 "/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_start_data_free);
#line 558 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 558 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 558 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start_co (_data_);
#line 6923 "libvirt-machine.c"
}


static void boxes_libvirt_machine_start_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtMachineStartData* _data_;
#line 558 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 558 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 6933 "libvirt-machine.c"
	}
#line 558 "/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 6937 "libvirt-machine.c"
}


static void boxes_libvirt_machine_start_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineStartData* _data_;
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start_co (_data_);
#line 6951 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_start_co (BoxesLibvirtMachineStartData* _data_) {
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 6960 "libvirt-machine.c"
		goto _state_0;
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 6964 "libvirt-machine.c"
		goto _state_1;
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 6968 "libvirt-machine.c"
		goto _state_2;
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 6972 "libvirt-machine.c"
		goto _state_3;
		default:
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 6977 "libvirt-machine.c"
	}
	_state_0:
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp1_ == BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 638 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 638 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 6990 "libvirt-machine.c"
		} else {
#line 638 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 6994 "libvirt-machine.c"
		}
#line 638 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 638 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 7000 "libvirt-machine.c"
	}
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp3_ == BOXES_MACHINE_MACHINE_STATE_PAUSED) {
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->self->domain;
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_resume_async (_data_->_tmp4_, NULL, boxes_libvirt_machine_start_ready, _data_);
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 7016 "libvirt-machine.c"
		_state_1:
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_resume_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7030 "libvirt-machine.c"
			} else {
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 7034 "libvirt-machine.c"
			}
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 641 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 7040 "libvirt-machine.c"
		}
	} else {
#line 642 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 642 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_;
#line 642 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp6_ == BOXES_MACHINE_MACHINE_STATE_SLEEPING) {
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp7_ = _data_->self->domain;
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_state_ = 2;
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_wakeup_async (_data_->_tmp7_, (guint) 0, NULL, boxes_libvirt_machine_start_ready, _data_);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 7057 "libvirt-machine.c"
			_state_2:
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_wakeup_finish (_data_->_tmp7_, _data_->_res_, &_data_->_inner_error_);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7071 "libvirt-machine.c"
				} else {
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 7075 "libvirt-machine.c"
				}
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 7081 "libvirt-machine.c"
			}
		} else {
#line 645 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp8_ = _data_->self->domain;
#line 645 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp9_ = FALSE;
#line 645 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp9_ = gvir_domain_get_saved (_data_->_tmp8_);
#line 645 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_tmp9_) {
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp10_ = NULL;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp10_ = _ ("Restoring %s from disk");
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp11_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp12_ = _data_->_tmp11_;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp13_ = NULL;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp13_ = g_strdup_printf (_data_->_tmp10_, _data_->_tmp12_);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp14_ = _data_->_tmp13_;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_status ((BoxesMachine*) _data_->self, _data_->_tmp14_);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_data_->_tmp14_);
#line 7110 "libvirt-machine.c"
			} else {
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp15_ = NULL;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp15_ = _ ("Starting %s");
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp16_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp18_ = NULL;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp18_ = g_strdup_printf (_data_->_tmp15_, _data_->_tmp17_);
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp19_ = _data_->_tmp18_;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_status ((BoxesMachine*) _data_->self, _data_->_tmp19_);
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_data_->_tmp19_);
#line 7130 "libvirt-machine.c"
			}
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = _data_->self->domain;
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_state_ = 3;
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_start_async (_data_->_tmp20_, (guint) 0, NULL, boxes_libvirt_machine_start_ready, _data_);
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 7140 "libvirt-machine.c"
			_state_3:
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_start_finish (_data_->_tmp20_, _data_->_res_, &_data_->_inner_error_);
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7154 "libvirt-machine.c"
				} else {
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 7158 "libvirt-machine.c"
				}
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 651 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 7164 "libvirt-machine.c"
			}
		}
	}
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7172 "libvirt-machine.c"
	} else {
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 7176 "libvirt-machine.c"
	}
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 636 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 7182 "libvirt-machine.c"
}


static Block24Data* block24_data_ref (Block24Data* _data24_) {
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data24_->_ref_count_);
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data24_;
#line 7191 "libvirt-machine.c"
}


static void block24_data_unref (void * _userdata_) {
	Block24Data* _data24_;
	_data24_ = (Block24Data*) _userdata_;
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data24_->_ref_count_)) {
#line 7200 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data24_->self;
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data24_->notification);
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block24Data, _data24_);
#line 7210 "libvirt-machine.c"
	}
}


static void ___lambda91_ (BoxesLibvirtMachine* self, GObject* obj, GAsyncResult* res) {
	GError * _inner_error_ = NULL;
#line 666 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (res != NULL);
#line 7219 "libvirt-machine.c"
	{
		GAsyncResult* _tmp0_;
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = res;
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_start_finish (self, _tmp0_, &_inner_error_);
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 7228 "libvirt-machine.c"
			goto __catch31_g_error;
		}
	}
	goto __finally31;
	__catch31_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp1_;
		const gchar* _tmp2_ = NULL;
		GError* _tmp3_;
		const gchar* _tmp4_;
#line 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 670 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = self->domain;
#line 670 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = gvir_domain_get_name (_tmp1_);
#line 670 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _error_;
#line 670 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_->message;
#line 670 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:670: Failed to start '%s': %s", _tmp2_, _tmp4_);
#line 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 7256 "libvirt-machine.c"
	}
	__finally31:
#line 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 667 "/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 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 7267 "libvirt-machine.c"
	}
}


static void ____lambda91__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 666 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda91_ (self, source_object, res);
#line 666 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (self);
#line 7277 "libvirt-machine.c"
}


static void __lambda90_ (Block24Data* _data24_) {
	BoxesLibvirtMachine * self;
	gboolean _tmp0_ = FALSE;
	BoxesMachineMachineState _tmp1_;
	BoxesMachineMachineState _tmp2_;
	gboolean _tmp5_;
#line 663 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data24_->self;
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp2_ == BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = TRUE;
#line 7297 "libvirt-machine.c"
	} else {
		BoxesMachineMachineState _tmp3_;
		BoxesMachineMachineState _tmp4_;
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _tmp4_ == BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED;
#line 7307 "libvirt-machine.c"
	}
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp0_;
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_) {
#line 7313 "libvirt-machine.c"
		const gchar* _tmp6_;
		const gchar* _tmp7_;
		gulong _tmp8_;
		guint _tmp9_;
#line 665 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 665 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _tmp6_;
#line 665 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:665: '%s' stopped.", _tmp7_);
#line 666 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_start (self, ____lambda91__gasync_ready_callback, g_object_ref (self));
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _data24_->state_id;
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_handler_disconnect ((GObject*) self, _tmp8_);
#line 674 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = self->priv->shutdown_timeout;
#line 674 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp9_ != ((guint) 0)) {
#line 7334 "libvirt-machine.c"
			guint _tmp10_;
#line 675 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp10_ = self->priv->shutdown_timeout;
#line 675 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_source_remove (_tmp10_);
#line 676 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			self->priv->shutdown_timeout = (guint) 0;
#line 7342 "libvirt-machine.c"
		}
#line 678 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data24_->notification != NULL) {
#line 679 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gd_notification_dismiss (_data24_->notification);
#line 680 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_data24_->notification);
#line 680 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data24_->notification = NULL;
#line 7352 "libvirt-machine.c"
		}
	}
}


static void ___lambda90__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 663 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda90_ (self);
#line 7361 "libvirt-machine.c"
}


static void __lambda93_ (Block24Data* _data24_) {
	BoxesLibvirtMachine * self;
#line 687 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data24_->self;
#line 688 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data24_->notification);
#line 688 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data24_->notification = NULL;
#line 689 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_force_shutdown (self, FALSE);
#line 7375 "libvirt-machine.c"
}


static void ___lambda93__boxes_notificationbar_ok_func (gpointer self) {
#line 687 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda93_ (self);
#line 7382 "libvirt-machine.c"
}


static gboolean __lambda92_ (Block24Data* _data24_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	BoxesNotificationbarOKFunc really_force_shutdown;
	void* really_force_shutdown_target;
	GDestroyNotify really_force_shutdown_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;
	GdNotification* _tmp7_ = NULL;
#line 685 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data24_->self;
#line 687 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown = ___lambda93__boxes_notificationbar_ok_func;
#line 687 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target = block24_data_ref (_data24_);
#line 687 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target_destroy_notify = block24_data_unref;
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _ ("Restart of '%s' is taking too long. Force it to shutdown?");
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_strdup_printf (_tmp0_, _tmp2_);
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	message = _tmp3_;
#line 693 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = boxes_app_app;
#line 693 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->notificationbar;
#line 693 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = really_force_shutdown;
#line 693 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6__target = really_force_shutdown_target;
#line 693 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6__target_destroy_notify = really_force_shutdown_target_destroy_notify;
#line 693 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target_destroy_notify = NULL;
#line 693 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = boxes_notificationbar_display_for_action (_tmp5_, message, GTK_STOCK_YES, _tmp6_, _tmp6__target, _tmp6__target_destroy_notify, NULL, NULL, NULL, -1);
#line 693 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data24_->notification);
#line 693 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data24_->notification = _tmp7_;
#line 698 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->shutdown_timeout = (guint) 0;
#line 700 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = FALSE;
#line 700 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (message);
#line 700 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(really_force_shutdown_target_destroy_notify == NULL) ? NULL : (really_force_shutdown_target_destroy_notify (really_force_shutdown_target), NULL);
#line 700 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown = NULL;
#line 700 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target = NULL;
#line 700 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target_destroy_notify = NULL;
#line 700 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7455 "libvirt-machine.c"
}


static gboolean ___lambda92__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda92_ (self);
#line 685 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7464 "libvirt-machine.c"
}


static void __lambda89_ (BoxesLibvirtMachine* self) {
	Block24Data* _data24_;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gulong _tmp2_ = 0UL;
	guint _tmp3_ = 0U;
	GError * _inner_error_ = NULL;
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data24_ = g_slice_new0 (Block24Data);
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data24_->_ref_count_ = 1;
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data24_->self = g_object_ref (self);
#line 658 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 658 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 658 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:658: Rebooting '%s'..", _tmp1_);
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachine*) self)->stay_on_display = TRUE;
#line 660 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data24_->state_id = (gulong) 0;
#line 661 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data24_->notification = NULL;
#line 663 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = g_signal_connect_data ((GObject*) self, "notify::state", (GCallback) ___lambda90__g_object_notify, block24_data_ref (_data24_), (GClosureNotify) block24_data_unref, 0);
#line 663 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data24_->state_id = _tmp2_;
#line 685 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda92__gsource_func, block24_data_ref (_data24_), block24_data_unref);
#line 685 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->shutdown_timeout = _tmp3_;
#line 7501 "libvirt-machine.c"
	{
		GVirDomain* _tmp4_;
#line 704 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->domain;
#line 704 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_shutdown (_tmp4_, (guint) 0, &_inner_error_);
#line 704 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 7510 "libvirt-machine.c"
			goto __catch32_g_error;
		}
	}
	goto __finally32;
	__catch32_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp5_;
		const gchar* _tmp6_ = NULL;
		GError* _tmp7_;
		const gchar* _tmp8_;
#line 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 706 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = self->domain;
#line 706 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = gvir_domain_get_name (_tmp5_);
#line 706 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _error_;
#line 706 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _tmp7_->message;
#line 706 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:706: Failed to reboot '%s': %s", _tmp6_, _tmp8_);
#line 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 7538 "libvirt-machine.c"
	}
	__finally32:
#line 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block24_data_unref (_data24_);
#line 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data24_ = NULL;
#line 703 "/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 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 7553 "libvirt-machine.c"
	}
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block24_data_unref (_data24_);
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data24_ = NULL;
#line 7559 "libvirt-machine.c"
}


static void ___lambda89__boxes_notificationbar_ok_func (gpointer self) {
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda89_ (self);
#line 7566 "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;
	GdNotification* _tmp7_ = NULL;
	GdNotification* _tmp8_;
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot = ___lambda89__boxes_notificationbar_ok_func;
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target = g_object_ref (self);
#line 657 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target_destroy_notify = g_object_unref;
#line 709 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _ ("Changes require restart of '%s'. Attempt restart?");
#line 709 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 709 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 709 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_strdup_printf (_tmp0_, _tmp2_);
#line 709 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	message = _tmp3_;
#line 710 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = boxes_app_app;
#line 710 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->notificationbar;
#line 710 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = reboot;
#line 710 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6__target = reboot_target;
#line 710 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6__target_destroy_notify = reboot_target_destroy_notify;
#line 710 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target_destroy_notify = NULL;
#line 710 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = boxes_notificationbar_display_for_action (_tmp5_, message, GTK_STOCK_YES, _tmp6_, _tmp6__target, _tmp6__target_destroy_notify, NULL, NULL, NULL, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 710 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = _tmp7_;
#line 710 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_tmp8_);
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (message);
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(reboot_target_destroy_notify == NULL) ? NULL : (reboot_target_destroy_notify (reboot_target), NULL);
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot = NULL;
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target = NULL;
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target_destroy_notify = NULL;
#line 7632 "libvirt-machine.c"
}


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


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


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


static void boxes_libvirt_machine_add_storage_property (BoxesLibvirtMachine* self, GList** list) {
	GVirStorageVol* _tmp0_;
	GError * _inner_error_ = NULL;
#line 713 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 714 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->storage_volume;
#line 714 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_ == NULL) {
#line 715 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 7668 "libvirt-machine.c"
	}
	{
		GVirStorageVol* _tmp1_;
		GVirStorageVolInfo* _tmp2_ = NULL;
		GVirStorageVolInfo* volume_info;
		GVirConnection* _tmp3_;
		GVirStoragePool* _tmp4_ = NULL;
		GVirStoragePool* pool;
		GVirStoragePool* _tmp5_;
		GVirStoragePoolInfo* _tmp6_ = NULL;
		GVirStoragePoolInfo* pool_info;
		GVirStorageVolInfo* _tmp7_;
		guint64 _tmp8_;
		GVirStoragePoolInfo* _tmp9_;
		guint64 _tmp10_;
		guint64 max_storage;
		const gchar* _tmp11_ = NULL;
		GVirStorageVolInfo* _tmp12_;
		guint64 _tmp13_;
		GVirStorageVolInfo* _tmp14_;
		guint64 _tmp15_;
		guint64 _tmp16_;
		BoxesProperty* _tmp17_ = NULL;
		BoxesProperty* _tmp18_;
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = self->storage_volume;
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = gvir_storage_vol_get_info (_tmp1_, &_inner_error_);
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		volume_info = _tmp2_;
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 7701 "libvirt-machine.c"
			goto __catch33_g_error;
		}
#line 719 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = self->connection;
#line 719 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = boxes_get_storage_pool (_tmp3_);
#line 719 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		pool = _tmp4_;
#line 720 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = pool;
#line 720 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = gvir_storage_pool_get_info (_tmp5_, &_inner_error_);
#line 720 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		pool_info = _tmp6_;
#line 720 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 720 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (pool);
#line 720 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			__vala_GVirStorageVolInfo_free0 (volume_info);
#line 7722 "libvirt-machine.c"
			goto __catch33_g_error;
		}
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = volume_info;
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _tmp7_->capacity;
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = pool_info;
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _tmp9_->available;
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		max_storage = (_tmp8_ + _tmp10_) / OSINFO_KIBIBYTES;
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _ ("Maximum Disk Size");
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = volume_info;
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = _tmp12_->capacity;
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = volume_info;
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _tmp14_->capacity;
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp16_ = max_storage;
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp17_ = boxes_iproperties_provider_add_size_property ((BoxesIPropertiesProvider*) self, list, _tmp11_, _tmp13_ / OSINFO_KIBIBYTES, _tmp15_ / OSINFO_KIBIBYTES, _tmp16_, (guint64) (OSINFO_GIBIBYTES / OSINFO_KIBIBYTES), _boxes_libvirt_machine_on_storage_changed_property_size_changed, self);
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp18_ = _tmp17_;
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_tmp18_);
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirStoragePoolInfo_free0 (pool_info);
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (pool);
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirStorageVolInfo_free0 (volume_info);
#line 7759 "libvirt-machine.c"
	}
	goto __finally33;
	__catch33_g_error:
	{
		GError* _error_ = NULL;
		GVirStorageVol* _tmp19_;
		const gchar* _tmp20_ = NULL;
		GError* _tmp21_;
		const gchar* _tmp22_;
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 731 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp19_ = self->storage_volume;
#line 731 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp20_ = gvir_storage_vol_get_name (_tmp19_);
#line 731 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp21_ = _error_;
#line 731 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp22_ = _tmp21_->message;
#line 731 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:731: Failed to get information on volume '%s' or " \
"it's parent pool: %s", _tmp20_, _tmp22_);
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 7785 "libvirt-machine.c"
	}
	__finally33:
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 717 "/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 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 7796 "libvirt-machine.c"
	}
}


static Block25Data* block25_data_ref (Block25Data* _data25_) {
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data25_->_ref_count_);
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data25_;
#line 7806 "libvirt-machine.c"
}


static void block25_data_unref (void * _userdata_) {
	Block25Data* _data25_;
	_data25_ = (Block25Data*) _userdata_;
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data25_->_ref_count_)) {
#line 7815 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data25_->self;
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block25Data, _data25_);
#line 7823 "libvirt-machine.c"
	}
}


static gboolean __lambda97_ (Block25Data* _data25_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	GVirStorageVol* _tmp0_;
	GError * _inner_error_ = NULL;
#line 739 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data25_->self;
#line 740 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->storage_volume;
#line 740 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_ == NULL) {
#line 741 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		result = FALSE;
#line 741 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return result;
#line 7843 "libvirt-machine.c"
	}
	{
		gboolean _tmp1_ = FALSE;
		guint64 _tmp8_;
#line 744 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_machine_is_running ((BoxesMachine*) self);
#line 744 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp1_) {
#line 7852 "libvirt-machine.c"
			GVirDomainDisk* _tmp2_ = NULL;
			GVirDomainDisk* disk;
			GVirDomainDisk* _tmp3_;
#line 745 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp2_ = boxes_libvirt_machine_get_domain_disk (self, &_inner_error_);
#line 745 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			disk = _tmp2_;
#line 745 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 7862 "libvirt-machine.c"
				goto __catch34_g_error;
			}
#line 746 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = disk;
#line 746 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp3_ != NULL) {
#line 7869 "libvirt-machine.c"
				GVirDomainDisk* _tmp4_;
				guint64 _tmp5_;
#line 747 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp4_ = disk;
#line 747 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp5_ = _data25_->value;
#line 747 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				gvir_domain_disk_resize (_tmp4_, _tmp5_, (guint) 0, &_inner_error_);
#line 747 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_inner_error_ != NULL) {
#line 747 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (disk);
#line 7882 "libvirt-machine.c"
					goto __catch34_g_error;
				}
			}
#line 744 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (disk);
#line 7888 "libvirt-machine.c"
		} else {
			GVirStorageVol* _tmp6_;
			guint64 _tmp7_;
#line 750 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = self->storage_volume;
#line 750 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = _data25_->value;
#line 750 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_storage_vol_resize (_tmp6_, _tmp7_ * OSINFO_KIBIBYTES, GVIR_STORAGE_VOL_RESIZE_NONE, &_inner_error_);
#line 750 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 7900 "libvirt-machine.c"
				goto __catch34_g_error;
			}
		}
#line 751 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _data25_->value;
#line 751 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:751: Storage changed to %llu", _tmp8_);
#line 7908 "libvirt-machine.c"
	}
	goto __finally34;
	__catch34_g_error:
	{
		GError* _error_ = NULL;
		GVirStorageVol* _tmp9_;
		const gchar* _tmp10_ = NULL;
		guint64 _tmp11_;
		GError* _tmp12_;
		const gchar* _tmp13_;
#line 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 753 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = self->storage_volume;
#line 753 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = gvir_storage_vol_get_name (_tmp9_);
#line 753 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _data25_->value;
#line 753 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = _error_;
#line 753 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = _tmp12_->message;
#line 753 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:753: Failed to change storage capacity of volume " \
"'%s' to %llu: %s", _tmp10_, _tmp11_, _tmp13_);
#line 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 7937 "libvirt-machine.c"
	}
	__finally34:
#line 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 743 "/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 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 7948 "libvirt-machine.c"
	}
#line 759 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = FALSE;
#line 759 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7954 "libvirt-machine.c"
}


static gboolean ___lambda97__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda97_ (self);
#line 739 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7963 "libvirt-machine.c"
}


static void boxes_libvirt_machine_on_storage_changed (BoxesLibvirtMachine* self, BoxesProperty* property, guint64 value) {
	Block25Data* _data25_;
	guint64 _tmp0_;
	BoxesProperty* _tmp1_;
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data25_ = g_slice_new0 (Block25Data);
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data25_->_ref_count_ = 1;
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data25_->self = g_object_ref (self);
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = value;
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data25_->value = _tmp0_;
#line 739 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = property;
#line 739 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_property_set_deferred_change (_tmp1_, ___lambda97__gsource_func, block25_data_ref (_data25_), block25_data_unref);
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block25_data_unref (_data25_);
#line 737 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data25_ = NULL;
#line 7993 "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 8011 "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 8028 "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 8062 "libvirt-machine.c"
}


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


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


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


static gpointer __vala_GVirDomainInterfaceStats_copy0 (gpointer self) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? _vala_GVirDomainInterfaceStats_copy (self) : NULL;
#line 8090 "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 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = (*self).timestamp;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).timestamp = _tmp0_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = (*self).cpu_time;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).cpu_time = _tmp1_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = (*self).cpu_time_abs;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).cpu_time_abs = _tmp2_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = (*self).cpu_guest_percent;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).cpu_guest_percent = _tmp3_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = (*self).memory_percent;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).memory_percent = _tmp4_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = (*self).disk;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = __vala_GVirDomainDiskStats_copy0 (_tmp5_);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 ((*dest).disk);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).disk = _tmp6_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = (*self).disk_read;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).disk_read = _tmp7_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = (*self).disk_write;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).disk_write = _tmp8_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = (*self).net;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = __vala_GVirDomainInterfaceStats_copy0 (_tmp9_);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 ((*dest).net);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).net = _tmp10_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = (*self).net_read;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).net_read = _tmp11_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = (*self).net_write;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).net_write = _tmp12_;
#line 8160 "libvirt-machine.c"
}


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


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


static void boxes_libvirt_machine_machine_stat_free (BoxesLibvirtMachineMachineStat* self) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_destroy (self);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_free (self);
#line 8190 "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)->connect_display_finish = boxes_libvirt_machine_real_connect_display_finish;
#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)->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"
	BOXES_MACHINE_CLASS (klass)->save = boxes_libvirt_machine_real_save;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->save_finish = boxes_libvirt_machine_real_save_finish;
#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 8240 "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 8247 "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_object_unref0 (self->storage_volume);
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_boxes_vm_creator_unref0 (self->vm_creator);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->stats_cancellable);
#line 54 "/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 226 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->cpu_stats = (g_free (self->cpu_stats), NULL);
#line 227 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->io_stats = (g_free (self->io_stats), NULL);
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->net_stats = (g_free (self->net_stats), NULL);
#line 558 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (boxes_libvirt_machine_parent_class)->finalize (obj);
#line 8277 "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 8304 "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 8310 "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 8326 "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 8332 "libvirt-machine.c"
	}
}



