/* installer-media.c generated by valac 0.21.1.35-83443, the Vala compiler
 * generated from installer-media.vala, do not modify */

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

#include <glib.h>
#include <glib-object.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <gio/gio.h>
#include <libcommon.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <osinfo/osinfo.h>
#include <gudev/gudev.h>
#include <glib/gi18n-lib.h>
#include <stdio.h>


#define BOXES_TYPE_INSTALLER_MEDIA (boxes_installer_media_get_type ())
#define BOXES_INSTALLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMedia))
#define BOXES_INSTALLER_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMediaClass))
#define BOXES_IS_INSTALLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_INSTALLER_MEDIA))
#define BOXES_IS_INSTALLER_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_INSTALLER_MEDIA))
#define BOXES_INSTALLER_MEDIA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMediaClass))

typedef struct _BoxesInstallerMedia BoxesInstallerMedia;
typedef struct _BoxesInstallerMediaClass BoxesInstallerMediaClass;
typedef struct _BoxesInstallerMediaPrivate BoxesInstallerMediaPrivate;

#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 _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define BOXES_TYPE_MEDIA_MANAGER (boxes_media_manager_get_type ())
#define BOXES_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MEDIA_MANAGER, BoxesMediaManager))
#define BOXES_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MEDIA_MANAGER, BoxesMediaManagerClass))
#define BOXES_IS_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MEDIA_MANAGER))
#define BOXES_IS_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MEDIA_MANAGER))
#define BOXES_MEDIA_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MEDIA_MANAGER, BoxesMediaManagerClass))

typedef struct _BoxesMediaManager BoxesMediaManager;
typedef struct _BoxesMediaManagerClass BoxesMediaManagerClass;

#define BOXES_TYPE_OS_DATABASE (boxes_os_database_get_type ())
#define BOXES_OS_DATABASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_OS_DATABASE, BoxesOSDatabase))
#define BOXES_OS_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_OS_DATABASE, BoxesOSDatabaseClass))
#define BOXES_IS_OS_DATABASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_OS_DATABASE))
#define BOXES_IS_OS_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_OS_DATABASE))
#define BOXES_OS_DATABASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_OS_DATABASE, BoxesOSDatabaseClass))

typedef struct _BoxesOSDatabase BoxesOSDatabase;
typedef struct _BoxesOSDatabaseClass BoxesOSDatabaseClass;
typedef struct _BoxesInstallerMediaNewForPathData BoxesInstallerMediaNewForPathData;
typedef struct _BoxesInstallerMediaPrepareData BoxesInstallerMediaPrepareData;
typedef struct _BoxesInstallerMediaPrepareForInstallationData BoxesInstallerMediaPrepareForInstallationData;
#define __g_list_free__boxes_pair_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__boxes_pair_unref0_ (var), NULL)))

#define BOXES_TYPE_CPU_ARCH_COMPATIBILITY (boxes_cpu_arch_compatibility_get_type ())
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesInstallerMediaGetDeviceFromPathData BoxesInstallerMediaGetDeviceFromPathData;
typedef struct _BoxesInstallerMediaGetMediaInfoFromDeviceData BoxesInstallerMediaGetMediaInfoFromDeviceData;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

struct _BoxesInstallerMedia {
	GObject parent_instance;
	BoxesInstallerMediaPrivate * priv;
	OsinfoOs* os;
	OsinfoResources* resources;
	OsinfoMedia* os_media;
	gchar* label;
	gchar* device_file;
	gchar* mount_point;
	gboolean from_image;
};

struct _BoxesInstallerMediaClass {
	GObjectClass parent_class;
	void (*set_direct_boot_params) (BoxesInstallerMedia* self, GVirConfigDomainOs* os);
	void (*prepare) (BoxesInstallerMedia* self, BoxesActivityProgress* progress, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*prepare_finish) (BoxesInstallerMedia* self, GAsyncResult* _res_);
	void (*prepare_for_installation) (BoxesInstallerMedia* self, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*prepare_for_installation_finish) (BoxesInstallerMedia* self, GAsyncResult* _res_, GError** error);
	void (*prepare_to_continue_installation) (BoxesInstallerMedia* self, const gchar* vm_name);
	void (*clean_up) (BoxesInstallerMedia* self);
	void (*clean_up_preparation_cache) (BoxesInstallerMedia* self);
	void (*setup_domain_config) (BoxesInstallerMedia* self, GVirConfigDomain* domain);
	void (*setup_post_install_domain_config) (BoxesInstallerMedia* self, GVirConfigDomain* domain);
	void (*populate_setup_vbox) (BoxesInstallerMedia* self, GtkBox* setup_vbox);
	GList* (*get_vm_properties) (BoxesInstallerMedia* self);
	BoxesVMCreator* (*get_vm_creator) (BoxesInstallerMedia* self);
	OsinfoDeviceList* (*get_supported_devices) (BoxesInstallerMedia* self);
	guint64 (*get_installed_size) (BoxesInstallerMedia* self);
	gboolean (*get_need_user_input_for_vm_creation) (BoxesInstallerMedia* self);
	gboolean (*get_ready_to_create) (BoxesInstallerMedia* self);
	gboolean (*get_live) (BoxesInstallerMedia* self);
	gchar* (*get_architecture) (BoxesInstallerMedia* self);
};

struct _BoxesInstallerMediaNewForPathData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GType object_type;
	BoxesInstallerMedia* self;
	gchar* path;
	BoxesMediaManager* media_manager;
	GCancellable* cancellable;
	GUdevDevice* device;
	const gchar* _tmp0_;
	BoxesMediaManager* _tmp1_;
	GUdevClient* _tmp2_;
	GUdevClient* _tmp3_;
	GCancellable* _tmp4_;
	GUdevDevice* _tmp5_;
	GUdevDevice* _tmp6_;
	GUdevDevice* _tmp7_;
	BoxesMediaManager* _tmp8_;
	BoxesOSDatabase* _tmp9_;
	BoxesOSDatabase* _tmp10_;
	OsinfoMedia* _tmp11_;
	BoxesMediaManager* _tmp12_;
	BoxesOSDatabase* _tmp13_;
	BoxesOSDatabase* _tmp14_;
	const gchar* _tmp15_;
	GCancellable* _tmp16_;
	OsinfoMedia* _tmp17_;
	OsinfoMedia* _tmp18_;
	OsinfoMedia* _tmp19_;
	OsinfoOs* _tmp20_;
	OsinfoOs* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	gchar* _tmp24_;
	const gchar* _tmp25_;
	gchar* _tmp26_;
	gchar* architecture;
	const gchar* _tmp27_;
	gchar* _tmp28_;
	BoxesMediaManager* _tmp29_;
	BoxesOSDatabase* _tmp30_;
	BoxesOSDatabase* _tmp31_;
	OsinfoOs* _tmp32_;
	const gchar* _tmp33_;
	OsinfoResources* _tmp34_;
	GError * _inner_error_;
};

struct _BoxesInstallerMediaPrepareData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesInstallerMedia* self;
	BoxesActivityProgress* progress;
	GCancellable* cancellable;
};

struct _BoxesInstallerMediaPrepareForInstallationData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesInstallerMedia* self;
	gchar* vm_name;
	GCancellable* cancellable;
};

typedef enum  {
	BOXES_CPU_ARCH_COMPATIBILITY_INCOMPATIBLE = -1,
	BOXES_CPU_ARCH_COMPATIBILITY_IDENTICAL = 0,
	BOXES_CPU_ARCH_COMPATIBILITY_COMPATIBLE = 1,
	BOXES_CPU_ARCH_COMPATIBILITY_COMPATIBLE_DIFF_WORDSIZE = 2
} BoxesCPUArchCompatibility;

struct _BoxesInstallerMediaGetDeviceFromPathData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesInstallerMedia* self;
	gchar* path;
	GUdevClient* client;
	GCancellable* cancellable;
	GUdevDevice* result;
	GFile* mount_dir;
	const gchar* _tmp0_;
	GFile* _tmp1_;
	GMount* mount;
	GCancellable* _tmp2_;
	GMount* _tmp3_;
	GFile* root_dir;
	GFile* _tmp4_;
	GFile* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gboolean _tmp10_;
	GVolume* volume;
	GVolume* _tmp11_;
	GVolume* _tmp12_;
	gchar* _tmp13_;
	const gchar* _tmp14_;
	gchar* _tmp15_;
	const gchar* _tmp16_;
	gchar* _tmp17_;
	GError* _error_;
	const gchar* _tmp18_;
	gchar* _tmp19_;
	GUdevClient* _tmp20_;
	const gchar* _tmp21_;
	GUdevDevice* _tmp22_;
	GError * _inner_error_;
};

typedef enum  {
	BOXES_OS_DATABASE_ERROR_NON_BOOTABLE,
	BOXES_OS_DATABASE_ERROR_UNKNOWN_OS_ID,
	BOXES_OS_DATABASE_ERROR_UNKNOWN_MEDIA_ID
} BoxesOSDatabaseError;
#define BOXES_OS_DATABASE_ERROR boxes_os_database_error_quark ()
struct _BoxesInstallerMediaGetMediaInfoFromDeviceData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesInstallerMedia* self;
	GUdevDevice* device;
	BoxesOSDatabase* os_db;
	gboolean _tmp0_;
	GUdevDevice* _tmp1_;
	const gchar* _tmp2_;
	GUdevDevice* _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
	const gchar* _tmp6_;
	GError* _tmp7_;
	GUdevDevice* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	GUdevDevice* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	const gchar* _tmp14_;
	GUdevDevice* _tmp15_;
	const gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* os_id;
	const gchar* _tmp18_;
	gchar* _tmp19_;
	const gchar* _tmp20_;
	OsinfoOs* _tmp21_;
	BoxesOSDatabase* _tmp22_;
	const gchar* _tmp23_;
	OsinfoOs* _tmp24_;
	gchar* media_id;
	GUdevDevice* _tmp25_;
	const gchar* _tmp26_;
	gchar* _tmp27_;
	const gchar* _tmp28_;
	OsinfoMedia* _tmp29_;
	BoxesOSDatabase* _tmp30_;
	OsinfoOs* _tmp31_;
	const gchar* _tmp32_;
	OsinfoMedia* _tmp33_;
	OsinfoMedia* media;
	const gchar* _tmp34_;
	OsinfoMedia* _tmp35_;
	OsinfoMedia* _tmp36_;
	const gchar* _tmp37_;
	GUdevDevice* _tmp38_;
	gchar* _tmp39_;
	gchar* _tmp40_;
	gchar* _tmp41_;
	gchar** _tmp42_;
	gchar** _tmp43_;
	gint _tmp43__length1;
	gchar* _tmp44_;
	gchar* _tmp45_;
	gchar* _tmp46_;
	gchar** _tmp47_;
	gchar** _tmp48_;
	gint _tmp48__length1;
	OsinfoMedia* _tmp49_;
	OsinfoMedia* _tmp50_;
	BoxesOSDatabase* _tmp51_;
	OsinfoMedia* _tmp52_;
	OsinfoMedia* _tmp53_;
	OsinfoMedia* _tmp54_;
	OsinfoMedia* _tmp55_;
	OsinfoOs* _tmp56_;
	OsinfoOs* _tmp57_;
	GError * _inner_error_;
};


static gpointer boxes_installer_media_parent_class = NULL;

GType boxes_installer_media_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;
enum  {
	BOXES_INSTALLER_MEDIA_DUMMY_PROPERTY,
	BOXES_INSTALLER_MEDIA_SUPPORTED_DEVICES,
	BOXES_INSTALLER_MEDIA_INSTALLED_SIZE,
	BOXES_INSTALLER_MEDIA_NEED_USER_INPUT_FOR_VM_CREATION,
	BOXES_INSTALLER_MEDIA_READY_TO_CREATE,
	BOXES_INSTALLER_MEDIA_SUPPORTS_VIRTIO_DISK,
	BOXES_INSTALLER_MEDIA_LIVE,
	BOXES_INSTALLER_MEDIA_ARCHITECTURE
};
BoxesInstallerMedia* boxes_installer_media_new_from_iso_info (const gchar* path, const gchar* label, OsinfoOs* os, OsinfoMedia* media, OsinfoResources* resources);
BoxesInstallerMedia* boxes_installer_media_construct_from_iso_info (GType object_type, const gchar* path, const gchar* label, OsinfoOs* os, OsinfoMedia* media, OsinfoResources* resources);
void boxes_installer_media_label_setup (BoxesInstallerMedia* self, const gchar* label);
static void boxes_installer_media_construct_for_path_data_free (gpointer _data);
GType boxes_media_manager_get_type (void) G_GNUC_CONST;
void boxes_installer_media_new_for_path (const gchar* path, BoxesMediaManager* media_manager, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
BoxesInstallerMedia* boxes_installer_media_new_for_path_finish (GAsyncResult* _res_, GError** error);
void boxes_installer_media_construct_for_path (GType object_type, const gchar* path, BoxesMediaManager* media_manager, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
BoxesInstallerMedia* boxes_installer_media_construct_for_path_finish (GAsyncResult* _res_, GError** error);
static gboolean boxes_installer_media_construct_for_path_co (BoxesInstallerMediaNewForPathData* _data_);
static void boxes_installer_media_get_device_from_path (BoxesInstallerMedia* self, const gchar* path, GUdevClient* client, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GUdevDevice* boxes_installer_media_get_device_from_path_finish (BoxesInstallerMedia* self, GAsyncResult* _res_);
GUdevClient* boxes_media_manager_get_client (BoxesMediaManager* self);
static void boxes_installer_media_new_for_path_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
GType boxes_os_database_get_type (void) G_GNUC_CONST;
static void boxes_installer_media_get_media_info_from_device (BoxesInstallerMedia* self, GUdevDevice* device, BoxesOSDatabase* os_db, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_installer_media_get_media_info_from_device_finish (BoxesInstallerMedia* self, GAsyncResult* _res_, GError** error);
BoxesOSDatabase* boxes_media_manager_get_os_db (BoxesMediaManager* self);
void boxes_os_database_guess_os_from_install_media_path (BoxesOSDatabase* self, const gchar* media_path, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
OsinfoMedia* boxes_os_database_guess_os_from_install_media_path_finish (BoxesOSDatabase* self, GAsyncResult* _res_, GError** error);
gchar* boxes_installer_media_get_architecture (BoxesInstallerMedia* self);
OsinfoResources* boxes_os_database_get_resources_for_os (BoxesOSDatabase* self, OsinfoOs* os, const gchar* architecture);
void boxes_installer_media_set_direct_boot_params (BoxesInstallerMedia* self, GVirConfigDomainOs* os);
static void boxes_installer_media_real_set_direct_boot_params (BoxesInstallerMedia* self, GVirConfigDomainOs* os);
static void boxes_installer_media_real_prepare_data_free (gpointer _data);
static void boxes_installer_media_real_prepare (BoxesInstallerMedia* self, BoxesActivityProgress* progress, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_installer_media_prepare (BoxesInstallerMedia* self, BoxesActivityProgress* progress, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_installer_media_prepare_finish (BoxesInstallerMedia* self, GAsyncResult* _res_);
static gboolean boxes_installer_media_real_prepare_co (BoxesInstallerMediaPrepareData* _data_);
static void boxes_installer_media_real_prepare_for_installation_data_free (gpointer _data);
static void boxes_installer_media_real_prepare_for_installation (BoxesInstallerMedia* self, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_installer_media_prepare_for_installation (BoxesInstallerMedia* self, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_installer_media_prepare_for_installation_finish (BoxesInstallerMedia* self, GAsyncResult* _res_, GError** error);
static gboolean boxes_installer_media_real_prepare_for_installation_co (BoxesInstallerMediaPrepareForInstallationData* _data_);
void boxes_installer_media_prepare_to_continue_installation (BoxesInstallerMedia* self, const gchar* vm_name);
static void boxes_installer_media_real_prepare_to_continue_installation (BoxesInstallerMedia* self, const gchar* vm_name);
void boxes_installer_media_clean_up (BoxesInstallerMedia* self);
static void boxes_installer_media_real_clean_up (BoxesInstallerMedia* self);
void boxes_installer_media_clean_up_preparation_cache (BoxesInstallerMedia* self);
static void boxes_installer_media_real_clean_up_preparation_cache (BoxesInstallerMedia* self);
void boxes_installer_media_setup_domain_config (BoxesInstallerMedia* self, GVirConfigDomain* domain);
static void boxes_installer_media_real_setup_domain_config (BoxesInstallerMedia* self, GVirConfigDomain* domain);
void boxes_installer_media_add_cd_config (BoxesInstallerMedia* self, GVirConfigDomain* domain, GVirConfigDomainDiskType type, const gchar* iso_path, const gchar* device_name, gboolean mandatory);
void boxes_installer_media_setup_post_install_domain_config (BoxesInstallerMedia* self, GVirConfigDomain* domain);
static void boxes_installer_media_real_setup_post_install_domain_config (BoxesInstallerMedia* self, GVirConfigDomain* domain);
static void boxes_installer_media_eject_cdrom_media (BoxesInstallerMedia* self, GVirConfigDomain* domain);
void boxes_installer_media_populate_setup_vbox (BoxesInstallerMedia* self, GtkBox* setup_vbox);
static void boxes_installer_media_real_populate_setup_vbox (BoxesInstallerMedia* self, GtkBox* setup_vbox);
GList* boxes_installer_media_get_vm_properties (BoxesInstallerMedia* self);
static GList* boxes_installer_media_real_get_vm_properties (BoxesInstallerMedia* self);
static void _boxes_pair_unref0_ (gpointer var);
static void _g_list_free__boxes_pair_unref0_ (GList* self);
gboolean boxes_installer_media_is_architecture_compatible (BoxesInstallerMedia* self, const gchar* architecture);
GType boxes_cpu_arch_compatibility_get_type (void) G_GNUC_CONST;
BoxesCPUArchCompatibility boxes_compare_cpu_architectures (const gchar* arch1, const gchar* arch2);
BoxesVMCreator* boxes_installer_media_get_vm_creator (BoxesInstallerMedia* self);
static BoxesVMCreator* boxes_installer_media_real_get_vm_creator (BoxesInstallerMedia* self);
BoxesVMCreator* boxes_vm_creator_new (BoxesInstallerMedia* install_media);
BoxesVMCreator* boxes_vm_creator_construct (GType object_type, BoxesInstallerMedia* install_media);
static void boxes_installer_media_get_device_from_path_data_free (gpointer _data);
static gboolean boxes_installer_media_get_device_from_path_co (BoxesInstallerMediaGetDeviceFromPathData* _data_);
static void boxes_installer_media_get_device_from_path_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_installer_media_get_media_info_from_device_data_free (gpointer _data);
static gboolean boxes_installer_media_get_media_info_from_device_co (BoxesInstallerMediaGetMediaInfoFromDeviceData* _data_);
GQuark boxes_os_database_error_quark (void);
static gchar* boxes_installer_media_get_decoded_udev_property (BoxesInstallerMedia* self, GUdevDevice* device, const gchar* property_name);
void boxes_os_database_get_os_by_id (BoxesOSDatabase* self, const gchar* id, GAsyncReadyCallback _callback_, gpointer _user_data_);
OsinfoOs* boxes_os_database_get_os_by_id_finish (BoxesOSDatabase* self, GAsyncResult* _res_, GError** error);
static void boxes_installer_media_get_media_info_from_device_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
OsinfoMedia* boxes_os_database_get_media_by_id (BoxesOSDatabase* self, OsinfoOs* os, const gchar* id, GError** error);
static void boxes_installer_media_get_decoded_udev_properties_for_media (BoxesInstallerMedia* self, GUdevDevice* device, gchar** udev_props, int udev_props_length1, gchar** media_props, int media_props_length1, OsinfoMedia* media);
void boxes_os_database_guess_os_from_install_media (BoxesOSDatabase* self, OsinfoMedia* media, GAsyncReadyCallback _callback_, gpointer _user_data_);
OsinfoMedia* boxes_os_database_guess_os_from_install_media_finish (BoxesOSDatabase* self, GAsyncResult* _res_, GError** error);
gboolean boxes_installer_media_get_live (BoxesInstallerMedia* self);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
BoxesInstallerMedia* boxes_installer_media_new (void);
BoxesInstallerMedia* boxes_installer_media_construct (GType object_type);
OsinfoDeviceList* boxes_installer_media_get_supported_devices (BoxesInstallerMedia* self);
guint64 boxes_installer_media_get_installed_size (BoxesInstallerMedia* self);
gboolean boxes_installer_media_get_need_user_input_for_vm_creation (BoxesInstallerMedia* self);
gboolean boxes_installer_media_get_ready_to_create (BoxesInstallerMedia* self);
gboolean boxes_installer_media_get_supports_virtio_disk (BoxesInstallerMedia* self);
OsinfoDevice* boxes_find_device_by_prop (OsinfoDeviceList* devices, const gchar* prop_name, const gchar* prop_value);
static void boxes_installer_media_finalize (GObject* obj);
static void _vala_boxes_installer_media_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


static gpointer _g_object_ref0 (gpointer self) {
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return self ? g_object_ref (self) : NULL;
#line 421 "installer-media.c"
}


BoxesInstallerMedia* boxes_installer_media_construct_from_iso_info (GType object_type, const gchar* path, const gchar* label, OsinfoOs* os, OsinfoMedia* media, OsinfoResources* resources) {
	BoxesInstallerMedia * self = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	OsinfoOs* _tmp2_ = NULL;
	OsinfoOs* _tmp3_ = NULL;
	OsinfoMedia* _tmp4_ = NULL;
	OsinfoMedia* _tmp5_ = NULL;
	OsinfoResources* _tmp6_ = NULL;
	OsinfoResources* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (path != NULL, NULL);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (label != NULL, NULL);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (resources != NULL, NULL);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self = (BoxesInstallerMedia*) g_object_new (object_type, NULL);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = path;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (self->device_file);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self->device_file = _tmp1_;
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = os;
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (self->os);
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self->os = _tmp3_;
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = media;
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (self->os_media);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self->os_media = _tmp5_;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp6_ = resources;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (self->resources);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self->resources = _tmp7_;
#line 52 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self->from_image = TRUE;
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp8_ = label;
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_label_setup (self, _tmp8_);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return self;
#line 484 "installer-media.c"
}


BoxesInstallerMedia* boxes_installer_media_new_from_iso_info (const gchar* path, const gchar* label, OsinfoOs* os, OsinfoMedia* media, OsinfoResources* resources) {
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return boxes_installer_media_construct_from_iso_info (BOXES_TYPE_INSTALLER_MEDIA, path, label, os, media, resources);
#line 491 "installer-media.c"
}


static void boxes_installer_media_construct_for_path_data_free (gpointer _data) {
	BoxesInstallerMediaNewForPathData* _data_;
	_data_ = _data;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->path);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->media_manager);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->cancellable);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->self);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_slice_free (BoxesInstallerMediaNewForPathData, _data_);
#line 508 "installer-media.c"
}


void boxes_installer_media_construct_for_path (GType object_type, const gchar* path, BoxesMediaManager* media_manager, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesInstallerMediaNewForPathData* _data_;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	BoxesMediaManager* _tmp2_ = NULL;
	BoxesMediaManager* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
	GCancellable* _tmp5_ = NULL;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = g_slice_new0 (BoxesInstallerMediaNewForPathData);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_async_result = g_simple_async_result_new (NULL, _callback_, _user_data_, boxes_installer_media_construct_for_path);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_installer_media_construct_for_path_data_free);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->object_type = object_type;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = path;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->path);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->path = _tmp1_;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = media_manager;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->media_manager);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->media_manager = _tmp3_;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = cancellable;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->cancellable);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->cancellable = _tmp5_;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_construct_for_path_co (_data_);
#line 554 "installer-media.c"
}


BoxesInstallerMedia* boxes_installer_media_construct_for_path_finish (GAsyncResult* _res_, GError** error) {
	BoxesInstallerMedia* result;
	BoxesInstallerMediaNewForPathData* _data_;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return;
#line 565 "installer-media.c"
	}
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = _data_->self;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->self = NULL;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 575 "installer-media.c"
}


static void boxes_installer_media_new_for_path_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesInstallerMediaNewForPathData* _data_;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = _user_data_;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_source_object_ = source_object;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_res_ = _res_;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_construct_for_path_co (_data_);
#line 589 "installer-media.c"
}


static gboolean boxes_installer_media_construct_for_path_co (BoxesInstallerMediaNewForPathData* _data_) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	switch (_data_->_state_) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 0:
#line 598 "installer-media.c"
		goto _state_0;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 1:
#line 602 "installer-media.c"
		goto _state_1;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 2:
#line 606 "installer-media.c"
		goto _state_2;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 3:
#line 610 "installer-media.c"
		goto _state_3;
		default:
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_assert_not_reached ();
#line 615 "installer-media.c"
	}
	_state_0:
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->self = (BoxesInstallerMedia*) g_object_new (_data_->object_type, NULL);
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp0_ = NULL;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp0_ = _data_->path;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp1_ = NULL;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp1_ = _data_->media_manager;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp2_ = NULL;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp2_ = boxes_media_manager_get_client (_data_->_tmp1_);
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp3_ = NULL;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp4_ = NULL;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp4_ = _data_->cancellable;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_state_ = 1;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_get_device_from_path (_data_->self, _data_->_tmp0_, _data_->_tmp3_, _data_->_tmp4_, boxes_installer_media_new_for_path_ready, _data_);
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return FALSE;
#line 646 "installer-media.c"
	_state_1:
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp5_ = NULL;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp5_ = boxes_installer_media_get_device_from_path_finish (_data_->self, _data_->_res_);
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->device = _data_->_tmp5_;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp6_ = NULL;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp6_ = _data_->device;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_tmp6_ != NULL) {
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp7_ = NULL;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp7_ = _data_->device;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp8_ = NULL;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp8_ = _data_->media_manager;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp9_ = NULL;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp9_ = boxes_media_manager_get_os_db (_data_->_tmp8_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp10_ = NULL;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp10_ = _data_->_tmp9_;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_state_ = 2;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		boxes_installer_media_get_media_info_from_device (_data_->self, _data_->_tmp7_, _data_->_tmp10_, boxes_installer_media_new_for_path_ready, _data_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return FALSE;
#line 682 "installer-media.c"
		_state_2:
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		boxes_installer_media_get_media_info_from_device_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_data_->_inner_error_ != NULL) {
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_error_free (_data_->_inner_error_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_object_unref0 (_data_->device);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			if (_data_->_state_ == 0) {
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 698 "installer-media.c"
			} else {
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 702 "installer-media.c"
			}
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_object_unref (_data_->_async_result);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			return FALSE;
#line 708 "installer-media.c"
		}
	} else {
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->self->from_image = TRUE;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp12_ = NULL;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp12_ = _data_->media_manager;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp13_ = NULL;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp13_ = boxes_media_manager_get_os_db (_data_->_tmp12_);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp14_ = NULL;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp14_ = _data_->_tmp13_;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp15_ = NULL;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp15_ = _data_->self->device_file;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp16_ = NULL;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp16_ = _data_->cancellable;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_state_ = 3;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		boxes_os_database_guess_os_from_install_media_path (_data_->_tmp14_, _data_->_tmp15_, _data_->_tmp16_, boxes_installer_media_new_for_path_ready, _data_);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return FALSE;
#line 739 "installer-media.c"
		_state_3:
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp17_ = NULL;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp17_ = boxes_os_database_guess_os_from_install_media_path_finish (_data_->_tmp14_, _data_->_res_, &_data_->_inner_error_);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp11_ = _data_->_tmp17_;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_data_->_inner_error_ != NULL) {
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_error_free (_data_->_inner_error_);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_object_unref0 (_data_->device);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			if (_data_->_state_ == 0) {
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 759 "installer-media.c"
			} else {
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 763 "installer-media.c"
			}
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_object_unref (_data_->_async_result);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			return FALSE;
#line 769 "installer-media.c"
		}
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_object_unref0 (_data_->self->os_media);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->self->os_media = _data_->_tmp11_;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp18_ = NULL;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp18_ = _data_->self->os_media;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_data_->_tmp18_ != NULL) {
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp19_ = NULL;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp19_ = _data_->self->os_media;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp20_ = NULL;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp20_ = osinfo_media_get_os (_data_->_tmp19_);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp21_ = NULL;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp21_ = _data_->_tmp20_;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_object_unref0 (_data_->self->os);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->self->os = _data_->_tmp21_;
#line 797 "installer-media.c"
		}
	}
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_label_setup (_data_->self, NULL);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp23_ = NULL;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp23_ = boxes_installer_media_get_architecture (_data_->self);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp24_ = NULL;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp24_ = _data_->_tmp23_;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp22_ = _data_->_tmp24_;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp25_ = NULL;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp25_ = _data_->_tmp22_;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_tmp25_ == NULL) {
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp26_ = NULL;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp26_ = g_strdup ("i686");
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_free0 (_data_->_tmp22_);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp22_ = _data_->_tmp26_;
#line 826 "installer-media.c"
	}
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp27_ = NULL;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp27_ = _data_->_tmp22_;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp28_ = NULL;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp28_ = g_strdup (_data_->_tmp27_);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->architecture = _data_->_tmp28_;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp29_ = NULL;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp29_ = _data_->media_manager;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp30_ = NULL;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp30_ = boxes_media_manager_get_os_db (_data_->_tmp29_);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp31_ = NULL;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp31_ = _data_->_tmp30_;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp32_ = NULL;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp32_ = _data_->self->os;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp33_ = NULL;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp33_ = _data_->architecture;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp34_ = NULL;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp34_ = boxes_os_database_get_resources_for_os (_data_->_tmp31_, _data_->_tmp32_, _data_->_tmp33_);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->self->resources);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->self->resources = _data_->_tmp34_;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->architecture);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->_tmp22_);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->device);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_state_ == 0) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 876 "installer-media.c"
	} else {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 880 "installer-media.c"
	}
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_unref (_data_->_async_result);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return FALSE;
#line 886 "installer-media.c"
}


void boxes_installer_media_new_for_path (const gchar* path, BoxesMediaManager* media_manager, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_construct_for_path (BOXES_TYPE_INSTALLER_MEDIA, path, media_manager, cancellable, _callback_, _user_data_);
#line 893 "installer-media.c"
}


BoxesInstallerMedia* boxes_installer_media_new_for_path_finish (GAsyncResult* _res_, GError** error) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return boxes_installer_media_construct_for_path_finish (_res_, error);
#line 900 "installer-media.c"
}


static void boxes_installer_media_real_set_direct_boot_params (BoxesInstallerMedia* self, GVirConfigDomainOs* os) {
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (os != NULL);
#line 907 "installer-media.c"
}


void boxes_installer_media_set_direct_boot_params (BoxesInstallerMedia* self, GVirConfigDomainOs* os) {
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->set_direct_boot_params (self, os);
#line 916 "installer-media.c"
}


static void boxes_installer_media_real_prepare_data_free (gpointer _data) {
	BoxesInstallerMediaPrepareData* _data_;
	_data_ = _data;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->progress);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->cancellable);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->self);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_slice_free (BoxesInstallerMediaPrepareData, _data_);
#line 931 "installer-media.c"
}


static void boxes_installer_media_real_prepare (BoxesInstallerMedia* self, BoxesActivityProgress* progress, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesInstallerMediaPrepareData* _data_;
	BoxesInstallerMedia* _tmp0_ = NULL;
	BoxesActivityProgress* _tmp1_ = NULL;
	BoxesActivityProgress* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = g_slice_new0 (BoxesInstallerMediaPrepareData);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_installer_media_real_prepare);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_installer_media_real_prepare_data_free);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->self = _tmp0_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = progress;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->progress);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->progress = _tmp2_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = cancellable;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->cancellable);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->cancellable = _tmp4_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_real_prepare_co (_data_);
#line 970 "installer-media.c"
}


static void boxes_installer_media_real_prepare_finish (BoxesInstallerMedia* self, GAsyncResult* _res_) {
	BoxesInstallerMediaPrepareData* _data_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 978 "installer-media.c"
}


static gboolean boxes_installer_media_real_prepare_co (BoxesInstallerMediaPrepareData* _data_) {
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	switch (_data_->_state_) {
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 0:
#line 987 "installer-media.c"
		goto _state_0;
		default:
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_assert_not_reached ();
#line 992 "installer-media.c"
	}
	_state_0:
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_state_ == 0) {
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 999 "installer-media.c"
	} else {
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1003 "installer-media.c"
	}
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_unref (_data_->_async_result);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return FALSE;
#line 1009 "installer-media.c"
}


void boxes_installer_media_prepare (BoxesInstallerMedia* self, BoxesActivityProgress* progress, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->prepare (self, progress, cancellable, _callback_, _user_data_);
#line 1016 "installer-media.c"
}


void boxes_installer_media_prepare_finish (BoxesInstallerMedia* self, GAsyncResult* _res_) {
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->prepare_finish (self, _res_);
#line 1023 "installer-media.c"
}


static void boxes_installer_media_real_prepare_for_installation_data_free (gpointer _data) {
	BoxesInstallerMediaPrepareForInstallationData* _data_;
	_data_ = _data;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->vm_name);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->cancellable);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->self);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_slice_free (BoxesInstallerMediaPrepareForInstallationData, _data_);
#line 1038 "installer-media.c"
}


static void boxes_installer_media_real_prepare_for_installation (BoxesInstallerMedia* self, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesInstallerMediaPrepareForInstallationData* _data_;
	BoxesInstallerMedia* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = g_slice_new0 (BoxesInstallerMediaPrepareForInstallationData);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_installer_media_real_prepare_for_installation);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_installer_media_real_prepare_for_installation_data_free);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->self = _tmp0_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = vm_name;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->vm_name);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->vm_name = _tmp2_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = cancellable;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->cancellable);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->cancellable = _tmp4_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_real_prepare_for_installation_co (_data_);
#line 1077 "installer-media.c"
}


static void boxes_installer_media_real_prepare_for_installation_finish (BoxesInstallerMedia* self, GAsyncResult* _res_, GError** error) {
	BoxesInstallerMediaPrepareForInstallationData* _data_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return;
#line 1087 "installer-media.c"
	}
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1091 "installer-media.c"
}


static gboolean boxes_installer_media_real_prepare_for_installation_co (BoxesInstallerMediaPrepareForInstallationData* _data_) {
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	switch (_data_->_state_) {
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 0:
#line 1100 "installer-media.c"
		goto _state_0;
		default:
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_assert_not_reached ();
#line 1105 "installer-media.c"
	}
	_state_0:
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_state_ == 0) {
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1112 "installer-media.c"
	} else {
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1116 "installer-media.c"
	}
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_unref (_data_->_async_result);
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return FALSE;
#line 1122 "installer-media.c"
}


void boxes_installer_media_prepare_for_installation (BoxesInstallerMedia* self, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->prepare_for_installation (self, vm_name, cancellable, _callback_, _user_data_);
#line 1129 "installer-media.c"
}


void boxes_installer_media_prepare_for_installation_finish (BoxesInstallerMedia* self, GAsyncResult* _res_, GError** error) {
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->prepare_for_installation_finish (self, _res_, error);
#line 1136 "installer-media.c"
}


static void boxes_installer_media_real_prepare_to_continue_installation (BoxesInstallerMedia* self, const gchar* vm_name) {
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (vm_name != NULL);
#line 1143 "installer-media.c"
}


void boxes_installer_media_prepare_to_continue_installation (BoxesInstallerMedia* self, const gchar* vm_name) {
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->prepare_to_continue_installation (self, vm_name);
#line 1152 "installer-media.c"
}


static void boxes_installer_media_real_clean_up (BoxesInstallerMedia* self) {
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_clean_up_preparation_cache (self);
#line 1159 "installer-media.c"
}


void boxes_installer_media_clean_up (BoxesInstallerMedia* self) {
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->clean_up (self);
#line 1168 "installer-media.c"
}


static void boxes_installer_media_real_clean_up_preparation_cache (BoxesInstallerMedia* self) {
}


void boxes_installer_media_clean_up_preparation_cache (BoxesInstallerMedia* self) {
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->clean_up_preparation_cache (self);
#line 1181 "installer-media.c"
}


static void boxes_installer_media_real_setup_domain_config (BoxesInstallerMedia* self, GVirConfigDomain* domain) {
	GVirConfigDomainDiskType _tmp0_ = 0;
	gboolean _tmp1_ = FALSE;
	GVirConfigDomain* _tmp2_ = NULL;
	GVirConfigDomainDiskType _tmp3_ = 0;
	const gchar* _tmp4_ = NULL;
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (domain != NULL);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = self->from_image;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_tmp1_) {
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp0_ = GVIR_CONFIG_DOMAIN_DISK_FILE;
#line 1199 "installer-media.c"
	} else {
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp0_ = GVIR_CONFIG_DOMAIN_DISK_BLOCK;
#line 1203 "installer-media.c"
	}
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = domain;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = _tmp0_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = self->device_file;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_add_cd_config (self, _tmp2_, _tmp3_, _tmp4_, "hdc", TRUE);
#line 1213 "installer-media.c"
}


void boxes_installer_media_setup_domain_config (BoxesInstallerMedia* self, GVirConfigDomain* domain) {
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->setup_domain_config (self, domain);
#line 1222 "installer-media.c"
}


static void boxes_installer_media_real_setup_post_install_domain_config (BoxesInstallerMedia* self, GVirConfigDomain* domain) {
	GVirConfigDomain* _tmp0_ = NULL;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (domain != NULL);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = domain;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_eject_cdrom_media (self, _tmp0_);
#line 1234 "installer-media.c"
}


void boxes_installer_media_setup_post_install_domain_config (BoxesInstallerMedia* self, GVirConfigDomain* domain) {
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->setup_post_install_domain_config (self, domain);
#line 1243 "installer-media.c"
}


static void boxes_installer_media_real_populate_setup_vbox (BoxesInstallerMedia* self, GtkBox* setup_vbox) {
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (setup_vbox != NULL);
#line 1250 "installer-media.c"
}


void boxes_installer_media_populate_setup_vbox (BoxesInstallerMedia* self, GtkBox* setup_vbox) {
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_GET_CLASS (self)->populate_setup_vbox (self, setup_vbox);
#line 1259 "installer-media.c"
}


static void _boxes_pair_unref0_ (gpointer var) {
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	(var == NULL) ? NULL : (var = (boxes_pair_unref (var), NULL));
#line 1266 "installer-media.c"
}


static void _g_list_free__boxes_pair_unref0_ (GList* self) {
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_list_foreach (self, (GFunc) _boxes_pair_unref0_, NULL);
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_list_free (self);
#line 1275 "installer-media.c"
}


static GList* boxes_installer_media_real_get_vm_properties (BoxesInstallerMedia* self) {
	GList* result = NULL;
	GList* properties = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	BoxesPair* _tmp2_ = NULL;
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	properties = NULL;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = _ ("System");
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = self->label;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = boxes_pair_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _tmp0_, _tmp1_);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	properties = g_list_append (properties, _tmp2_);
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = properties;
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 1299 "installer-media.c"
}


GList* boxes_installer_media_get_vm_properties (BoxesInstallerMedia* self) {
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return BOXES_INSTALLER_MEDIA_GET_CLASS (self)->get_vm_properties (self);
#line 1308 "installer-media.c"
}


gboolean boxes_installer_media_is_architecture_compatible (BoxesInstallerMedia* self, const gchar* architecture) {
	gboolean result = FALSE;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	BoxesCPUArchCompatibility compatibility = 0;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	BoxesCPUArchCompatibility _tmp8_ = 0;
	BoxesCPUArchCompatibility _tmp9_ = 0;
	BoxesCPUArchCompatibility _tmp10_ = 0;
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (architecture != NULL, FALSE);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = boxes_installer_media_get_architecture (self);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = _tmp0_;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = _tmp1_;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = _tmp2_ == NULL;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_tmp2_);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_tmp3_) {
#line 111 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		result = TRUE;
#line 111 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return result;
#line 1346 "installer-media.c"
	}
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = architecture;
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp5_ = boxes_installer_media_get_architecture (self);
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp6_ = _tmp5_;
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp7_ = _tmp6_;
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp8_ = boxes_compare_cpu_architectures (_tmp4_, _tmp7_);
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp9_ = _tmp8_;
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_tmp7_);
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	compatibility = _tmp9_;
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp10_ = compatibility;
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = _tmp10_ != BOXES_CPU_ARCH_COMPATIBILITY_INCOMPATIBLE;
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 1370 "installer-media.c"
}


static BoxesVMCreator* boxes_installer_media_real_get_vm_creator (BoxesInstallerMedia* self) {
	BoxesVMCreator* result = NULL;
	BoxesVMCreator* _tmp0_ = NULL;
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = boxes_vm_creator_new (self);
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = _tmp0_;
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 1383 "installer-media.c"
}


BoxesVMCreator* boxes_installer_media_get_vm_creator (BoxesInstallerMedia* self) {
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return BOXES_INSTALLER_MEDIA_GET_CLASS (self)->get_vm_creator (self);
#line 1392 "installer-media.c"
}


void boxes_installer_media_add_cd_config (BoxesInstallerMedia* self, GVirConfigDomain* domain, GVirConfigDomainDiskType type, const gchar* iso_path, const gchar* device_name, gboolean mandatory) {
	GVirConfigDomainDisk* disk = NULL;
	GVirConfigDomainDisk* _tmp0_ = NULL;
	GVirConfigDomainDisk* _tmp1_ = NULL;
	GVirConfigDomainDiskType _tmp2_ = 0;
	GVirConfigDomainDisk* _tmp3_ = NULL;
	GVirConfigDomainDisk* _tmp4_ = NULL;
	GVirConfigDomainDisk* _tmp5_ = NULL;
	GVirConfigDomainDisk* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	GVirConfigDomainDisk* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	GVirConfigDomainDisk* _tmp10_ = NULL;
	gboolean _tmp11_ = FALSE;
	GVirConfigDomain* _tmp13_ = NULL;
	GVirConfigDomainDisk* _tmp14_ = NULL;
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (domain != NULL);
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (iso_path != NULL);
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (device_name != NULL);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = gvir_config_domain_disk_new ();
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	disk = _tmp0_;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = disk;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = type;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	gvir_config_domain_disk_set_type (_tmp1_, _tmp2_);
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = disk;
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	gvir_config_domain_disk_set_guest_device_type (_tmp3_, GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_CDROM);
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = disk;
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	gvir_config_domain_disk_set_driver_name (_tmp4_, "qemu");
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp5_ = disk;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	gvir_config_domain_disk_set_driver_format (_tmp5_, GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW);
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp6_ = disk;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp7_ = device_name;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	gvir_config_domain_disk_set_target_dev (_tmp6_, _tmp7_);
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp8_ = disk;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp9_ = iso_path;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	gvir_config_domain_disk_set_source (_tmp8_, _tmp9_);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp10_ = disk;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	gvir_config_domain_disk_set_target_bus (_tmp10_, GVIR_CONFIG_DOMAIN_DISK_BUS_IDE);
#line 136 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp11_ = mandatory;
#line 136 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_tmp11_) {
#line 1462 "installer-media.c"
		GVirConfigDomainDisk* _tmp12_ = NULL;
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp12_ = disk;
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		gvir_config_domain_disk_set_startup_policy (_tmp12_, GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_MANDATORY);
#line 1468 "installer-media.c"
	}
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp13_ = domain;
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp14_ = disk;
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	gvir_config_domain_add_device (_tmp13_, (GVirConfigDomainDevice*) _tmp14_);
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (disk);
#line 1478 "installer-media.c"
}


static gint string_index_of (const gchar* self, const gchar* needle, gint start_index) {
	gint result = 0;
	gchar* _result_ = NULL;
	gint _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 898 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 898 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, 0);
#line 899 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp0_ = start_index;
#line 899 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp1_ = needle;
#line 899 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp2_ = strstr (((gchar*) self) + _tmp0_, (gchar*) _tmp1_);
#line 899 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_result_ = _tmp2_;
#line 901 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp3_ = _result_;
#line 901 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 1505 "installer-media.c"
		gchar* _tmp4_ = NULL;
#line 902 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp4_ = _result_;
#line 902 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		result = (gint) (_tmp4_ - ((gchar*) self));
#line 902 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		return result;
#line 1513 "installer-media.c"
	} else {
#line 904 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		result = -1;
#line 904 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		return result;
#line 1519 "installer-media.c"
	}
}


static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	glong string_length = 0L;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	glong _tmp2_ = 0L;
	glong _tmp5_ = 0L;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_ = 0L;
	gboolean _tmp12_ = FALSE;
	gboolean _tmp13_ = FALSE;
	glong _tmp14_ = 0L;
	gboolean _tmp17_ = FALSE;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	glong _tmp21_ = 0L;
	glong _tmp22_ = 0L;
	gchar* _tmp23_ = NULL;
#line 1190 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1191 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1191 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1191 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1192 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1192 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 1555 "installer-media.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
#line 1193 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1193 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1193 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 1564 "installer-media.c"
	}
#line 1195 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1195 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 1570 "installer-media.c"
		glong _tmp6_ = 0L;
		glong _tmp7_ = 0L;
#line 1196 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1196 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1196 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 1579 "installer-media.c"
	}
#line 1198 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1198 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 1585 "installer-media.c"
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1198 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1198 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1198 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 1594 "installer-media.c"
	} else {
#line 1198 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 1598 "installer-media.c"
	}
#line 1198 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp12_ = _tmp8_;
#line 1198 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1199 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp14_ = end;
#line 1199 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp14_ >= ((glong) 0)) {
#line 1608 "installer-media.c"
		glong _tmp15_ = 0L;
		glong _tmp16_ = 0L;
#line 1199 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp15_ = end;
#line 1199 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp16_ = string_length;
#line 1199 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp13_ = _tmp15_ <= _tmp16_;
#line 1617 "installer-media.c"
	} else {
#line 1199 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp13_ = FALSE;
#line 1621 "installer-media.c"
	}
#line 1199 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp17_ = _tmp13_;
#line 1199 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp17_, NULL);
#line 1200 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1200 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1200 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp18_ <= _tmp19_, NULL);
#line 1201 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1201 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp21_ = end;
#line 1201 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp22_ = start;
#line 1201 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp23_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) (_tmp21_ - _tmp22_));
#line 1201 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	result = _tmp23_;
#line 1201 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	return result;
#line 1645 "installer-media.c"
}


void boxes_installer_media_label_setup (BoxesInstallerMedia* self, const gchar* label) {
	const gchar* _tmp0_ = NULL;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = label;
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_tmp0_ != NULL) {
#line 1657 "installer-media.c"
		const gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp1_ = label;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp2_ = g_strdup (_tmp1_);
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_free0 (self->label);
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		self->label = _tmp2_;
#line 1668 "installer-media.c"
	} else {
		OsinfoOs* _tmp3_ = NULL;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp3_ = self->os;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_tmp3_ != NULL) {
#line 1675 "installer-media.c"
			OsinfoOs* _tmp4_ = NULL;
			const gchar* _tmp5_ = NULL;
			gchar* _tmp6_ = NULL;
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp4_ = self->os;
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp5_ = osinfo_product_get_name ((OsinfoProduct*) _tmp4_);
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp6_ = g_strdup (_tmp5_);
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (self->label);
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			self->label = _tmp6_;
#line 1689 "installer-media.c"
		} else {
			gchar* basename = NULL;
			const gchar* _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
			gint ext_index = 0;
			const gchar* _tmp9_ = NULL;
			gint _tmp10_ = 0;
			gchar* _tmp11_ = NULL;
			gint _tmp12_ = 0;
			const gchar* _tmp18_ = NULL;
			gchar* _tmp19_ = NULL;
#line 149 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp7_ = self->device_file;
#line 149 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp8_ = boxes_get_utf8_basename (_tmp7_);
#line 149 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			basename = _tmp8_;
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp9_ = basename;
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp10_ = string_index_of (_tmp9_, ".", 0);
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			ext_index = _tmp10_;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp12_ = ext_index;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			if (_tmp12_ > 0) {
#line 1717 "installer-media.c"
				const gchar* _tmp13_ = NULL;
				gint _tmp14_ = 0;
				gchar* _tmp15_ = NULL;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp13_ = basename;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp14_ = ext_index;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp15_ = string_slice (_tmp13_, (glong) 0, (glong) _tmp14_);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_g_free0 (_tmp11_);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp11_ = _tmp15_;
#line 1731 "installer-media.c"
			} else {
				const gchar* _tmp16_ = NULL;
				gchar* _tmp17_ = NULL;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp16_ = basename;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp17_ = g_strdup (_tmp16_);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_g_free0 (_tmp11_);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp11_ = _tmp17_;
#line 1743 "installer-media.c"
			}
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp18_ = _tmp11_;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp19_ = g_strdup (_tmp18_);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (self->label);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			self->label = _tmp19_;
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (_tmp11_);
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (basename);
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			return;
#line 1759 "installer-media.c"
		}
	}
}


static void boxes_installer_media_get_device_from_path_data_free (gpointer _data) {
	BoxesInstallerMediaGetDeviceFromPathData* _data_;
	_data_ = _data;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->path);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->client);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->cancellable);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->result);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->self);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_slice_free (BoxesInstallerMediaGetDeviceFromPathData, _data_);
#line 1780 "installer-media.c"
}


static void boxes_installer_media_get_device_from_path (BoxesInstallerMedia* self, const gchar* path, GUdevClient* client, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesInstallerMediaGetDeviceFromPathData* _data_;
	BoxesInstallerMedia* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	GUdevClient* _tmp3_ = NULL;
	GUdevClient* _tmp4_ = NULL;
	GCancellable* _tmp5_ = NULL;
	GCancellable* _tmp6_ = NULL;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = g_slice_new0 (BoxesInstallerMediaGetDeviceFromPathData);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_installer_media_get_device_from_path);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_installer_media_get_device_from_path_data_free);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->self = _tmp0_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = path;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->path);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->path = _tmp2_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = client;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->client);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->client = _tmp4_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp5_ = cancellable;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp6_ = _g_object_ref0 (_tmp5_);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->cancellable);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->cancellable = _tmp6_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_get_device_from_path_co (_data_);
#line 1829 "installer-media.c"
}


static GUdevDevice* boxes_installer_media_get_device_from_path_finish (BoxesInstallerMedia* self, GAsyncResult* _res_) {
	GUdevDevice* result;
	BoxesInstallerMediaGetDeviceFromPathData* _data_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = _data_->result;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->result = NULL;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 1844 "installer-media.c"
}


static void boxes_installer_media_get_device_from_path_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesInstallerMediaGetDeviceFromPathData* _data_;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = _user_data_;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_source_object_ = source_object;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_res_ = _res_;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_get_device_from_path_co (_data_);
#line 1858 "installer-media.c"
}


static gboolean boxes_installer_media_get_device_from_path_co (BoxesInstallerMediaGetDeviceFromPathData* _data_) {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	switch (_data_->_state_) {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 0:
#line 1867 "installer-media.c"
		goto _state_0;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 1:
#line 1871 "installer-media.c"
		goto _state_1;
		default:
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_assert_not_reached ();
#line 1876 "installer-media.c"
	}
	_state_0:
	{
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp0_ = NULL;
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp0_ = _data_->path;
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp1_ = NULL;
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp1_ = g_file_new_for_path (_data_->_tmp0_);
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->mount_dir = _data_->_tmp1_;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp2_ = NULL;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp2_ = _data_->cancellable;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_state_ = 1;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_file_find_enclosing_mount_async (_data_->mount_dir, G_PRIORITY_DEFAULT, _data_->_tmp2_, boxes_installer_media_get_device_from_path_ready, _data_);
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return FALSE;
#line 1900 "installer-media.c"
		_state_1:
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp3_ = NULL;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp3_ = g_file_find_enclosing_mount_finish (_data_->mount_dir, _data_->_res_, &_data_->_inner_error_);
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->mount = _data_->_tmp3_;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_data_->_inner_error_ != NULL) {
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_object_unref0 (_data_->mount_dir);
#line 1912 "installer-media.c"
			goto __catch8_g_error;
		}
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp4_ = NULL;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp4_ = g_mount_get_root (_data_->mount);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->root_dir = _data_->_tmp4_;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp5_ = NULL;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp5_ = _data_->root_dir;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp6_ = NULL;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp6_ = g_file_get_path (_data_->_tmp5_);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp7_ = NULL;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp7_ = _data_->_tmp6_;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp8_ = NULL;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp8_ = g_file_get_path (_data_->mount_dir);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp9_ = NULL;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp9_ = _data_->_tmp8_;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp10_ = FALSE;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp10_ = g_strcmp0 (_data_->_tmp7_, _data_->_tmp9_) == 0;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_free0 (_data_->_tmp9_);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_free0 (_data_->_tmp7_);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_data_->_tmp10_) {
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp11_ = NULL;
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp11_ = g_mount_get_volume (_data_->mount);
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->volume = _data_->_tmp11_;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp12_ = NULL;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp12_ = _data_->volume;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp13_ = NULL;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp13_ = g_volume_get_identifier (_data_->_tmp12_, G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE);
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (_data_->self->device_file);
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->self->device_file = _data_->_tmp13_;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp14_ = NULL;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp14_ = _data_->path;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp15_ = NULL;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp15_ = g_strdup (_data_->_tmp14_);
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (_data_->self->mount_point);
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->self->mount_point = _data_->_tmp15_;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_object_unref0 (_data_->volume);
#line 1983 "installer-media.c"
		} else {
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp16_ = NULL;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp16_ = _data_->path;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp17_ = NULL;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp17_ = g_strdup (_data_->_tmp16_);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (_data_->self->device_file);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->self->device_file = _data_->_tmp17_;
#line 1997 "installer-media.c"
		}
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_object_unref0 (_data_->root_dir);
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_object_unref0 (_data_->mount);
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_object_unref0 (_data_->mount_dir);
#line 2005 "installer-media.c"
	}
	goto __finally8;
	__catch8_g_error:
	{
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_inner_error_ = NULL;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp18_ = NULL;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp18_ = _data_->path;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp19_ = NULL;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp19_ = g_strdup (_data_->_tmp18_);
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_free0 (_data_->self->device_file);
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->self->device_file = _data_->_tmp19_;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_error_free0 (_data_->_error_);
#line 2028 "installer-media.c"
	}
	__finally8:
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_inner_error_ != NULL) {
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.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 158 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_clear_error (&_data_->_inner_error_);
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return FALSE;
#line 2039 "installer-media.c"
	}
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp20_ = NULL;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp20_ = _data_->client;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp21_ = NULL;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp21_ = _data_->self->device_file;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp22_ = NULL;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp22_ = g_udev_client_query_by_device_file (_data_->_tmp20_, _data_->_tmp21_);
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->result = _data_->_tmp22_;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_state_ == 0) {
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2059 "installer-media.c"
	} else {
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2063 "installer-media.c"
	}
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_unref (_data_->_async_result);
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return FALSE;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_state_ == 0) {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2073 "installer-media.c"
	} else {
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2077 "installer-media.c"
	}
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_unref (_data_->_async_result);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return FALSE;
#line 2083 "installer-media.c"
}


static void boxes_installer_media_get_media_info_from_device_data_free (gpointer _data) {
	BoxesInstallerMediaGetMediaInfoFromDeviceData* _data_;
	_data_ = _data;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->device);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->os_db);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->self);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_slice_free (BoxesInstallerMediaGetMediaInfoFromDeviceData, _data_);
#line 2098 "installer-media.c"
}


static void boxes_installer_media_get_media_info_from_device (BoxesInstallerMedia* self, GUdevDevice* device, BoxesOSDatabase* os_db, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesInstallerMediaGetMediaInfoFromDeviceData* _data_;
	BoxesInstallerMedia* _tmp0_ = NULL;
	GUdevDevice* _tmp1_ = NULL;
	GUdevDevice* _tmp2_ = NULL;
	BoxesOSDatabase* _tmp3_ = NULL;
	BoxesOSDatabase* _tmp4_ = NULL;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = g_slice_new0 (BoxesInstallerMediaGetMediaInfoFromDeviceData);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_installer_media_get_media_info_from_device);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_installer_media_get_media_info_from_device_data_free);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->self = _tmp0_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = device;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->device);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->device = _tmp2_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = os_db;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_data_->os_db);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->os_db = _tmp4_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_get_media_info_from_device_co (_data_);
#line 2137 "installer-media.c"
}


static void boxes_installer_media_get_media_info_from_device_finish (BoxesInstallerMedia* self, GAsyncResult* _res_, GError** error) {
	BoxesInstallerMediaGetMediaInfoFromDeviceData* _data_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return;
#line 2147 "installer-media.c"
	}
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2151 "installer-media.c"
}


static void boxes_installer_media_get_media_info_from_device_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesInstallerMediaGetMediaInfoFromDeviceData* _data_;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_ = _user_data_;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_source_object_ = source_object;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_res_ = _res_;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_get_media_info_from_device_co (_data_);
#line 2165 "installer-media.c"
}


static gboolean boxes_installer_media_get_media_info_from_device_co (BoxesInstallerMediaGetMediaInfoFromDeviceData* _data_) {
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	switch (_data_->_state_) {
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 0:
#line 2174 "installer-media.c"
		goto _state_0;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 1:
#line 2178 "installer-media.c"
		goto _state_1;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case 2:
#line 2182 "installer-media.c"
		goto _state_2;
		default:
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_assert_not_reached ();
#line 2187 "installer-media.c"
	}
	_state_0:
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp1_ = NULL;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp1_ = _data_->device;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp2_ = NULL;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp2_ = g_udev_device_get_property (_data_->_tmp1_, "ID_FS_BOOT_SYSTEM_ID");
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_tmp2_ == NULL) {
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp3_ = NULL;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp3_ = _data_->device;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp4_ = FALSE;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp4_ = g_udev_device_get_property_as_boolean (_data_->_tmp3_, "OSINFO_BOOTABLE");
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp0_ = !_data_->_tmp4_;
#line 2210 "installer-media.c"
	} else {
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp0_ = FALSE;
#line 2214 "installer-media.c"
	}
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp5_ = FALSE;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp5_ = _data_->_tmp0_;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_tmp5_) {
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp6_ = NULL;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp6_ = _data_->self->device_file;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp7_ = NULL;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp7_ = g_error_new (BOXES_OS_DATABASE_ERROR, BOXES_OS_DATABASE_ERROR_NON_BOOTABLE, "Media %s is not bootable.", _data_->_tmp6_);
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_inner_error_ = _data_->_tmp7_;
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_error_free (_data_->_inner_error_);
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_data_->_state_ == 0) {
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2240 "installer-media.c"
		} else {
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2244 "installer-media.c"
		}
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_object_unref (_data_->_async_result);
#line 180 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return FALSE;
#line 2250 "installer-media.c"
	}
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp8_ = NULL;
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp8_ = _data_->device;
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp9_ = NULL;
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp9_ = boxes_installer_media_get_decoded_udev_property (_data_->self, _data_->_tmp8_, "ID_FS_LABEL_ENC");
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->self->label);
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->self->label = _data_->_tmp9_;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp11_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp11_ = _data_->device;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp12_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp12_ = g_udev_device_get_property (_data_->_tmp11_, "OSINFO_INSTALLER");
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp13_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp13_ = g_strdup (_data_->_tmp12_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp10_ = _data_->_tmp13_;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp14_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp14_ = _data_->_tmp10_;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_tmp14_ == NULL) {
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp15_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp15_ = _data_->device;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp16_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp16_ = g_udev_device_get_property (_data_->_tmp15_, "OSINFO_LIVE");
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp17_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp17_ = g_strdup (_data_->_tmp16_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_free0 (_data_->_tmp10_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp10_ = _data_->_tmp17_;
#line 2300 "installer-media.c"
	}
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp18_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp18_ = _data_->_tmp10_;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp19_ = NULL;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp19_ = g_strdup (_data_->_tmp18_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->os_id = _data_->_tmp19_;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp20_ = NULL;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_data_->_tmp20_ = _data_->os_id;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_tmp20_ != NULL) {
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp22_ = NULL;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp22_ = _data_->os_db;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp23_ = NULL;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp23_ = _data_->os_id;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_state_ = 1;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		boxes_os_database_get_os_by_id (_data_->_tmp22_, _data_->_tmp23_, boxes_installer_media_get_media_info_from_device_ready, _data_);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return FALSE;
#line 2332 "installer-media.c"
		_state_1:
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp24_ = NULL;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp24_ = boxes_os_database_get_os_by_id_finish (_data_->_tmp22_, _data_->_res_, &_data_->_inner_error_);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp21_ = _data_->_tmp24_;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_data_->_inner_error_ != NULL) {
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_error_free (_data_->_inner_error_);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (_data_->os_id);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (_data_->_tmp10_);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			if (_data_->_state_ == 0) {
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2354 "installer-media.c"
			} else {
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 2358 "installer-media.c"
			}
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_object_unref (_data_->_async_result);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			return FALSE;
#line 2364 "installer-media.c"
		}
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_object_unref0 (_data_->self->os);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->self->os = _data_->_tmp21_;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp25_ = NULL;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp25_ = _data_->device;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp26_ = NULL;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp26_ = g_udev_device_get_property (_data_->_tmp25_, "OSINFO_MEDIA");
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp27_ = NULL;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp27_ = g_strdup (_data_->_tmp26_);
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->media_id = _data_->_tmp27_;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp28_ = NULL;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp28_ = _data_->media_id;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_data_->_tmp28_ != NULL) {
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp30_ = NULL;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp30_ = _data_->os_db;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp31_ = NULL;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp31_ = _data_->self->os;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp32_ = NULL;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp32_ = _data_->media_id;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp33_ = NULL;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp33_ = boxes_os_database_get_media_by_id (_data_->_tmp30_, _data_->_tmp31_, _data_->_tmp32_, &_data_->_inner_error_);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp29_ = _data_->_tmp33_;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			if (_data_->_inner_error_ != NULL) {
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_error_free (_data_->_inner_error_);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_g_free0 (_data_->media_id);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_g_free0 (_data_->os_id);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_g_free0 (_data_->_tmp10_);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				if (_data_->_state_ == 0) {
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2424 "installer-media.c"
				} else {
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 2428 "installer-media.c"
				}
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_object_unref (_data_->_async_result);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				return FALSE;
#line 2434 "installer-media.c"
			}
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_object_unref0 (_data_->self->os_media);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->self->os_media = _data_->_tmp29_;
#line 2440 "installer-media.c"
		}
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_free0 (_data_->media_id);
#line 2444 "installer-media.c"
	} else {
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp34_ = NULL;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp34_ = _data_->self->device_file;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp35_ = NULL;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp35_ = osinfo_media_new (_data_->_tmp34_, OSINFO_ARCHITECTURE_ALL);
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->media = _data_->_tmp35_;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp36_ = NULL;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp36_ = _data_->media;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp37_ = NULL;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp37_ = _data_->self->label;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_object_set (_data_->_tmp36_, "volume-id", _data_->_tmp37_, NULL);
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp38_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp38_ = _data_->device;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp39_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp39_ = g_strdup ("ID_FS_SYSTEM_ID");
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp40_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp40_ = g_strdup ("ID_FS_PUBLISHER_ID");
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp41_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp41_ = g_strdup ("ID_FS_APPLICATION_ID");
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp42_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp42_ = g_new0 (gchar*, 3 + 1);
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp42_[0] = _data_->_tmp39_;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp42_[1] = _data_->_tmp40_;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp42_[2] = _data_->_tmp41_;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp43_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp43__length1 = 0;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp43_ = _data_->_tmp42_;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp43__length1 = 3;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp44_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp44_ = g_strdup (OSINFO_MEDIA_PROP_SYSTEM_ID);
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp45_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp45_ = g_strdup (OSINFO_MEDIA_PROP_PUBLISHER_ID);
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp46_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp46_ = g_strdup (OSINFO_MEDIA_PROP_APPLICATION_ID);
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp47_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp47_ = g_new0 (gchar*, 3 + 1);
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp47_[0] = _data_->_tmp44_;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp47_[1] = _data_->_tmp45_;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp47_[2] = _data_->_tmp46_;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp48_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp48__length1 = 0;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp48_ = _data_->_tmp47_;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp48__length1 = 3;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp49_ = NULL;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp49_ = _data_->media;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		boxes_installer_media_get_decoded_udev_properties_for_media (_data_->self, _data_->_tmp38_, _data_->_tmp43_, 3, _data_->_tmp48_, 3, _data_->_tmp49_);
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp48_ = (_vala_array_free (_data_->_tmp48_, _data_->_tmp48__length1, (GDestroyNotify) g_free), NULL);
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp43_ = (_vala_array_free (_data_->_tmp43_, _data_->_tmp43__length1, (GDestroyNotify) g_free), NULL);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp51_ = NULL;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp51_ = _data_->os_db;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp52_ = NULL;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp52_ = _data_->media;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_state_ = 2;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		boxes_os_database_guess_os_from_install_media (_data_->_tmp51_, _data_->_tmp52_, boxes_installer_media_get_media_info_from_device_ready, _data_);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return FALSE;
#line 2554 "installer-media.c"
		_state_2:
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp53_ = NULL;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp53_ = boxes_os_database_guess_os_from_install_media_finish (_data_->_tmp51_, _data_->_res_, &_data_->_inner_error_);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp50_ = _data_->_tmp53_;
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_data_->_inner_error_ != NULL) {
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_error_free (_data_->_inner_error_);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_object_unref0 (_data_->media);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (_data_->os_id);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_free0 (_data_->_tmp10_);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			if (_data_->_state_ == 0) {
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2578 "installer-media.c"
			} else {
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 2582 "installer-media.c"
			}
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			g_object_unref (_data_->_async_result);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			return FALSE;
#line 2588 "installer-media.c"
		}
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_object_unref0 (_data_->self->os_media);
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->self->os_media = _data_->_tmp50_;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp54_ = NULL;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_data_->_tmp54_ = _data_->self->os_media;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		if (_data_->_tmp54_ != NULL) {
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp55_ = NULL;
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp55_ = _data_->self->os_media;
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp56_ = NULL;
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp56_ = osinfo_media_get_os (_data_->_tmp55_);
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp57_ = NULL;
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->_tmp57_ = _data_->_tmp56_;
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_g_object_unref0 (_data_->self->os);
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_data_->self->os = _data_->_tmp57_;
#line 2616 "installer-media.c"
		}
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_object_unref0 (_data_->media);
#line 2620 "installer-media.c"
	}
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->os_id);
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (_data_->_tmp10_);
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_data_->_state_ == 0) {
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2630 "installer-media.c"
	} else {
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2634 "installer-media.c"
	}
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_unref (_data_->_async_result);
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return FALSE;
#line 2640 "installer-media.c"
}


static void boxes_installer_media_get_decoded_udev_properties_for_media (BoxesInstallerMedia* self, GUdevDevice* device, gchar** udev_props, int udev_props_length1, gchar** media_props, int media_props_length1, OsinfoMedia* media) {
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (device != NULL);
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (media != NULL);
#line 2651 "installer-media.c"
	{
		gint i = 0;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		i = 0;
#line 2656 "installer-media.c"
		{
			gboolean _tmp0_ = FALSE;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp0_ = TRUE;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			while (TRUE) {
#line 2663 "installer-media.c"
				gboolean _tmp1_ = FALSE;
				gint _tmp3_ = 0;
				gchar** _tmp4_ = NULL;
				gint _tmp4__length1 = 0;
				gchar* val = NULL;
				GUdevDevice* _tmp5_ = NULL;
				gchar** _tmp6_ = NULL;
				gint _tmp6__length1 = 0;
				gint _tmp7_ = 0;
				const gchar* _tmp8_ = NULL;
				gchar* _tmp9_ = NULL;
				const gchar* _tmp10_ = NULL;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp1_ = _tmp0_;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				if (!_tmp1_) {
#line 2680 "installer-media.c"
					gint _tmp2_ = 0;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp2_ = i;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					i = _tmp2_ + 1;
#line 2686 "installer-media.c"
				}
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp0_ = FALSE;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp3_ = i;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp4_ = udev_props;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp4__length1 = udev_props_length1;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				if (!(_tmp3_ < _tmp4__length1)) {
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					break;
#line 2700 "installer-media.c"
				}
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp5_ = device;
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp6_ = udev_props;
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp6__length1 = udev_props_length1;
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp7_ = i;
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp8_ = _tmp6_[_tmp7_];
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp9_ = boxes_installer_media_get_decoded_udev_property (self, _tmp5_, _tmp8_);
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				val = _tmp9_;
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp10_ = val;
#line 214 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				if (_tmp10_ != NULL) {
#line 2720 "installer-media.c"
					OsinfoMedia* _tmp11_ = NULL;
					gchar** _tmp12_ = NULL;
					gint _tmp12__length1 = 0;
					gint _tmp13_ = 0;
					const gchar* _tmp14_ = NULL;
					const gchar* _tmp15_ = NULL;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp11_ = media;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp12_ = media_props;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp12__length1 = media_props_length1;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp13_ = i;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp14_ = _tmp12_[_tmp13_];
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp15_ = val;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					g_object_set ((GObject*) _tmp11_, _tmp14_, _tmp15_, NULL);
#line 2741 "installer-media.c"
				}
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_g_free0 (val);
#line 2745 "installer-media.c"
			}
		}
	}
}


static gchar string_get (const gchar* self, glong index) {
	gchar result = '\0';
	glong _tmp0_ = 0L;
	gchar _tmp1_ = '\0';
#line 965 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, '\0');
#line 966 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp0_ = index;
#line 966 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp1_ = ((gchar*) self)[_tmp0_];
#line 966 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	result = _tmp1_;
#line 966 "/home/zeenix/jhbuild/share/vala-0.22/vapi/glib-2.0.vapi"
	return result;
#line 2766 "installer-media.c"
}


static gchar* boxes_installer_media_get_decoded_udev_property (BoxesInstallerMedia* self, GUdevDevice* device, const gchar* property_name) {
	gchar* result = NULL;
	gchar* encoded = NULL;
	GUdevDevice* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* decoded = NULL;
	gchar* _tmp5_ = NULL;
#line 219 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 219 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (device != NULL, NULL);
#line 219 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (property_name != NULL, NULL);
#line 220 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = device;
#line 220 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = property_name;
#line 220 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = g_udev_device_get_property (_tmp0_, _tmp1_);
#line 220 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 220 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	encoded = _tmp3_;
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = encoded;
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_tmp4_ == NULL) {
#line 222 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		result = NULL;
#line 222 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_free0 (encoded);
#line 222 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		return result;
#line 2806 "installer-media.c"
	}
#line 224 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp5_ = g_strdup ("");
#line 224 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	decoded = _tmp5_;
#line 2812 "installer-media.c"
	{
		gint i = 0;
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		i = 0;
#line 2817 "installer-media.c"
		{
			gboolean _tmp6_ = FALSE;
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp6_ = TRUE;
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			while (TRUE) {
#line 2824 "installer-media.c"
				gboolean _tmp7_ = FALSE;
				gint _tmp8_ = 0;
				const gchar* _tmp9_ = NULL;
				gint _tmp10_ = 0;
				gint _tmp11_ = 0;
				guint8 x = 0U;
				const gchar* _tmp12_ = NULL;
				gint _tmp13_ = 0;
				const gchar* _tmp14_ = NULL;
				gint _tmp15_ = 0;
				gint _tmp16_ = 0;
				gchar* _tmp17_ = NULL;
				gchar* _tmp18_ = NULL;
				gint _tmp19_ = 0;
				gboolean _tmp20_ = FALSE;
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp7_ = _tmp6_;
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				if (!_tmp7_) {
#line 2844 "installer-media.c"
				}
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp6_ = FALSE;
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp8_ = i;
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp9_ = encoded;
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp10_ = strlen (_tmp9_);
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp11_ = _tmp10_;
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				if (!(_tmp8_ < _tmp11_)) {
#line 225 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					break;
#line 2860 "installer-media.c"
				}
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp12_ = encoded;
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp13_ = i;
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp14_ = encoded;
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp15_ = strlen (_tmp14_);
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp16_ = _tmp15_;
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp17_ = string_slice (_tmp12_, (glong) _tmp13_, (glong) _tmp16_);
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp18_ = _tmp17_;
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp19_ = sscanf (_tmp18_, "\\x%02x", &x);
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp20_ = _tmp19_ > 0;
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_g_free0 (_tmp18_);
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				if (_tmp20_) {
#line 2884 "installer-media.c"
					const gchar* _tmp21_ = NULL;
					guint8 _tmp22_ = 0U;
					gchar* _tmp23_ = NULL;
					gchar* _tmp24_ = NULL;
					gchar* _tmp25_ = NULL;
					gint _tmp26_ = 0;
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp21_ = decoded;
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp22_ = x;
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp23_ = g_strdup_printf ("%c", (gchar) _tmp22_);
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp24_ = _tmp23_;
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp25_ = g_strconcat (_tmp21_, _tmp24_, NULL);
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_g_free0 (decoded);
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					decoded = _tmp25_;
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_g_free0 (_tmp24_);
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp26_ = i;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					i = _tmp26_ + 4;
#line 2911 "installer-media.c"
				} else {
					const gchar* _tmp27_ = NULL;
					const gchar* _tmp28_ = NULL;
					gint _tmp29_ = 0;
					gchar _tmp30_ = '\0';
					gchar* _tmp31_ = NULL;
					gchar* _tmp32_ = NULL;
					gchar* _tmp33_ = NULL;
					gint _tmp34_ = 0;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp27_ = decoded;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp28_ = encoded;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp29_ = i;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp30_ = string_get (_tmp28_, (glong) _tmp29_);
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp31_ = g_strdup_printf ("%c", _tmp30_);
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp32_ = _tmp31_;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp33_ = g_strconcat (_tmp27_, _tmp32_, NULL);
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_g_free0 (decoded);
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					decoded = _tmp33_;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_g_free0 (_tmp32_);
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp34_ = i;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					i = _tmp34_ + 1;
#line 2945 "installer-media.c"
				}
			}
		}
	}
#line 237 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = decoded;
#line 237 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (encoded);
#line 237 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 2956 "installer-media.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 2963 "installer-media.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_list_free (self);
#line 2972 "installer-media.c"
}


static void boxes_installer_media_eject_cdrom_media (BoxesInstallerMedia* self, GVirConfigDomain* domain) {
	GList* devices = NULL;
	GVirConfigDomain* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GVirConfigDomain* _tmp14_ = NULL;
	GList* _tmp15_ = NULL;
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (self != NULL);
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_if_fail (domain != NULL);
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = domain;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = gvir_config_domain_get_devices (_tmp0_);
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	devices = _tmp1_;
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = devices;
#line 2995 "installer-media.c"
	{
		GList* device_collection = NULL;
		GList* device_it = NULL;
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		device_collection = _tmp2_;
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		for (device_it = device_collection; device_it != NULL; device_it = device_it->next) {
#line 3003 "installer-media.c"
			GVirConfigDomainDevice* _tmp3_ = NULL;
			GVirConfigDomainDevice* device = NULL;
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			_tmp3_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_it->data);
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
			device = _tmp3_;
#line 3010 "installer-media.c"
			{
				GVirConfigDomainDevice* _tmp4_ = NULL;
				GVirConfigDomainDisk* disk = NULL;
				GVirConfigDomainDevice* _tmp5_ = NULL;
				GVirConfigDomainDisk* _tmp6_ = NULL;
				GVirConfigDomainDiskGuestDeviceType disk_type = 0;
				GVirConfigDomainDisk* _tmp7_ = NULL;
				GVirConfigDomainDiskGuestDeviceType _tmp8_ = 0;
				GVirConfigDomainDiskGuestDeviceType _tmp9_ = 0;
#line 243 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp4_ = device;
#line 243 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gvir_config_domain_disk_get_type ())) {
#line 244 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_g_object_unref0 (device);
#line 244 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					continue;
#line 3028 "installer-media.c"
				}
#line 246 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp5_ = device;
#line 246 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gvir_config_domain_disk_get_type ()) ? ((GVirConfigDomainDisk*) _tmp5_) : NULL);
#line 246 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				disk = _tmp6_;
#line 247 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp7_ = disk;
#line 247 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp8_ = gvir_config_domain_disk_get_guest_device_type (_tmp7_);
#line 247 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				disk_type = _tmp8_;
#line 248 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_tmp9_ = disk_type;
#line 248 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				if (_tmp9_ == GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_CDROM) {
#line 3046 "installer-media.c"
					GVirConfigDomainDisk* _tmp10_ = NULL;
					gboolean _tmp11_ = FALSE;
					gboolean _tmp12_ = FALSE;
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp10_ = disk;
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					gvir_config_domain_disk_set_startup_policy (_tmp10_, GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_OPTIONAL);
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp11_ = boxes_installer_media_get_live (self);
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					_tmp12_ = _tmp11_;
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
					if (!_tmp12_) {
#line 3060 "installer-media.c"
						GVirConfigDomainDisk* _tmp13_ = NULL;
#line 253 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
						_tmp13_ = disk;
#line 253 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
						gvir_config_domain_disk_set_source (_tmp13_, "");
#line 3066 "installer-media.c"
					}
				}
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_g_object_unref0 (disk);
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
				_g_object_unref0 (device);
#line 3073 "installer-media.c"
			}
		}
	}
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp14_ = domain;
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp15_ = devices;
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	gvir_config_domain_set_devices (_tmp14_, _tmp15_);
#line 240 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	__g_list_free__g_object_unref0_0 (devices);
#line 3085 "installer-media.c"
}


BoxesInstallerMedia* boxes_installer_media_construct (GType object_type) {
	BoxesInstallerMedia * self = NULL;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self = (BoxesInstallerMedia*) g_object_new (object_type, NULL);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return self;
#line 3095 "installer-media.c"
}


BoxesInstallerMedia* boxes_installer_media_new (void) {
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return boxes_installer_media_construct (BOXES_TYPE_INSTALLER_MEDIA);
#line 3102 "installer-media.c"
}


OsinfoDeviceList* boxes_installer_media_get_supported_devices (BoxesInstallerMedia* self) {
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return BOXES_INSTALLER_MEDIA_GET_CLASS (self)->get_supported_devices (self);
#line 3111 "installer-media.c"
}


static OsinfoDeviceList* boxes_installer_media_real_get_supported_devices (BoxesInstallerMedia* base) {
	OsinfoDeviceList* result;
	BoxesInstallerMedia* self;
	OsinfoDeviceList* _tmp0_ = NULL;
	OsinfoOs* _tmp1_ = NULL;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self = base;
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = self->os;
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_tmp1_ != NULL) {
#line 3126 "installer-media.c"
		OsinfoOs* _tmp2_ = NULL;
		OsinfoDeviceList* _tmp3_ = NULL;
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp2_ = self->os;
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp3_ = osinfo_os_get_all_devices (_tmp2_, NULL);
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_object_unref0 (_tmp0_);
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp0_ = _tmp3_;
#line 3137 "installer-media.c"
	} else {
		OsinfoDeviceList* _tmp4_ = NULL;
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp4_ = osinfo_devicelist_new ();
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_object_unref0 (_tmp0_);
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp0_ = _tmp4_;
#line 3146 "installer-media.c"
	}
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = _tmp0_;
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 3152 "installer-media.c"
}


guint64 boxes_installer_media_get_installed_size (BoxesInstallerMedia* self) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, 0ULL);
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return BOXES_INSTALLER_MEDIA_GET_CLASS (self)->get_installed_size (self);
#line 3161 "installer-media.c"
}


static guint64 boxes_installer_media_real_get_installed_size (BoxesInstallerMedia* base) {
	guint64 result;
	BoxesInstallerMedia* self;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self = base;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = (guint64) 0;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 3174 "installer-media.c"
}


gboolean boxes_installer_media_get_need_user_input_for_vm_creation (BoxesInstallerMedia* self) {
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return BOXES_INSTALLER_MEDIA_GET_CLASS (self)->get_need_user_input_for_vm_creation (self);
#line 3183 "installer-media.c"
}


static gboolean boxes_installer_media_real_get_need_user_input_for_vm_creation (BoxesInstallerMedia* base) {
	gboolean result;
	BoxesInstallerMedia* self;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self = base;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = FALSE;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 3196 "installer-media.c"
}


gboolean boxes_installer_media_get_ready_to_create (BoxesInstallerMedia* self) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return BOXES_INSTALLER_MEDIA_GET_CLASS (self)->get_ready_to_create (self);
#line 3205 "installer-media.c"
}


static gboolean boxes_installer_media_real_get_ready_to_create (BoxesInstallerMedia* base) {
	gboolean result;
	BoxesInstallerMedia* self;
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self = base;
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = TRUE;
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 3218 "installer-media.c"
}


gboolean boxes_installer_media_get_supports_virtio_disk (BoxesInstallerMedia* self) {
	gboolean result;
	OsinfoDeviceList* _tmp0_ = NULL;
	OsinfoDeviceList* _tmp1_ = NULL;
	OsinfoDeviceList* _tmp2_ = NULL;
	OsinfoDevice* _tmp3_ = NULL;
	OsinfoDevice* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp0_ = boxes_installer_media_get_supported_devices (self);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = _tmp0_;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp2_ = _tmp1_;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp3_ = boxes_find_device_by_prop (_tmp2_, OSINFO_DEVICE_PROP_NAME, "virtio-block");
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp4_ = _tmp3_;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp5_ = _tmp4_ != NULL;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_tmp4_);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (_tmp2_);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = _tmp5_;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 3252 "installer-media.c"
}


gboolean boxes_installer_media_get_live (BoxesInstallerMedia* self) {
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return BOXES_INSTALLER_MEDIA_GET_CLASS (self)->get_live (self);
#line 3261 "installer-media.c"
}


static gboolean boxes_installer_media_real_get_live (BoxesInstallerMedia* base) {
	gboolean result;
	BoxesInstallerMedia* self;
	gboolean _tmp0_ = FALSE;
	OsinfoMedia* _tmp1_ = NULL;
	gboolean _tmp5_ = FALSE;
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self = base;
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = self->os_media;
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_tmp1_ == NULL) {
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp0_ = TRUE;
#line 3279 "installer-media.c"
	} else {
		OsinfoMedia* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp2_ = self->os_media;
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_object_get (_tmp2_, "live", &_tmp3_, NULL);
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp4_ = _tmp3_;
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp0_ = _tmp4_;
#line 3292 "installer-media.c"
	}
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp5_ = _tmp0_;
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = _tmp5_;
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 3300 "installer-media.c"
}


gchar* boxes_installer_media_get_architecture (BoxesInstallerMedia* self) {
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return BOXES_INSTALLER_MEDIA_GET_CLASS (self)->get_architecture (self);
#line 3309 "installer-media.c"
}


static gchar* boxes_installer_media_real_get_architecture (BoxesInstallerMedia* base) {
	gchar* result;
	BoxesInstallerMedia* self;
	gchar* _tmp0_ = NULL;
	OsinfoMedia* _tmp1_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self = base;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_tmp1_ = self->os_media;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	if (_tmp1_ != NULL) {
#line 3324 "installer-media.c"
		OsinfoMedia* _tmp2_ = NULL;
		gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp2_ = self->os_media;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_object_get (_tmp2_, "architecture", &_tmp3_, NULL);
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp4_ = _tmp3_;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_free0 (_tmp0_);
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp0_ = _tmp4_;
#line 3338 "installer-media.c"
	} else {
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_g_free0 (_tmp0_);
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		_tmp0_ = NULL;
#line 3344 "installer-media.c"
	}
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	result = _tmp0_;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	return result;
#line 3350 "installer-media.c"
}


static void boxes_installer_media_class_init (BoxesInstallerMediaClass * klass) {
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	boxes_installer_media_parent_class = g_type_class_peek_parent (klass);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->set_direct_boot_params = boxes_installer_media_real_set_direct_boot_params;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->prepare = boxes_installer_media_real_prepare;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->prepare_finish = boxes_installer_media_real_prepare_finish;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->prepare_for_installation = boxes_installer_media_real_prepare_for_installation;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->prepare_for_installation_finish = boxes_installer_media_real_prepare_for_installation_finish;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->prepare_to_continue_installation = boxes_installer_media_real_prepare_to_continue_installation;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->clean_up = boxes_installer_media_real_clean_up;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->clean_up_preparation_cache = boxes_installer_media_real_clean_up_preparation_cache;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->setup_domain_config = boxes_installer_media_real_setup_domain_config;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->setup_post_install_domain_config = boxes_installer_media_real_setup_post_install_domain_config;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->populate_setup_vbox = boxes_installer_media_real_populate_setup_vbox;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->get_vm_properties = boxes_installer_media_real_get_vm_properties;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->get_vm_creator = boxes_installer_media_real_get_vm_creator;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->get_supported_devices = boxes_installer_media_real_get_supported_devices;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->get_installed_size = boxes_installer_media_real_get_installed_size;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->get_need_user_input_for_vm_creation = boxes_installer_media_real_get_need_user_input_for_vm_creation;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->get_ready_to_create = boxes_installer_media_real_get_ready_to_create;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->get_live = boxes_installer_media_real_get_live;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->get_architecture = boxes_installer_media_real_get_architecture;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_installer_media_get_property;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_installer_media_finalize;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_INSTALLER_MEDIA_SUPPORTED_DEVICES, g_param_spec_object ("supported-devices", "supported-devices", "supported-devices", osinfo_devicelist_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_INSTALLER_MEDIA_INSTALLED_SIZE, g_param_spec_uint64 ("installed-size", "installed-size", "installed-size", 0, G_MAXUINT64, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_INSTALLER_MEDIA_NEED_USER_INPUT_FOR_VM_CREATION, g_param_spec_boolean ("need-user-input-for-vm-creation", "need-user-input-for-vm-creation", "need-user-input-for-vm-creation", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_INSTALLER_MEDIA_READY_TO_CREATE, g_param_spec_boolean ("ready-to-create", "ready-to-create", "ready-to-create", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_INSTALLER_MEDIA_SUPPORTS_VIRTIO_DISK, g_param_spec_boolean ("supports-virtio-disk", "supports-virtio-disk", "supports-virtio-disk", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_INSTALLER_MEDIA_LIVE, g_param_spec_boolean ("live", "live", "live", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_INSTALLER_MEDIA_ARCHITECTURE, g_param_spec_string ("architecture", "architecture", "architecture", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	g_signal_new ("user_wants_to_create", BOXES_TYPE_INSTALLER_MEDIA, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 3415 "installer-media.c"
}


static void boxes_installer_media_instance_init (BoxesInstallerMedia * self) {
}


static void boxes_installer_media_finalize (GObject* obj) {
	BoxesInstallerMedia * self;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMedia);
#line 8 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (self->os);
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (self->resources);
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_object_unref0 (self->os_media);
#line 11 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (self->label);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (self->device_file);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	_g_free0 (self->mount_point);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	G_OBJECT_CLASS (boxes_installer_media_parent_class)->finalize (obj);
#line 3441 "installer-media.c"
}


GType boxes_installer_media_get_type (void) {
	static volatile gsize boxes_installer_media_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_installer_media_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesInstallerMediaClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_installer_media_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesInstallerMedia), 0, (GInstanceInitFunc) boxes_installer_media_instance_init, NULL };
		GType boxes_installer_media_type_id;
		boxes_installer_media_type_id = g_type_register_static (G_TYPE_OBJECT, "BoxesInstallerMedia", &g_define_type_info, 0);
		g_once_init_leave (&boxes_installer_media_type_id__volatile, boxes_installer_media_type_id);
	}
	return boxes_installer_media_type_id__volatile;
}


static void _vala_boxes_installer_media_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesInstallerMedia * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMedia);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
	switch (property_id) {
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case BOXES_INSTALLER_MEDIA_SUPPORTED_DEVICES:
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_value_take_object (value, boxes_installer_media_get_supported_devices (self));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		break;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case BOXES_INSTALLER_MEDIA_INSTALLED_SIZE:
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_value_set_uint64 (value, boxes_installer_media_get_installed_size (self));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		break;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case BOXES_INSTALLER_MEDIA_NEED_USER_INPUT_FOR_VM_CREATION:
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_value_set_boolean (value, boxes_installer_media_get_need_user_input_for_vm_creation (self));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		break;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case BOXES_INSTALLER_MEDIA_READY_TO_CREATE:
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_value_set_boolean (value, boxes_installer_media_get_ready_to_create (self));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		break;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case BOXES_INSTALLER_MEDIA_SUPPORTS_VIRTIO_DISK:
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_value_set_boolean (value, boxes_installer_media_get_supports_virtio_disk (self));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		break;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case BOXES_INSTALLER_MEDIA_LIVE:
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_value_set_boolean (value, boxes_installer_media_get_live (self));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		break;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		case BOXES_INSTALLER_MEDIA_ARCHITECTURE:
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		g_value_take_string (value, boxes_installer_media_get_architecture (self));
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		break;
#line 3504 "installer-media.c"
		default:
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/installer-media.vala"
		break;
#line 3510 "installer-media.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/collection-view.vala"
	if ((array != NULL) && (destroy_func != NULL)) {
#line 3518 "installer-media.c"
		int i;
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/collection-view.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/collection-view.vala"
			if (((gpointer*) array)[i] != NULL) {
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/collection-view.vala"
				destroy_func (((gpointer*) array)[i]);
#line 3526 "installer-media.c"
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/collection-view.vala"
	_vala_array_destroy (array, array_length, destroy_func);
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/collection-view.vala"
	g_free (array);
#line 3538 "installer-media.c"
}



