/* unattended-file.c generated by valac 0.39.5, the Vala compiler
 * generated from unattended-file.vala, do not modify */

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

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <libcommon.h>
#include <archive.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <osinfo/osinfo.h>
#include <gdk-pixbuf/gdk-pixbuf.h>


#define BOXES_TYPE_UNATTENDED_FILE (boxes_unattended_file_get_type ())
#define BOXES_UNATTENDED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UNATTENDED_FILE, BoxesUnattendedFile))
#define BOXES_IS_UNATTENDED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UNATTENDED_FILE))
#define BOXES_UNATTENDED_FILE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_UNATTENDED_FILE, BoxesUnattendedFileIface))

typedef struct _BoxesUnattendedFile BoxesUnattendedFile;
typedef struct _BoxesUnattendedFileIface BoxesUnattendedFileIface;

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

#define BOXES_TYPE_UNATTENDED_INSTALLER (boxes_unattended_installer_get_type ())
#define BOXES_UNATTENDED_INSTALLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstaller))
#define BOXES_UNATTENDED_INSTALLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstallerClass))
#define BOXES_IS_UNATTENDED_INSTALLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UNATTENDED_INSTALLER))
#define BOXES_IS_UNATTENDED_INSTALLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_UNATTENDED_INSTALLER))
#define BOXES_UNATTENDED_INSTALLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstallerClass))

typedef struct _BoxesUnattendedInstaller BoxesUnattendedInstaller;
typedef struct _BoxesUnattendedInstallerClass BoxesUnattendedInstallerClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block83Data Block83Data;
#define _g_free0(var) (var = (g_free (var), NULL))

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

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

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

typedef struct _BoxesCollection BoxesCollection;
typedef struct _BoxesCollectionClass BoxesCollectionClass;
typedef struct _BoxesUnattendedFileCopyData BoxesUnattendedFileCopyData;

#define BOXES_TYPE_ARCHIVE_READER (boxes_archive_reader_get_type ())
#define BOXES_ARCHIVE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_ARCHIVE_READER, BoxesArchiveReader))
#define BOXES_ARCHIVE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_ARCHIVE_READER, BoxesArchiveReaderClass))
#define BOXES_IS_ARCHIVE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_ARCHIVE_READER))
#define BOXES_IS_ARCHIVE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_ARCHIVE_READER))
#define BOXES_ARCHIVE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_ARCHIVE_READER, BoxesArchiveReaderClass))

typedef struct _BoxesArchiveReader BoxesArchiveReader;
typedef struct _BoxesArchiveReaderClass BoxesArchiveReaderClass;

#define BOXES_TYPE_ARCHIVE_WRITER (boxes_archive_writer_get_type ())
#define BOXES_ARCHIVE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_ARCHIVE_WRITER, BoxesArchiveWriter))
#define BOXES_ARCHIVE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_ARCHIVE_WRITER, BoxesArchiveWriterClass))
#define BOXES_IS_ARCHIVE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_ARCHIVE_WRITER))
#define BOXES_IS_ARCHIVE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_ARCHIVE_WRITER))
#define BOXES_ARCHIVE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_ARCHIVE_WRITER, BoxesArchiveWriterClass))

typedef struct _BoxesArchiveWriter BoxesArchiveWriter;
typedef struct _BoxesArchiveWriterClass BoxesArchiveWriterClass;
typedef struct _BoxesUnattendedFileCopyWithMcopyData BoxesUnattendedFileCopyWithMcopyData;
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;
typedef struct _BoxesUnattendedInstallerPrivate BoxesUnattendedInstallerPrivate;

#define BOXES_TYPE_UNATTENDED_SETUP_BOX (boxes_unattended_setup_box_get_type ())
#define BOXES_UNATTENDED_SETUP_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UNATTENDED_SETUP_BOX, BoxesUnattendedSetupBox))
#define BOXES_UNATTENDED_SETUP_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_UNATTENDED_SETUP_BOX, BoxesUnattendedSetupBoxClass))
#define BOXES_IS_UNATTENDED_SETUP_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UNATTENDED_SETUP_BOX))
#define BOXES_IS_UNATTENDED_SETUP_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_UNATTENDED_SETUP_BOX))
#define BOXES_UNATTENDED_SETUP_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_UNATTENDED_SETUP_BOX, BoxesUnattendedSetupBoxClass))

typedef struct _BoxesUnattendedSetupBox BoxesUnattendedSetupBox;
typedef struct _BoxesUnattendedSetupBoxClass BoxesUnattendedSetupBoxClass;

#define BOXES_TYPE_UNATTENDED_RAW_FILE (boxes_unattended_raw_file_get_type ())
#define BOXES_UNATTENDED_RAW_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UNATTENDED_RAW_FILE, BoxesUnattendedRawFile))
#define BOXES_UNATTENDED_RAW_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_UNATTENDED_RAW_FILE, BoxesUnattendedRawFileClass))
#define BOXES_IS_UNATTENDED_RAW_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UNATTENDED_RAW_FILE))
#define BOXES_IS_UNATTENDED_RAW_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_UNATTENDED_RAW_FILE))
#define BOXES_UNATTENDED_RAW_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_UNATTENDED_RAW_FILE, BoxesUnattendedRawFileClass))

typedef struct _BoxesUnattendedRawFile BoxesUnattendedRawFile;
typedef struct _BoxesUnattendedRawFileClass BoxesUnattendedRawFileClass;
typedef struct _BoxesUnattendedRawFilePrivate BoxesUnattendedRawFilePrivate;
enum  {
	BOXES_UNATTENDED_RAW_FILE_0_PROPERTY,
	BOXES_UNATTENDED_RAW_FILE_DEST_NAME_PROPERTY,
	BOXES_UNATTENDED_RAW_FILE_SRC_PATH_PROPERTY,
	BOXES_UNATTENDED_RAW_FILE_INSTALLER_PROPERTY,
	BOXES_UNATTENDED_RAW_FILE_NUM_PROPERTIES
};
static GParamSpec* boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_NUM_PROPERTIES];
typedef struct _BoxesUnattendedRawFileGetSourceFileData BoxesUnattendedRawFileGetSourceFileData;

#define BOXES_TYPE_UNATTENDED_SCRIPT_FILE (boxes_unattended_script_file_get_type ())
#define BOXES_UNATTENDED_SCRIPT_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UNATTENDED_SCRIPT_FILE, BoxesUnattendedScriptFile))
#define BOXES_UNATTENDED_SCRIPT_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_UNATTENDED_SCRIPT_FILE, BoxesUnattendedScriptFileClass))
#define BOXES_IS_UNATTENDED_SCRIPT_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UNATTENDED_SCRIPT_FILE))
#define BOXES_IS_UNATTENDED_SCRIPT_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_UNATTENDED_SCRIPT_FILE))
#define BOXES_UNATTENDED_SCRIPT_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_UNATTENDED_SCRIPT_FILE, BoxesUnattendedScriptFileClass))

typedef struct _BoxesUnattendedScriptFile BoxesUnattendedScriptFile;
typedef struct _BoxesUnattendedScriptFileClass BoxesUnattendedScriptFileClass;
typedef struct _BoxesUnattendedScriptFilePrivate BoxesUnattendedScriptFilePrivate;
enum  {
	BOXES_UNATTENDED_SCRIPT_FILE_0_PROPERTY,
	BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME_PROPERTY,
	BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH_PROPERTY,
	BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD_PROPERTY,
	BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER_PROPERTY,
	BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT_PROPERTY,
	BOXES_UNATTENDED_SCRIPT_FILE_NUM_PROPERTIES
};
static GParamSpec* boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_NUM_PROPERTIES];
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesUnattendedScriptFileGetSourceFileData BoxesUnattendedScriptFileGetSourceFileData;

#define BOXES_TYPE_UNATTENDED_AVATAR_FILE (boxes_unattended_avatar_file_get_type ())
#define BOXES_UNATTENDED_AVATAR_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UNATTENDED_AVATAR_FILE, BoxesUnattendedAvatarFile))
#define BOXES_UNATTENDED_AVATAR_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_UNATTENDED_AVATAR_FILE, BoxesUnattendedAvatarFileClass))
#define BOXES_IS_UNATTENDED_AVATAR_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UNATTENDED_AVATAR_FILE))
#define BOXES_IS_UNATTENDED_AVATAR_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_UNATTENDED_AVATAR_FILE))
#define BOXES_UNATTENDED_AVATAR_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_UNATTENDED_AVATAR_FILE, BoxesUnattendedAvatarFileClass))

typedef struct _BoxesUnattendedAvatarFile BoxesUnattendedAvatarFile;
typedef struct _BoxesUnattendedAvatarFileClass BoxesUnattendedAvatarFileClass;
typedef struct _BoxesUnattendedAvatarFilePrivate BoxesUnattendedAvatarFilePrivate;
enum  {
	BOXES_UNATTENDED_AVATAR_FILE_0_PROPERTY,
	BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME_PROPERTY,
	BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH_PROPERTY,
	BOXES_UNATTENDED_AVATAR_FILE_INSTALLER_PROPERTY,
	BOXES_UNATTENDED_AVATAR_FILE_NUM_PROPERTIES
};
static GParamSpec* boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_NUM_PROPERTIES];
#define __vala_GdkPixbufFormat_free0(var) ((var == NULL) ? NULL : (var = (_vala_GdkPixbufFormat_free (var), NULL)))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))
typedef struct _BoxesUnattendedAvatarFileGetSourceFileData BoxesUnattendedAvatarFileGetSourceFileData;

struct _BoxesUnattendedFileIface {
	GTypeInterface parent_iface;
	void (*get_source_file) (BoxesUnattendedFile* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GFile* (*get_source_file_finish) (BoxesUnattendedFile* self, GAsyncResult* _res_, GError** error);
	const gchar* (*get_src_path) (BoxesUnattendedFile* self);
	void (*set_src_path) (BoxesUnattendedFile* self, const gchar* value);
	const gchar* (*get_dest_name) (BoxesUnattendedFile* self);
	void (*set_dest_name) (BoxesUnattendedFile* self, const gchar* value);
	gchar* (*get_disk_file) (BoxesUnattendedFile* self);
	BoxesUnattendedInstaller* (*get_installer) (BoxesUnattendedFile* self);
	void (*set_installer) (BoxesUnattendedFile* self, BoxesUnattendedInstaller* value);
};

struct _Block83Data {
	int _ref_count_;
	BoxesUnattendedFile* self;
	GFile* source_file;
	gpointer _async_data_;
};

struct _BoxesApp {
	GtkApplication parent_instance;
	BoxesAppPrivate * priv;
	BoxesCollection* collection;
	BoxesAsyncLauncher* async_launcher;
};

struct _BoxesAppClass {
	GtkApplicationClass parent_class;
};

struct _BoxesUnattendedFileCopyData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	BoxesUnattendedFile* self;
	GCancellable* cancellable;
	Block83Data* _data83_;
	GFile* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gboolean _tmp9_;
	BoxesApp* _tmp10_;
	BoxesAsyncLauncher* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	GFile* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	const gchar* _tmp18_;
	const gchar* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	gchar* _tmp24_;
	GError * _inner_error_;
};

struct _BoxesUnattendedFileCopyWithMcopyData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	BoxesUnattendedFile* self;
	gchar* disk_file;
	gchar* source_file;
	gchar* dest_name;
	GCancellable* cancellable;
	gchar** argv;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar** _tmp7_;
	gint argv_length1;
	gint _argv_size_;
	GError * _inner_error_;
};

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_);
	gboolean (*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_);
	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_box) (BoxesInstallerMedia* self, GtkBox* setup_box);
	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);
	gboolean (*get_eject_after_install) (BoxesInstallerMedia* self);
	gchar* (*get_architecture) (BoxesInstallerMedia* self);
};

struct _BoxesUnattendedInstaller {
	BoxesInstallerMedia parent_instance;
	BoxesUnattendedInstallerPrivate * priv;
	BoxesUnattendedSetupBox* setup_box;
	GFile* disk_file;
	GFile* secondary_disk_file;
	GFile* kernel_file;
	GFile* initrd_file;
	OsinfoInstallConfig* config;
	OsinfoInstallScriptList* scripts;
};

struct _BoxesUnattendedInstallerClass {
	BoxesInstallerMediaClass parent_class;
};

struct _BoxesUnattendedRawFile {
	GObject parent_instance;
	BoxesUnattendedRawFilePrivate * priv;
};

struct _BoxesUnattendedRawFileClass {
	GObjectClass parent_class;
};

struct _BoxesUnattendedRawFilePrivate {
	gchar* _dest_name;
	gchar* _src_path;
	BoxesUnattendedInstaller* _installer;
};

struct _BoxesUnattendedRawFileGetSourceFileData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	BoxesUnattendedRawFile* self;
	GCancellable* cancellable;
	GFile* result;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	GFile* _tmp2_;
};

struct _BoxesUnattendedScriptFile {
	GObject parent_instance;
	BoxesUnattendedScriptFilePrivate * priv;
};

struct _BoxesUnattendedScriptFileClass {
	GObjectClass parent_class;
};

struct _BoxesUnattendedScriptFilePrivate {
	gchar* _dest_name;
	gchar* _src_path;
	OsinfoInstallScriptInjectionMethod _injection_method;
	BoxesUnattendedInstaller* _installer;
	OsinfoInstallScript* _script;
	GFile* unattended_tmp;
};

struct _BoxesUnattendedScriptFileGetSourceFileData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	BoxesUnattendedScriptFile* self;
	GCancellable* cancellable;
	GFile* result;
	BoxesUnattendedInstaller* _tmp0_;
	BoxesUnattendedInstaller* _tmp1_;
	OsinfoInstallScript* _tmp2_;
	GFile* output_dir;
	gchar* _tmp3_;
	gchar* _tmp4_;
	GFile* _tmp5_;
	GFile* _tmp6_;
	GFile* _tmp7_;
	OsinfoInstallScript* _tmp8_;
	BoxesUnattendedInstaller* _tmp9_;
	BoxesUnattendedInstaller* _tmp10_;
	OsinfoMedia* _tmp11_;
	BoxesUnattendedInstaller* _tmp12_;
	BoxesUnattendedInstaller* _tmp13_;
	OsinfoInstallConfig* _tmp14_;
	GFile* _tmp15_;
	GFile* _tmp16_;
	GFile* _tmp17_;
	GFile* _tmp18_;
	GError * _inner_error_;
};

struct _BoxesUnattendedAvatarFile {
	GObject parent_instance;
	BoxesUnattendedAvatarFilePrivate * priv;
};

struct _BoxesUnattendedAvatarFileClass {
	GObjectClass parent_class;
};

struct _BoxesUnattendedAvatarFilePrivate {
	gchar* _dest_name;
	gchar* _src_path;
	BoxesUnattendedInstaller* _installer;
	GFile* unattended_tmp;
	OsinfoAvatarFormat* avatar_format;
	GdkPixbufFormat* pixbuf_format;
};

struct _BoxesUnattendedAvatarFileGetSourceFileData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	BoxesUnattendedAvatarFile* self;
	GCancellable* cancellable;
	GFile* result;
	gchar* destination_path;
	BoxesUnattendedInstaller* _tmp0_;
	BoxesUnattendedInstaller* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gint _tmp5_;
	OsinfoAvatarFormat* _tmp6_;
	OsinfoAvatarFormat* _tmp7_;
	gint _tmp8_;
	gint _tmp9_;
	gint width;
	gint _tmp10_;
	OsinfoAvatarFormat* _tmp11_;
	OsinfoAvatarFormat* _tmp12_;
	gint _tmp13_;
	gint _tmp14_;
	gint height;
	GdkPixbuf* pixbuf;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	gint _tmp17_;
	gint _tmp18_;
	GdkPixbuf* _tmp19_;
	gboolean _tmp20_;
	gboolean _tmp21_;
	OsinfoAvatarFormat* _tmp22_;
	OsinfoAvatarFormat* _tmp23_;
	gboolean _tmp24_;
	gboolean _tmp25_;
	GdkPixbuf* _tmp26_;
	GdkPixbuf* _tmp27_;
	GdkPixbuf* _tmp28_;
	const gchar* _tmp29_;
	GdkPixbuf* _tmp30_;
	const gchar* _tmp31_;
	GdkPixbufFormat* _tmp32_;
	gchar* _tmp33_;
	gchar* _tmp34_;
	const gchar* _tmp35_;
	GError* _error_;
	GError* _tmp36_;
	const gchar* _tmp37_;
	const gchar* _tmp38_;
	GFile* _tmp39_;
	GFile* _tmp40_;
	GFile* _tmp41_;
	GError * _inner_error_;
};


extern BoxesApp* boxes_app_app;
static gpointer boxes_unattended_raw_file_parent_class = NULL;
static BoxesUnattendedFileIface * boxes_unattended_raw_file_boxes_unattended_file_parent_iface = NULL;
static gpointer boxes_unattended_script_file_parent_class = NULL;
static BoxesUnattendedFileIface * boxes_unattended_script_file_boxes_unattended_file_parent_iface = NULL;
static gpointer boxes_unattended_avatar_file_parent_class = NULL;
static BoxesUnattendedFileIface * boxes_unattended_avatar_file_boxes_unattended_file_parent_iface = NULL;

GType boxes_installer_media_get_type (void) G_GNUC_CONST;
GType boxes_unattended_installer_get_type (void) G_GNUC_CONST;
GType boxes_unattended_file_get_type (void) G_GNUC_CONST;
static void boxes_unattended_file_copy_data_free (gpointer _data);
void boxes_unattended_file_copy (BoxesUnattendedFile* self,
                                 GCancellable* cancellable,
                                 GAsyncReadyCallback _callback_,
                                 gpointer _user_data_);
void boxes_unattended_file_copy_finish (BoxesUnattendedFile* self,
                                        GAsyncResult* _res_,
                                        GError** error);
static gboolean boxes_unattended_file_copy_co (BoxesUnattendedFileCopyData* _data_);
static Block83Data* block83_data_ref (Block83Data* _data83_);
static void block83_data_unref (void * _userdata_);
void boxes_unattended_file_get_source_file (BoxesUnattendedFile* self,
                                            GCancellable* cancellable,
                                            GAsyncReadyCallback _callback_,
                                            gpointer _user_data_);
GFile* boxes_unattended_file_get_source_file_finish (BoxesUnattendedFile* self,
                                                     GAsyncResult* _res_,
                                                     GError** error);
static void boxes_unattended_file_copy_ready (GObject* source_object,
                                       GAsyncResult* _res_,
                                       gpointer _user_data_);
const gchar* boxes_unattended_file_get_dest_name (BoxesUnattendedFile* self);
gchar* boxes_unattended_file_get_disk_file (BoxesUnattendedFile* self);
static gboolean boxes_unattended_file_is_libarchive_compatible (const gchar* filename);
GType boxes_app_get_type (void) G_GNUC_CONST;
GType boxes_collection_get_type (void) G_GNUC_CONST;
static void ___lambda30_ (Block83Data* _data83_,
                   GError** error);
static void boxes_unattended_file_copy_with_libarchive (BoxesUnattendedFile* self,
                                                 const gchar* disk_file,
                                                 const gchar* source_file,
                                                 const gchar* dest_name,
                                                 GError** error);
static void ____lambda30__boxes_async_launcher_run_in_thread_func (gpointer self,
                                                            GError** error);
static void boxes_unattended_file_copy_with_mcopy (BoxesUnattendedFile* self,
                                            const gchar* disk_file,
                                            const gchar* source_file,
                                            const gchar* dest_name,
                                            GCancellable* cancellable,
                                            GAsyncReadyCallback _callback_,
                                            gpointer _user_data_);
static void boxes_unattended_file_copy_with_mcopy_finish (BoxesUnattendedFile* self,
                                                   GAsyncResult* _res_,
                                                   GError** error);
GType boxes_archive_reader_get_type (void) G_GNUC_CONST;
BoxesArchiveReader* boxes_archive_reader_new (const gchar* filename,
                                              int* format,
                                              GList* filters,
                                              GError** error);
BoxesArchiveReader* boxes_archive_reader_construct (GType object_type,
                                                    const gchar* filename,
                                                    int* format,
                                                    GList* filters,
                                                    GError** error);
GType boxes_archive_writer_get_type (void) G_GNUC_CONST;
BoxesArchiveWriter* boxes_archive_writer_new_from_archive_reader (BoxesArchiveReader* archive_reader,
                                                                  const gchar* filename,
                                                                  gboolean import_contents,
                                                                  GError** error);
BoxesArchiveWriter* boxes_archive_writer_construct_from_archive_reader (GType object_type,
                                                                        BoxesArchiveReader* archive_reader,
                                                                        const gchar* filename,
                                                                        gboolean import_contents,
                                                                        GError** error);
void boxes_archive_writer_import_read_archive (BoxesArchiveWriter* self,
                                               BoxesArchiveReader* archive_reader,
                                               gchar** omit_files,
                                               int omit_files_length1,
                                               gboolean omit_hardlinked_files,
                                               GError** error);
void boxes_archive_writer_insert_file (BoxesArchiveWriter* self,
                                       const gchar* src,
                                       const gchar* dest,
                                       GError** error);
static void boxes_unattended_file_copy_with_mcopy_data_free (gpointer _data);
static gboolean boxes_unattended_file_copy_with_mcopy_co (BoxesUnattendedFileCopyWithMcopyData* _data_);
static void boxes_unattended_file_copy_with_mcopy_ready (GObject* source_object,
                                                  GAsyncResult* _res_,
                                                  gpointer _user_data_);
const gchar* boxes_unattended_file_get_src_path (BoxesUnattendedFile* self);
void boxes_unattended_file_set_src_path (BoxesUnattendedFile* self,
                                         const gchar* value);
void boxes_unattended_file_set_dest_name (BoxesUnattendedFile* self,
                                          const gchar* value);
BoxesUnattendedInstaller* boxes_unattended_file_get_installer (BoxesUnattendedFile* self);
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;
GType boxes_unattended_setup_box_get_type (void) G_GNUC_CONST;
void boxes_unattended_file_set_installer (BoxesUnattendedFile* self,
                                          BoxesUnattendedInstaller* value);
GType boxes_unattended_raw_file_get_type (void) G_GNUC_CONST;
#define BOXES_UNATTENDED_RAW_FILE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_UNATTENDED_RAW_FILE, BoxesUnattendedRawFilePrivate))
BoxesUnattendedRawFile* boxes_unattended_raw_file_new (BoxesUnattendedInstaller* installer,
                                                       const gchar* src_path,
                                                       const gchar* dest_name);
BoxesUnattendedRawFile* boxes_unattended_raw_file_construct (GType object_type,
                                                             BoxesUnattendedInstaller* installer,
                                                             const gchar* src_path,
                                                             const gchar* dest_name);
static void boxes_unattended_raw_file_real_get_source_file_data_free (gpointer _data);
static void boxes_unattended_raw_file_real_get_source_file (BoxesUnattendedFile* base,
                                                     GCancellable* cancellable,
                                                     GAsyncReadyCallback _callback_,
                                                     gpointer _user_data_);
static gboolean boxes_unattended_raw_file_real_get_source_file_co (BoxesUnattendedRawFileGetSourceFileData* _data_);
static void boxes_unattended_raw_file_finalize (GObject * obj);
static void _vala_boxes_unattended_raw_file_get_property (GObject * object,
                                                   guint property_id,
                                                   GValue * value,
                                                   GParamSpec * pspec);
static void _vala_boxes_unattended_raw_file_set_property (GObject * object,
                                                   guint property_id,
                                                   const GValue * value,
                                                   GParamSpec * pspec);
GType boxes_unattended_script_file_get_type (void) G_GNUC_CONST;
#define BOXES_UNATTENDED_SCRIPT_FILE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_UNATTENDED_SCRIPT_FILE, BoxesUnattendedScriptFilePrivate))
BoxesUnattendedScriptFile* boxes_unattended_script_file_new (BoxesUnattendedInstaller* installer,
                                                             OsinfoInstallScript* script,
                                                             const gchar* dest_name,
                                                             GError** error);
BoxesUnattendedScriptFile* boxes_unattended_script_file_construct (GType object_type,
                                                                   BoxesUnattendedInstaller* installer,
                                                                   OsinfoInstallScript* script,
                                                                   const gchar* dest_name,
                                                                   GError** error);
void boxes_unattended_script_file_set_script (BoxesUnattendedScriptFile* self,
                                              OsinfoInstallScript* value);
void boxes_unattended_script_file_set_injection_method (BoxesUnattendedScriptFile* self,
                                                        OsinfoInstallScriptInjectionMethod value);
static void boxes_unattended_script_file_real_get_source_file_data_free (gpointer _data);
static void boxes_unattended_script_file_real_get_source_file (BoxesUnattendedFile* base,
                                                        GCancellable* cancellable,
                                                        GAsyncReadyCallback _callback_,
                                                        gpointer _user_data_);
static gboolean boxes_unattended_script_file_real_get_source_file_co (BoxesUnattendedScriptFileGetSourceFileData* _data_);
void boxes_unattended_installer_configure_install_script (BoxesUnattendedInstaller* self,
                                                          OsinfoInstallScript* script);
OsinfoInstallScript* boxes_unattended_script_file_get_script (BoxesUnattendedScriptFile* self);
static void boxes_unattended_script_file_get_source_file_ready (GObject* source_object,
                                                         GAsyncResult* _res_,
                                                         gpointer _user_data_);
OsinfoInstallScriptInjectionMethod boxes_unattended_script_file_get_injection_method (BoxesUnattendedScriptFile* self);
static void boxes_unattended_script_file_finalize (GObject * obj);
static void _vala_boxes_unattended_script_file_get_property (GObject * object,
                                                      guint property_id,
                                                      GValue * value,
                                                      GParamSpec * pspec);
static void _vala_boxes_unattended_script_file_set_property (GObject * object,
                                                      guint property_id,
                                                      const GValue * value,
                                                      GParamSpec * pspec);
GType boxes_unattended_avatar_file_get_type (void) G_GNUC_CONST;
#define BOXES_UNATTENDED_AVATAR_FILE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_UNATTENDED_AVATAR_FILE, BoxesUnattendedAvatarFilePrivate))
static void _vala_GdkPixbufFormat_free (GdkPixbufFormat* self);
BoxesUnattendedAvatarFile* boxes_unattended_avatar_file_new (BoxesUnattendedInstaller* installer,
                                                             const gchar* src_path,
                                                             OsinfoAvatarFormat* avatar_format,
                                                             GError** error);
BoxesUnattendedAvatarFile* boxes_unattended_avatar_file_construct (GType object_type,
                                                                   BoxesUnattendedInstaller* installer,
                                                                   const gchar* src_path,
                                                                   OsinfoAvatarFormat* avatar_format,
                                                                   GError** error);
static gboolean _vala_string_array_contains (gchar* * stack,
                                      int stack_length,
                                      gchar* needle);
static GdkPixbufFormat* _vala_GdkPixbufFormat_copy (GdkPixbufFormat* self);
const gchar* boxes_unattended_setup_box_get_username (BoxesUnattendedSetupBox* self);
static void boxes_unattended_avatar_file_real_get_source_file_data_free (gpointer _data);
static void boxes_unattended_avatar_file_real_get_source_file (BoxesUnattendedFile* base,
                                                        GCancellable* cancellable,
                                                        GAsyncReadyCallback _callback_,
                                                        gpointer _user_data_);
static gboolean boxes_unattended_avatar_file_real_get_source_file_co (BoxesUnattendedAvatarFileGetSourceFileData* _data_);
gchar* boxes_unattended_installer_get_user_unattended (BoxesUnattendedInstaller* self,
                                                       const gchar* suffix);
GdkPixbuf* boxes_remove_alpha (GdkPixbuf* pixbuf);
static void boxes_unattended_avatar_file_finalize (GObject * obj);
static void _vala_boxes_unattended_avatar_file_get_property (GObject * object,
                                                      guint property_id,
                                                      GValue * value,
                                                      GParamSpec * pspec);
static void _vala_boxes_unattended_avatar_file_set_property (GObject * object,
                                                      guint property_id,
                                                      const 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 gint _vala_array_length (gpointer array);


static void
boxes_unattended_file_copy_data_free (gpointer _data)
{
	BoxesUnattendedFileCopyData* _data_;
	_data_ = _data;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_slice_free (BoxesUnattendedFileCopyData, _data_);
#line 708 "unattended-file.c"
}


static gpointer
_g_object_ref0 (gpointer self)
{
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return self ? g_object_ref (self) : NULL;
#line 717 "unattended-file.c"
}


void
boxes_unattended_file_copy (BoxesUnattendedFile* self,
                            GCancellable* cancellable,
                            GAsyncReadyCallback _callback_,
                            gpointer _user_data_)
{
	BoxesUnattendedFileCopyData* _data_;
	BoxesUnattendedFile* _tmp0_;
	GCancellable* _tmp1_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_slice_new0 (BoxesUnattendedFileCopyData);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, _callback_, _user_data_);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_unattended_file_copy_data_free);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->self = _tmp0_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = _g_object_ref0 (cancellable);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->cancellable = _tmp1_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_co (_data_);
#line 748 "unattended-file.c"
}


void
boxes_unattended_file_copy_finish (BoxesUnattendedFile* self,
                                   GAsyncResult* _res_,
                                   GError** error)
{
	BoxesUnattendedFileCopyData* _data_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (NULL == _data_) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return;
#line 764 "unattended-file.c"
	}
}


static Block83Data*
block83_data_ref (Block83Data* _data83_)
{
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_atomic_int_inc (&_data83_->_ref_count_);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return _data83_;
#line 776 "unattended-file.c"
}


static void
block83_data_unref (void * _userdata_)
{
	Block83Data* _data83_;
	_data83_ = (Block83Data*) _userdata_;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (g_atomic_int_dec_and_test (&_data83_->_ref_count_)) {
#line 787 "unattended-file.c"
		BoxesUnattendedFile* self;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self = _data83_->self;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (_data83_->source_file);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (self);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_slice_free (Block83Data, _data83_);
#line 797 "unattended-file.c"
	}
}


static void
boxes_unattended_file_copy_ready (GObject* source_object,
                                  GAsyncResult* _res_,
                                  gpointer _user_data_)
{
	BoxesUnattendedFileCopyData* _data_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = _user_data_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_source_object_ = source_object;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_res_ = _res_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_co (_data_);
#line 816 "unattended-file.c"
}


static void
___lambda30_ (Block83Data* _data83_,
              GError** error)
{
	BoxesUnattendedFile* self;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GFile* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	GError * _inner_error_ = NULL;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = _data83_->self;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = boxes_unattended_file_get_disk_file (self);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = _tmp0_;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = _tmp1_;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp3_ = _data83_->source_file;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp4_ = g_file_get_path (_tmp3_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp5_ = _tmp4_;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp6_ = boxes_unattended_file_get_dest_name (self);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp7_ = _tmp6_;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_with_libarchive (self, _tmp2_, _tmp5_, _tmp7_, &_inner_error_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp5_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp2_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_propagate_error (error, _inner_error_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return;
#line 864 "unattended-file.c"
	}
}


static void
____lambda30__boxes_async_launcher_run_in_thread_func (gpointer self,
                                                       GError** error)
{
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	___lambda30_ (self, error);
#line 875 "unattended-file.c"
}


static gboolean
boxes_unattended_file_copy_co (BoxesUnattendedFileCopyData* _data_)
{
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (_data_->_state_) {
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 0:
#line 886 "unattended-file.c"
		goto _state_0;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 1:
#line 890 "unattended-file.c"
		goto _state_1;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 2:
#line 894 "unattended-file.c"
		goto _state_2;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 3:
#line 898 "unattended-file.c"
		goto _state_3;
		default:
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 903 "unattended-file.c"
	}
	_state_0:
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_ = g_slice_new0 (Block83Data);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_->_ref_count_ = 1;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_->self = g_object_ref (_data_->self);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_->_async_data_ = _data_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_state_ = 1;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_get_source_file (_data_->self, _data_->cancellable, boxes_unattended_file_copy_ready, _data_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 920 "unattended-file.c"
	_state_1:
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp0_ = boxes_unattended_file_get_source_file_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_->source_file = _data_->_tmp0_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		block83_data_unref (_data_->_data83_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_data83_ = NULL;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_unref (_data_->_async_result);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 938 "unattended-file.c"
	}
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp1_ = boxes_unattended_file_get_dest_name (_data_->self);
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp3_ = boxes_unattended_file_get_disk_file (_data_->self);
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_debug ("unattended-file.vala:19: Copying unattended file '%s' into disk drive/" \
"image '%s'", _data_->_tmp2_, _data_->_tmp5_);
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp5_);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp6_ = boxes_unattended_file_get_disk_file (_data_->self);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp8_ = _data_->_tmp7_;
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp9_ = boxes_unattended_file_is_libarchive_compatible (_data_->_tmp8_);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp8_);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_tmp9_) {
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp10_ = boxes_app_app;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp11_ = _data_->_tmp10_->async_launcher;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_state_ = 2;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_async_launcher_launch (_data_->_tmp11_, ____lambda30__boxes_async_launcher_run_in_thread_func, block83_data_ref (_data_->_data83_), block83_data_unref, boxes_unattended_file_copy_ready, _data_);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 976 "unattended-file.c"
		_state_2:
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_async_launcher_launch_finish (_data_->_tmp11_, _data_->_res_, &_data_->_inner_error_);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			block83_data_unref (_data_->_data83_);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_data83_ = NULL;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_object_unref (_data_->_async_result);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			return FALSE;
#line 992 "unattended-file.c"
		}
	} else {
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp12_ = boxes_unattended_file_get_disk_file (_data_->self);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp13_ = _data_->_tmp12_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp14_ = _data_->_tmp13_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp15_ = _data_->_data83_->source_file;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp16_ = g_file_get_path (_data_->_tmp15_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp17_ = _data_->_tmp16_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp18_ = boxes_unattended_file_get_dest_name (_data_->self);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp19_ = _data_->_tmp18_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_state_ = 3;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_copy_with_mcopy (_data_->self, _data_->_tmp14_, _data_->_tmp17_, _data_->_tmp19_, _data_->cancellable, boxes_unattended_file_copy_ready, _data_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 1017 "unattended-file.c"
		_state_3:
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_copy_with_mcopy_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_data_->_tmp17_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_data_->_tmp14_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			block83_data_unref (_data_->_data83_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_data83_ = NULL;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_object_unref (_data_->_async_result);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			return FALSE;
#line 1037 "unattended-file.c"
		}
	}
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp20_ = boxes_unattended_file_get_dest_name (_data_->self);
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp21_ = _data_->_tmp20_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp22_ = boxes_unattended_file_get_disk_file (_data_->self);
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp23_ = _data_->_tmp22_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp24_ = _data_->_tmp23_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_debug ("unattended-file.vala:28: Copied unattended file '%s' into disk drive/i" \
"mage '%s'", _data_->_tmp21_, _data_->_tmp24_);
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp24_);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	block83_data_unref (_data_->_data83_);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_ = NULL;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_state_ != 0) {
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1066 "unattended-file.c"
		}
	}
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_unref (_data_->_async_result);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 1073 "unattended-file.c"
}


void
boxes_unattended_file_get_source_file (BoxesUnattendedFile* self,
                                       GCancellable* cancellable,
                                       GAsyncReadyCallback _callback_,
                                       gpointer _user_data_)
{
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	BOXES_UNATTENDED_FILE_GET_INTERFACE (self)->get_source_file (self, cancellable, _callback_, _user_data_);
#line 1085 "unattended-file.c"
}


GFile*
boxes_unattended_file_get_source_file_finish (BoxesUnattendedFile* self,
                                              GAsyncResult* _res_,
                                              GError** error)
{
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return BOXES_UNATTENDED_FILE_GET_INTERFACE (self)->get_source_file_finish (self, _res_, error);
#line 1096 "unattended-file.c"
}


static void
boxes_unattended_file_copy_with_libarchive (BoxesUnattendedFile* self,
                                            const gchar* disk_file,
                                            const gchar* source_file,
                                            const gchar* dest_name,
                                            GError** error)
{
	BoxesArchiveReader* reader = NULL;
	BoxesArchiveReader* _tmp0_;
	BoxesArchiveWriter* writer = NULL;
	BoxesArchiveReader* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	BoxesArchiveWriter* _tmp4_;
	BoxesArchiveWriter* _tmp5_;
	BoxesArchiveWriter* _tmp6_;
	BoxesArchiveReader* _tmp7_;
	gchar* _tmp8_;
	gchar** _tmp9_;
	gchar** _tmp10_;
	gint _tmp10__length1;
	BoxesArchiveWriter* _tmp11_;
	GFile* src = NULL;
	gchar* _tmp12_;
	gchar* _tmp13_;
	GFile* _tmp14_;
	GFile* _tmp15_;
	GFile* dst = NULL;
	GFile* _tmp16_;
	GFile* _tmp17_;
	GFile* _tmp18_;
	GError * _inner_error_ = NULL;
#line 33 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_if_fail (disk_file != NULL);
#line 33 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_if_fail (source_file != NULL);
#line 33 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_if_fail (dest_name != NULL);
#line 34 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = boxes_archive_reader_new (disk_file, NULL, NULL, &_inner_error_);
#line 34 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	reader = _tmp0_;
#line 34 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 34 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_propagate_error (error, _inner_error_);
#line 34 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return;
#line 1148 "unattended-file.c"
	}
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = reader;
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = g_strconcat (disk_file, "~", NULL);
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp3_ = _tmp2_;
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp4_ = boxes_archive_writer_new_from_archive_reader (_tmp1_, _tmp3_, FALSE, &_inner_error_);
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp5_ = _tmp4_;
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp3_);
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	writer = _tmp5_;
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_propagate_error (error, _inner_error_);
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (reader);
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return;
#line 1172 "unattended-file.c"
	}
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp6_ = writer;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp7_ = reader;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp8_ = g_strdup (dest_name);
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp9_ = g_new0 (gchar*, 1 + 1);
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp9_[0] = _tmp8_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp10_ = _tmp9_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp10__length1 = 1;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_archive_writer_import_read_archive (_tmp6_, _tmp7_, _tmp10_, 1, FALSE, &_inner_error_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp10_ = (_vala_array_free (_tmp10_, _tmp10__length1, (GDestroyNotify) g_free), NULL);
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_propagate_error (error, _inner_error_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (writer);
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (reader);
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return;
#line 1202 "unattended-file.c"
	}
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp11_ = writer;
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_archive_writer_insert_file (_tmp11_, source_file, dest_name, &_inner_error_);
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_propagate_error (error, _inner_error_);
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (writer);
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (reader);
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return;
#line 1218 "unattended-file.c"
	}
#line 42 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (reader);
#line 42 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	reader = NULL;
#line 43 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (writer);
#line 43 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	writer = NULL;
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp12_ = g_strconcat (disk_file, "~", NULL);
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp13_ = _tmp12_;
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp14_ = g_file_new_for_path (_tmp13_);
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp15_ = _tmp14_;
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp13_);
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	src = _tmp15_;
#line 46 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp16_ = g_file_new_for_path (disk_file);
#line 46 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	dst = _tmp16_;
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp17_ = src;
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp18_ = dst;
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_file_move (_tmp17_, _tmp18_, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, &_inner_error_);
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_propagate_error (error, _inner_error_);
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (dst);
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (src);
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (writer);
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (reader);
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return;
#line 1264 "unattended-file.c"
	}
#line 33 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (dst);
#line 33 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (src);
#line 33 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (writer);
#line 33 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (reader);
#line 1274 "unattended-file.c"
}


static void
boxes_unattended_file_copy_with_mcopy_data_free (gpointer _data)
{
	BoxesUnattendedFileCopyWithMcopyData* _data_;
	_data_ = _data;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->disk_file);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->source_file);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->dest_name);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_slice_free (BoxesUnattendedFileCopyWithMcopyData, _data_);
#line 1295 "unattended-file.c"
}


static void
boxes_unattended_file_copy_with_mcopy (BoxesUnattendedFile* self,
                                       const gchar* disk_file,
                                       const gchar* source_file,
                                       const gchar* dest_name,
                                       GCancellable* cancellable,
                                       GAsyncReadyCallback _callback_,
                                       gpointer _user_data_)
{
	BoxesUnattendedFileCopyWithMcopyData* _data_;
	BoxesUnattendedFile* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	GCancellable* _tmp4_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_slice_new0 (BoxesUnattendedFileCopyWithMcopyData);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, _callback_, _user_data_);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_unattended_file_copy_with_mcopy_data_free);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->self = _tmp0_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = g_strdup (disk_file);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->disk_file);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->disk_file = _tmp1_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = g_strdup (source_file);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->source_file);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->source_file = _tmp2_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp3_ = g_strdup (dest_name);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->dest_name);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->dest_name = _tmp3_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp4_ = _g_object_ref0 (cancellable);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->cancellable = _tmp4_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_with_mcopy_co (_data_);
#line 1350 "unattended-file.c"
}


static void
boxes_unattended_file_copy_with_mcopy_finish (BoxesUnattendedFile* self,
                                              GAsyncResult* _res_,
                                              GError** error)
{
	BoxesUnattendedFileCopyWithMcopyData* _data_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (NULL == _data_) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return;
#line 1366 "unattended-file.c"
	}
}


static void
boxes_unattended_file_copy_with_mcopy_ready (GObject* source_object,
                                             GAsyncResult* _res_,
                                             gpointer _user_data_)
{
	BoxesUnattendedFileCopyWithMcopyData* _data_;
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = _user_data_;
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_source_object_ = source_object;
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_res_ = _res_;
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_with_mcopy_co (_data_);
#line 1385 "unattended-file.c"
}


static gboolean
boxes_unattended_file_copy_with_mcopy_co (BoxesUnattendedFileCopyWithMcopyData* _data_)
{
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (_data_->_state_) {
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 0:
#line 1396 "unattended-file.c"
		goto _state_0;
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 1:
#line 1400 "unattended-file.c"
		goto _state_1;
		default:
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 1405 "unattended-file.c"
	}
	_state_0:
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp0_ = g_strdup ("mcopy");
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp1_ = g_strdup ("-n");
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp2_ = g_strdup ("-o");
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp3_ = g_strdup ("-i");
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp4_ = g_strdup (_data_->disk_file);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp5_ = g_strdup (_data_->source_file);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp6_ = g_strconcat ("::", _data_->dest_name, NULL);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_ = g_new0 (gchar*, 7 + 1);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[0] = _data_->_tmp0_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[1] = _data_->_tmp1_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[2] = _data_->_tmp2_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[3] = _data_->_tmp3_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[4] = _data_->_tmp4_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[5] = _data_->_tmp5_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[6] = _data_->_tmp6_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->argv = _data_->_tmp7_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->argv_length1 = 7;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_argv_size_ = _data_->argv_length1;
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_state_ = 1;
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_exec (_data_->argv, _data_->argv_length1, _data_->cancellable, boxes_unattended_file_copy_with_mcopy_ready, _data_);
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 1450 "unattended-file.c"
	_state_1:
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_exec_finish (_data_->_res_, NULL, NULL, &_data_->_inner_error_);
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->argv = (_vala_array_free (_data_->argv, _data_->argv_length1, (GDestroyNotify) g_free), NULL);
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_unref (_data_->_async_result);
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 1464 "unattended-file.c"
	}
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->argv = (_vala_array_free (_data_->argv, _data_->argv_length1, (GDestroyNotify) g_free), NULL);
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_state_ != 0) {
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1476 "unattended-file.c"
		}
	}
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_unref (_data_->_async_result);
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 1483 "unattended-file.c"
}


static gboolean
boxes_unattended_file_is_libarchive_compatible (const gchar* filename)
{
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
#line 66 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (filename != NULL, FALSE);
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (!g_str_has_suffix (filename, ".img")) {
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = !g_str_has_suffix (filename, ".IMG");
#line 1498 "unattended-file.c"
	} else {
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = FALSE;
#line 1502 "unattended-file.c"
	}
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 1508 "unattended-file.c"
}


const gchar*
boxes_unattended_file_get_src_path (BoxesUnattendedFile* self)
{
#line 6 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 6 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return BOXES_UNATTENDED_FILE_GET_INTERFACE (self)->get_src_path (self);
#line 1519 "unattended-file.c"
}


void
boxes_unattended_file_set_src_path (BoxesUnattendedFile* self,
                                    const gchar* value)
{
#line 6 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_if_fail (self != NULL);
#line 6 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	BOXES_UNATTENDED_FILE_GET_INTERFACE (self)->set_src_path (self, value);
#line 1531 "unattended-file.c"
}


const gchar*
boxes_unattended_file_get_dest_name (BoxesUnattendedFile* self)
{
#line 7 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 7 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return BOXES_UNATTENDED_FILE_GET_INTERFACE (self)->get_dest_name (self);
#line 1542 "unattended-file.c"
}


void
boxes_unattended_file_set_dest_name (BoxesUnattendedFile* self,
                                     const gchar* value)
{
#line 7 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_if_fail (self != NULL);
#line 7 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	BOXES_UNATTENDED_FILE_GET_INTERFACE (self)->set_dest_name (self, value);
#line 1554 "unattended-file.c"
}


gchar*
boxes_unattended_file_get_disk_file (BoxesUnattendedFile* self)
{
#line 10 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 10 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return BOXES_UNATTENDED_FILE_GET_INTERFACE (self)->get_disk_file (self);
#line 1565 "unattended-file.c"
}


static gchar*
boxes_unattended_file_real_get_disk_file (BoxesUnattendedFile* base)
{
	gchar* result;
	BoxesUnattendedFile* self;
	BoxesUnattendedInstaller* _tmp0_;
	BoxesUnattendedInstaller* _tmp1_;
	GFile* _tmp2_;
	gchar* _tmp3_;
#line 10 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = base;
#line 11 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = boxes_unattended_file_get_installer (self);
#line 11 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = _tmp0_;
#line 11 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = _tmp1_->disk_file;
#line 11 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp3_ = g_file_get_path (_tmp2_);
#line 11 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp3_;
#line 11 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 1592 "unattended-file.c"
}


BoxesUnattendedInstaller*
boxes_unattended_file_get_installer (BoxesUnattendedFile* self)
{
#line 14 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 14 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return BOXES_UNATTENDED_FILE_GET_INTERFACE (self)->get_installer (self);
#line 1603 "unattended-file.c"
}


void
boxes_unattended_file_set_installer (BoxesUnattendedFile* self,
                                     BoxesUnattendedInstaller* value)
{
#line 14 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_if_fail (self != NULL);
#line 14 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	BOXES_UNATTENDED_FILE_GET_INTERFACE (self)->set_installer (self, value);
#line 1615 "unattended-file.c"
}


static void
boxes_unattended_file_base_init (BoxesUnattendedFileIface * iface)
{
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	static gboolean initialized = FALSE;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (!initialized) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		initialized = TRUE;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_interface_install_property (iface, g_param_spec_string ("src-path", "src-path", "src-path", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_interface_install_property (iface, g_param_spec_string ("dest-name", "dest-name", "dest-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_interface_install_property (iface, g_param_spec_object ("installer", "installer", "installer", BOXES_TYPE_UNATTENDED_INSTALLER, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		iface->get_disk_file = boxes_unattended_file_real_get_disk_file;
#line 1636 "unattended-file.c"
	}
}


GType
boxes_unattended_file_get_type (void)
{
	static volatile gsize boxes_unattended_file_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_unattended_file_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesUnattendedFileIface), (GBaseInitFunc) boxes_unattended_file_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType boxes_unattended_file_type_id;
		boxes_unattended_file_type_id = g_type_register_static (G_TYPE_INTERFACE, "BoxesUnattendedFile", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (boxes_unattended_file_type_id, G_TYPE_OBJECT);
		g_once_init_leave (&boxes_unattended_file_type_id__volatile, boxes_unattended_file_type_id);
	}
	return boxes_unattended_file_type_id__volatile;
}


BoxesUnattendedRawFile*
boxes_unattended_raw_file_construct (GType object_type,
                                     BoxesUnattendedInstaller* installer,
                                     const gchar* src_path,
                                     const gchar* dest_name)
{
	BoxesUnattendedRawFile * self = NULL;
#line 85 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (installer != NULL, NULL);
#line 85 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (src_path != NULL, NULL);
#line 85 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (dest_name != NULL, NULL);
#line 85 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedRawFile*) g_object_new (object_type, NULL);
#line 86 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, installer);
#line 87 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_src_path ((BoxesUnattendedFile*) self, src_path);
#line 88 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, dest_name);
#line 85 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return self;
#line 1679 "unattended-file.c"
}


BoxesUnattendedRawFile*
boxes_unattended_raw_file_new (BoxesUnattendedInstaller* installer,
                               const gchar* src_path,
                               const gchar* dest_name)
{
#line 85 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return boxes_unattended_raw_file_construct (BOXES_TYPE_UNATTENDED_RAW_FILE, installer, src_path, dest_name);
#line 1690 "unattended-file.c"
}


static void
boxes_unattended_raw_file_real_get_source_file_data_free (gpointer _data)
{
	BoxesUnattendedRawFileGetSourceFileData* _data_;
	_data_ = _data;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->result);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->self);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_slice_free (BoxesUnattendedRawFileGetSourceFileData, _data_);
#line 1707 "unattended-file.c"
}


static void
boxes_unattended_raw_file_real_get_source_file (BoxesUnattendedFile* base,
                                                GCancellable* cancellable,
                                                GAsyncReadyCallback _callback_,
                                                gpointer _user_data_)
{
	BoxesUnattendedRawFile * self;
	BoxesUnattendedRawFileGetSourceFileData* _data_;
	BoxesUnattendedRawFile* _tmp0_;
	GCancellable* _tmp1_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedRawFile*) base;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_slice_new0 (BoxesUnattendedRawFileGetSourceFileData);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, _callback_, _user_data_);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_unattended_raw_file_real_get_source_file_data_free);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->self = _tmp0_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = _g_object_ref0 (cancellable);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->cancellable = _tmp1_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_raw_file_real_get_source_file_co (_data_);
#line 1741 "unattended-file.c"
}


static GFile*
boxes_unattended_raw_file_real_get_source_file_finish (BoxesUnattendedFile* base,
                                                       GAsyncResult* _res_,
                                                       GError** error)
{
	GFile* result;
	BoxesUnattendedRawFileGetSourceFileData* _data_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (NULL == _data_) {
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return NULL;
#line 1758 "unattended-file.c"
	}
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _data_->result;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = NULL;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 1766 "unattended-file.c"
}


static gboolean
boxes_unattended_raw_file_real_get_source_file_co (BoxesUnattendedRawFileGetSourceFileData* _data_)
{
#line 91 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (_data_->_state_) {
#line 91 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 0:
#line 1777 "unattended-file.c"
		goto _state_0;
		default:
#line 91 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 1782 "unattended-file.c"
	}
	_state_0:
#line 92 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp0_ = boxes_unattended_file_get_src_path ((BoxesUnattendedFile*) _data_->self);
#line 92 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 92 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp2_ = g_file_new_for_path (_data_->_tmp1_);
#line 92 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = _data_->_tmp2_;
#line 92 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 92 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_state_ != 0) {
#line 92 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 92 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1801 "unattended-file.c"
		}
	}
#line 92 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_unref (_data_->_async_result);
#line 92 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 1808 "unattended-file.c"
}


static const gchar*
boxes_unattended_raw_file_real_get_dest_name (BoxesUnattendedFile* base)
{
	const gchar* result;
	BoxesUnattendedRawFile* self;
	const gchar* _tmp0_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedRawFile*) base;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_dest_name;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 1826 "unattended-file.c"
}


static void
boxes_unattended_raw_file_real_set_dest_name (BoxesUnattendedFile* base,
                                              const gchar* value)
{
	BoxesUnattendedRawFile* self;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedRawFile*) base;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (g_strcmp0 (value, boxes_unattended_raw_file_real_get_dest_name (base)) != 0) {
#line 1839 "unattended-file.c"
		gchar* _tmp0_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_dest_name);
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_dest_name = _tmp0_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_DEST_NAME_PROPERTY]);
#line 1849 "unattended-file.c"
	}
}


static const gchar*
boxes_unattended_raw_file_real_get_src_path (BoxesUnattendedFile* base)
{
	const gchar* result;
	BoxesUnattendedRawFile* self;
	const gchar* _tmp0_;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedRawFile*) base;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_src_path;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 1868 "unattended-file.c"
}


static void
boxes_unattended_raw_file_real_set_src_path (BoxesUnattendedFile* base,
                                             const gchar* value)
{
	BoxesUnattendedRawFile* self;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedRawFile*) base;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (g_strcmp0 (value, boxes_unattended_raw_file_real_get_src_path (base)) != 0) {
#line 1881 "unattended-file.c"
		gchar* _tmp0_;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_src_path);
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_src_path = _tmp0_;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_SRC_PATH_PROPERTY]);
#line 1891 "unattended-file.c"
	}
}


static BoxesUnattendedInstaller*
boxes_unattended_raw_file_real_get_installer (BoxesUnattendedFile* base)
{
	BoxesUnattendedInstaller* result;
	BoxesUnattendedRawFile* self;
	BoxesUnattendedInstaller* _tmp0_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedRawFile*) base;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_installer;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 1910 "unattended-file.c"
}


static void
boxes_unattended_raw_file_real_set_installer (BoxesUnattendedFile* base,
                                              BoxesUnattendedInstaller* value)
{
	BoxesUnattendedRawFile* self;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedRawFile*) base;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (boxes_unattended_raw_file_real_get_installer (base) != value) {
#line 1923 "unattended-file.c"
		BoxesUnattendedInstaller* _tmp0_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (self->priv->_installer);
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_installer = _tmp0_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_INSTALLER_PROPERTY]);
#line 1933 "unattended-file.c"
	}
}


static void
boxes_unattended_raw_file_class_init (BoxesUnattendedRawFileClass * klass)
{
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_raw_file_parent_class = g_type_class_peek_parent (klass);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_type_class_add_private (klass, sizeof (BoxesUnattendedRawFilePrivate));
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_unattended_raw_file_get_property;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_unattended_raw_file_set_property;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_unattended_raw_file_finalize;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_RAW_FILE_DEST_NAME_PROPERTY, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_DEST_NAME_PROPERTY] = g_param_spec_string ("dest-name", "dest-name", "dest-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_RAW_FILE_SRC_PATH_PROPERTY, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_SRC_PATH_PROPERTY] = g_param_spec_string ("src-path", "src-path", "src-path", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_RAW_FILE_INSTALLER_PROPERTY, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_INSTALLER_PROPERTY] = g_param_spec_object ("installer", "installer", "installer", BOXES_TYPE_UNATTENDED_INSTALLER, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 1957 "unattended-file.c"
}


static void
boxes_unattended_raw_file_boxes_unattended_file_interface_init (BoxesUnattendedFileIface * iface)
{
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_raw_file_boxes_unattended_file_parent_iface = g_type_interface_peek_parent (iface);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_source_file = (void (*) (BoxesUnattendedFile *, GCancellable*, GAsyncReadyCallback, gpointer)) boxes_unattended_raw_file_real_get_source_file;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_source_file_finish = (GFile* (*) (BoxesUnattendedFile *, GAsyncResult*, GError**)) boxes_unattended_raw_file_real_get_source_file_finish;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_dest_name = boxes_unattended_raw_file_real_get_dest_name;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->set_dest_name = boxes_unattended_raw_file_real_set_dest_name;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_src_path = boxes_unattended_raw_file_real_get_src_path;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->set_src_path = boxes_unattended_raw_file_real_set_src_path;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_installer = boxes_unattended_raw_file_real_get_installer;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->set_installer = boxes_unattended_raw_file_real_set_installer;
#line 1982 "unattended-file.c"
}


static void
boxes_unattended_raw_file_instance_init (BoxesUnattendedRawFile * self)
{
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self->priv = BOXES_UNATTENDED_RAW_FILE_GET_PRIVATE (self);
#line 1991 "unattended-file.c"
}


static void
boxes_unattended_raw_file_finalize (GObject * obj)
{
	BoxesUnattendedRawFile * self;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_UNATTENDED_RAW_FILE, BoxesUnattendedRawFile);
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (self->priv->_dest_name);
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (self->priv->_src_path);
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (self->priv->_installer);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (boxes_unattended_raw_file_parent_class)->finalize (obj);
#line 2009 "unattended-file.c"
}


GType
boxes_unattended_raw_file_get_type (void)
{
	static volatile gsize boxes_unattended_raw_file_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_unattended_raw_file_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesUnattendedRawFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_unattended_raw_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesUnattendedRawFile), 0, (GInstanceInitFunc) boxes_unattended_raw_file_instance_init, NULL };
		static const GInterfaceInfo boxes_unattended_file_info = { (GInterfaceInitFunc) boxes_unattended_raw_file_boxes_unattended_file_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_unattended_raw_file_type_id;
		boxes_unattended_raw_file_type_id = g_type_register_static (G_TYPE_OBJECT, "BoxesUnattendedRawFile", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_unattended_raw_file_type_id, BOXES_TYPE_UNATTENDED_FILE, &boxes_unattended_file_info);
		g_once_init_leave (&boxes_unattended_raw_file_type_id__volatile, boxes_unattended_raw_file_type_id);
	}
	return boxes_unattended_raw_file_type_id__volatile;
}


static void
_vala_boxes_unattended_raw_file_get_property (GObject * object,
                                              guint property_id,
                                              GValue * value,
                                              GParamSpec * pspec)
{
	BoxesUnattendedRawFile * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_UNATTENDED_RAW_FILE, BoxesUnattendedRawFile);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (property_id) {
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_RAW_FILE_DEST_NAME_PROPERTY:
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_string (value, boxes_unattended_file_get_dest_name ((BoxesUnattendedFile*) self));
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_RAW_FILE_SRC_PATH_PROPERTY:
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_string (value, boxes_unattended_file_get_src_path ((BoxesUnattendedFile*) self));
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_RAW_FILE_INSTALLER_PROPERTY:
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_object (value, boxes_unattended_file_get_installer ((BoxesUnattendedFile*) self));
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 2057 "unattended-file.c"
		default:
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 2063 "unattended-file.c"
	}
}


static void
_vala_boxes_unattended_raw_file_set_property (GObject * object,
                                              guint property_id,
                                              const GValue * value,
                                              GParamSpec * pspec)
{
	BoxesUnattendedRawFile * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_UNATTENDED_RAW_FILE, BoxesUnattendedRawFile);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (property_id) {
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_RAW_FILE_DEST_NAME_PROPERTY:
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, g_value_get_string (value));
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_RAW_FILE_SRC_PATH_PROPERTY:
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_src_path ((BoxesUnattendedFile*) self, g_value_get_string (value));
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_RAW_FILE_INSTALLER_PROPERTY:
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, g_value_get_object (value));
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 2096 "unattended-file.c"
		default:
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 2102 "unattended-file.c"
	}
}


BoxesUnattendedScriptFile*
boxes_unattended_script_file_construct (GType object_type,
                                        BoxesUnattendedInstaller* installer,
                                        OsinfoInstallScript* script,
                                        const gchar* dest_name,
                                        GError** error)
{
	BoxesUnattendedScriptFile * self = NULL;
	OsinfoInstallScriptInjectionMethod injection_methods = 0;
	OsinfoInstallScriptInjectionMethod _tmp0_;
	GError * _inner_error_ = NULL;
#line 120 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (installer != NULL, NULL);
#line 120 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (script != NULL, NULL);
#line 120 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (dest_name != NULL, NULL);
#line 120 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedScriptFile*) g_object_new (object_type, NULL);
#line 124 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, installer);
#line 125 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_script_file_set_script (self, script);
#line 126 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, dest_name);
#line 128 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	injection_methods = osinfo_install_script_get_injection_methods (script);
#line 129 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = injection_methods;
#line 129 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if ((_tmp0_ & OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_DISK) == OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_DISK) {
#line 130 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_script_file_set_injection_method (self, OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_DISK);
#line 2140 "unattended-file.c"
	} else {
		OsinfoInstallScriptInjectionMethod _tmp1_;
#line 131 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = injection_methods;
#line 131 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if ((_tmp1_ & OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_FLOPPY) == OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_FLOPPY) {
#line 132 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			boxes_unattended_script_file_set_injection_method (self, OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_FLOPPY);
#line 2149 "unattended-file.c"
		} else {
			OsinfoInstallScriptInjectionMethod _tmp2_;
#line 133 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_tmp2_ = injection_methods;
#line 133 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			if ((_tmp2_ & OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_INITRD) == OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_INITRD) {
#line 134 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				boxes_unattended_script_file_set_injection_method (self, OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_INITRD);
#line 2158 "unattended-file.c"
			} else {
				GError* _tmp3_;
#line 136 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				_tmp3_ = g_error_new_literal (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "No supported injection method available.");
#line 136 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				_inner_error_ = _tmp3_;
#line 136 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				g_propagate_error (error, _inner_error_);
#line 136 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				_g_object_unref0 (self);
#line 136 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				return NULL;
#line 2171 "unattended-file.c"
			}
		}
	}
#line 120 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return self;
#line 2177 "unattended-file.c"
}


BoxesUnattendedScriptFile*
boxes_unattended_script_file_new (BoxesUnattendedInstaller* installer,
                                  OsinfoInstallScript* script,
                                  const gchar* dest_name,
                                  GError** error)
{
#line 120 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return boxes_unattended_script_file_construct (BOXES_TYPE_UNATTENDED_SCRIPT_FILE, installer, script, dest_name, error);
#line 2189 "unattended-file.c"
}


static void
boxes_unattended_script_file_real_get_source_file_data_free (gpointer _data)
{
	BoxesUnattendedScriptFileGetSourceFileData* _data_;
	_data_ = _data;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->result);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->self);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_slice_free (BoxesUnattendedScriptFileGetSourceFileData, _data_);
#line 2206 "unattended-file.c"
}


static void
boxes_unattended_script_file_real_get_source_file (BoxesUnattendedFile* base,
                                                   GCancellable* cancellable,
                                                   GAsyncReadyCallback _callback_,
                                                   gpointer _user_data_)
{
	BoxesUnattendedScriptFile * self;
	BoxesUnattendedScriptFileGetSourceFileData* _data_;
	BoxesUnattendedScriptFile* _tmp0_;
	GCancellable* _tmp1_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedScriptFile*) base;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_slice_new0 (BoxesUnattendedScriptFileGetSourceFileData);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, _callback_, _user_data_);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_unattended_script_file_real_get_source_file_data_free);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->self = _tmp0_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = _g_object_ref0 (cancellable);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->cancellable = _tmp1_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_script_file_real_get_source_file_co (_data_);
#line 2240 "unattended-file.c"
}


static GFile*
boxes_unattended_script_file_real_get_source_file_finish (BoxesUnattendedFile* base,
                                                          GAsyncResult* _res_,
                                                          GError** error)
{
	GFile* result;
	BoxesUnattendedScriptFileGetSourceFileData* _data_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (NULL == _data_) {
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return NULL;
#line 2257 "unattended-file.c"
	}
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _data_->result;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = NULL;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 2265 "unattended-file.c"
}


static void
boxes_unattended_script_file_get_source_file_ready (GObject* source_object,
                                                    GAsyncResult* _res_,
                                                    gpointer _user_data_)
{
	BoxesUnattendedScriptFileGetSourceFileData* _data_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = _user_data_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_source_object_ = source_object;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_res_ = _res_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_script_file_real_get_source_file_co (_data_);
#line 2283 "unattended-file.c"
}


static gboolean
boxes_unattended_script_file_real_get_source_file_co (BoxesUnattendedScriptFileGetSourceFileData* _data_)
{
#line 150 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (_data_->_state_) {
#line 150 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 0:
#line 2294 "unattended-file.c"
		goto _state_0;
#line 150 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 1:
#line 2298 "unattended-file.c"
		goto _state_1;
		default:
#line 150 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 2303 "unattended-file.c"
	}
	_state_0:
#line 151 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp0_ = boxes_unattended_file_get_installer ((BoxesUnattendedFile*) _data_->self);
#line 151 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 151 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp2_ = _data_->self->priv->_script;
#line 151 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_installer_configure_install_script (_data_->_tmp1_, _data_->_tmp2_);
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp3_ = boxes_get_user_pkgcache (NULL);
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp5_ = g_file_new_for_path (_data_->_tmp4_);
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp4_);
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->output_dir = _data_->_tmp6_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp8_ = _data_->self->priv->_script;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp9_ = boxes_unattended_file_get_installer ((BoxesUnattendedFile*) _data_->self);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_ = _data_->_tmp9_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp11_ = ((BoxesInstallerMedia*) _data_->_tmp10_)->os_media;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp12_ = boxes_unattended_file_get_installer ((BoxesUnattendedFile*) _data_->self);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp13_ = _data_->_tmp12_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp14_ = _data_->_tmp13_->config;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_state_ = 1;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	osinfo_install_script_generate_output_for_media_async (_data_->_tmp8_, _data_->_tmp11_, _data_->_tmp14_, _data_->output_dir, _data_->cancellable, boxes_unattended_script_file_get_source_file_ready, _data_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 2346 "unattended-file.c"
	_state_1:
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp15_ = osinfo_install_script_generate_output_for_media_finish (_data_->_tmp8_, _data_->_res_, &_data_->_inner_error_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_ = _data_->_tmp15_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (_data_->output_dir);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_unref (_data_->_async_result);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 2362 "unattended-file.c"
	}
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp16_ = _data_->_tmp7_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_ = NULL;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->self->priv->unattended_tmp);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->self->priv->unattended_tmp = _data_->_tmp16_;
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp17_ = _data_->self->priv->unattended_tmp;
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp18_ = _g_object_ref0 (_data_->_tmp17_);
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = _data_->_tmp18_;
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->_tmp7_);
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->output_dir);
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_state_ != 0) {
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 2390 "unattended-file.c"
		}
	}
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_unref (_data_->_async_result);
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 2397 "unattended-file.c"
}


static const gchar*
boxes_unattended_script_file_real_get_dest_name (BoxesUnattendedFile* base)
{
	const gchar* result;
	BoxesUnattendedScriptFile* self;
	const gchar* _tmp0_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedScriptFile*) base;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_dest_name;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 2415 "unattended-file.c"
}


static void
boxes_unattended_script_file_real_set_dest_name (BoxesUnattendedFile* base,
                                                 const gchar* value)
{
	BoxesUnattendedScriptFile* self;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedScriptFile*) base;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (g_strcmp0 (value, boxes_unattended_script_file_real_get_dest_name (base)) != 0) {
#line 2428 "unattended-file.c"
		gchar* _tmp0_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_dest_name);
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_dest_name = _tmp0_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME_PROPERTY]);
#line 2438 "unattended-file.c"
	}
}


static const gchar*
boxes_unattended_script_file_real_get_src_path (BoxesUnattendedFile* base)
{
	const gchar* result;
	BoxesUnattendedScriptFile* self;
	const gchar* _tmp0_;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedScriptFile*) base;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_src_path;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 2457 "unattended-file.c"
}


static void
boxes_unattended_script_file_real_set_src_path (BoxesUnattendedFile* base,
                                                const gchar* value)
{
	BoxesUnattendedScriptFile* self;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedScriptFile*) base;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (g_strcmp0 (value, boxes_unattended_script_file_real_get_src_path (base)) != 0) {
#line 2470 "unattended-file.c"
		gchar* _tmp0_;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_src_path);
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_src_path = _tmp0_;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH_PROPERTY]);
#line 2480 "unattended-file.c"
	}
}


OsinfoInstallScriptInjectionMethod
boxes_unattended_script_file_get_injection_method (BoxesUnattendedScriptFile* self)
{
	OsinfoInstallScriptInjectionMethod result;
	OsinfoInstallScriptInjectionMethod _tmp0_;
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_injection_method;
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 2498 "unattended-file.c"
}


void
boxes_unattended_script_file_set_injection_method (BoxesUnattendedScriptFile* self,
                                                   OsinfoInstallScriptInjectionMethod value)
{
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_if_fail (self != NULL);
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (boxes_unattended_script_file_get_injection_method (self) != value) {
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_injection_method = value;
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD_PROPERTY]);
#line 2514 "unattended-file.c"
	}
}


static gchar*
boxes_unattended_script_file_real_get_disk_file (BoxesUnattendedFile* base)
{
	gchar* result;
	BoxesUnattendedScriptFile* self;
	OsinfoInstallScriptInjectionMethod _tmp0_;
#line 102 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedScriptFile*) base;
#line 103 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_injection_method;
#line 103 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (_tmp0_) {
#line 103 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_DISK:
#line 103 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_FLOPPY:
#line 2535 "unattended-file.c"
		{
			BoxesUnattendedInstaller* _tmp1_;
			BoxesUnattendedInstaller* _tmp2_;
			GFile* _tmp3_;
			gchar* _tmp4_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_tmp1_ = boxes_unattended_file_get_installer ((BoxesUnattendedFile*) self);
#line 106 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_tmp2_ = _tmp1_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_tmp3_ = _tmp2_->disk_file;
#line 106 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_tmp4_ = g_file_get_path (_tmp3_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			result = _tmp4_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			return result;
#line 2553 "unattended-file.c"
		}
#line 103 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_INITRD:
#line 2557 "unattended-file.c"
		{
			BoxesUnattendedInstaller* _tmp5_;
			BoxesUnattendedInstaller* _tmp6_;
			GFile* _tmp7_;
			gchar* _tmp8_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_tmp5_ = boxes_unattended_file_get_installer ((BoxesUnattendedFile*) self);
#line 108 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_tmp6_ = _tmp5_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_tmp7_ = _tmp6_->initrd_file;
#line 108 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_tmp8_ = g_file_get_path (_tmp7_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			result = _tmp8_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			return result;
#line 2575 "unattended-file.c"
		}
		default:
		{
#line 110 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_assert_not_reached ();
#line 2581 "unattended-file.c"
		}
	}
}


static BoxesUnattendedInstaller*
boxes_unattended_script_file_real_get_installer (BoxesUnattendedFile* base)
{
	BoxesUnattendedInstaller* result;
	BoxesUnattendedScriptFile* self;
	BoxesUnattendedInstaller* _tmp0_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedScriptFile*) base;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_installer;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 2601 "unattended-file.c"
}


static void
boxes_unattended_script_file_real_set_installer (BoxesUnattendedFile* base,
                                                 BoxesUnattendedInstaller* value)
{
	BoxesUnattendedScriptFile* self;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedScriptFile*) base;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (boxes_unattended_script_file_real_get_installer (base) != value) {
#line 2614 "unattended-file.c"
		BoxesUnattendedInstaller* _tmp0_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (self->priv->_installer);
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_installer = _tmp0_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER_PROPERTY]);
#line 2624 "unattended-file.c"
	}
}


OsinfoInstallScript*
boxes_unattended_script_file_get_script (BoxesUnattendedScriptFile* self)
{
	OsinfoInstallScript* result;
	OsinfoInstallScript* _tmp0_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_script;
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 2642 "unattended-file.c"
}


void
boxes_unattended_script_file_set_script (BoxesUnattendedScriptFile* self,
                                         OsinfoInstallScript* value)
{
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_if_fail (self != NULL);
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (boxes_unattended_script_file_get_script (self) != value) {
#line 2654 "unattended-file.c"
		OsinfoInstallScript* _tmp0_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (self->priv->_script);
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_script = _tmp0_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT_PROPERTY]);
#line 2664 "unattended-file.c"
	}
}


static void
boxes_unattended_script_file_class_init (BoxesUnattendedScriptFileClass * klass)
{
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_script_file_parent_class = g_type_class_peek_parent (klass);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_type_class_add_private (klass, sizeof (BoxesUnattendedScriptFilePrivate));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_unattended_script_file_get_property;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_unattended_script_file_set_property;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_unattended_script_file_finalize;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME_PROPERTY, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME_PROPERTY] = g_param_spec_string ("dest-name", "dest-name", "dest-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH_PROPERTY, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH_PROPERTY] = g_param_spec_string ("src-path", "src-path", "src-path", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD_PROPERTY, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD_PROPERTY] = g_param_spec_flags ("injection-method", "injection-method", "injection-method", osinfo_install_script_injection_method_get_type (), 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER_PROPERTY, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER_PROPERTY] = g_param_spec_object ("installer", "installer", "installer", BOXES_TYPE_UNATTENDED_INSTALLER, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT_PROPERTY, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT_PROPERTY] = g_param_spec_object ("script", "script", "script", osinfo_install_script_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 2692 "unattended-file.c"
}


static void
boxes_unattended_script_file_boxes_unattended_file_interface_init (BoxesUnattendedFileIface * iface)
{
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_script_file_boxes_unattended_file_parent_iface = g_type_interface_peek_parent (iface);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_source_file = (void (*) (BoxesUnattendedFile *, GCancellable*, GAsyncReadyCallback, gpointer)) boxes_unattended_script_file_real_get_source_file;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_source_file_finish = (GFile* (*) (BoxesUnattendedFile *, GAsyncResult*, GError**)) boxes_unattended_script_file_real_get_source_file_finish;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_dest_name = boxes_unattended_script_file_real_get_dest_name;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->set_dest_name = boxes_unattended_script_file_real_set_dest_name;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_src_path = boxes_unattended_script_file_real_get_src_path;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->set_src_path = boxes_unattended_script_file_real_set_src_path;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_disk_file = boxes_unattended_script_file_real_get_disk_file;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_installer = boxes_unattended_script_file_real_get_installer;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->set_installer = boxes_unattended_script_file_real_set_installer;
#line 2719 "unattended-file.c"
}


static void
boxes_unattended_script_file_instance_init (BoxesUnattendedScriptFile * self)
{
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self->priv = BOXES_UNATTENDED_SCRIPT_FILE_GET_PRIVATE (self);
#line 2728 "unattended-file.c"
}


static void
boxes_unattended_script_file_finalize (GObject * obj)
{
	BoxesUnattendedScriptFile * self;
	GFile* _tmp0_;
	GError * _inner_error_ = NULL;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_UNATTENDED_SCRIPT_FILE, BoxesUnattendedScriptFile);
#line 140 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->unattended_tmp;
#line 140 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_tmp0_ == NULL) {
#line 2744 "unattended-file.c"
		goto _return;
	}
	{
		GFile* _tmp1_;
#line 144 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = self->priv->unattended_tmp;
#line 144 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_delete_file (_tmp1_, &_inner_error_);
#line 144 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2755 "unattended-file.c"
			goto __catch95_g_error;
		}
	}
	goto __finally95;
	__catch95_g_error:
	{
		GError* e = NULL;
		GFile* _tmp2_;
		gchar* _tmp3_;
		gchar* _tmp4_;
		GError* _tmp5_;
		const gchar* _tmp6_;
#line 143 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		e = _inner_error_;
#line 143 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_inner_error_ = NULL;
#line 146 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp2_ = self->priv->unattended_tmp;
#line 146 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp3_ = g_file_get_path (_tmp2_);
#line 146 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp4_ = _tmp3_;
#line 146 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp5_ = e;
#line 146 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp6_ = _tmp5_->message;
#line 146 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_warning ("unattended-file.vala:146: Error deleting %s: %s", _tmp4_, _tmp6_);
#line 146 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_tmp4_);
#line 143 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_error_free0 (e);
#line 2788 "unattended-file.c"
	}
	__finally95:
#line 143 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 143 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 143 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_clear_error (&_inner_error_);
#line 2797 "unattended-file.c"
	}
	_return:
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (self->priv->_dest_name);
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (self->priv->_src_path);
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (self->priv->_installer);
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (self->priv->_script);
#line 118 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (self->priv->unattended_tmp);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (boxes_unattended_script_file_parent_class)->finalize (obj);
#line 2812 "unattended-file.c"
}


GType
boxes_unattended_script_file_get_type (void)
{
	static volatile gsize boxes_unattended_script_file_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_unattended_script_file_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesUnattendedScriptFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_unattended_script_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesUnattendedScriptFile), 0, (GInstanceInitFunc) boxes_unattended_script_file_instance_init, NULL };
		static const GInterfaceInfo boxes_unattended_file_info = { (GInterfaceInitFunc) boxes_unattended_script_file_boxes_unattended_file_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_unattended_script_file_type_id;
		boxes_unattended_script_file_type_id = g_type_register_static (G_TYPE_OBJECT, "BoxesUnattendedScriptFile", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_unattended_script_file_type_id, BOXES_TYPE_UNATTENDED_FILE, &boxes_unattended_file_info);
		g_once_init_leave (&boxes_unattended_script_file_type_id__volatile, boxes_unattended_script_file_type_id);
	}
	return boxes_unattended_script_file_type_id__volatile;
}


static void
_vala_boxes_unattended_script_file_get_property (GObject * object,
                                                 guint property_id,
                                                 GValue * value,
                                                 GParamSpec * pspec)
{
	BoxesUnattendedScriptFile * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_UNATTENDED_SCRIPT_FILE, BoxesUnattendedScriptFile);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (property_id) {
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_string (value, boxes_unattended_file_get_dest_name ((BoxesUnattendedFile*) self));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_string (value, boxes_unattended_file_get_src_path ((BoxesUnattendedFile*) self));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_flags (value, boxes_unattended_script_file_get_injection_method (self));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_object (value, boxes_unattended_file_get_installer ((BoxesUnattendedFile*) self));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_object (value, boxes_unattended_script_file_get_script (self));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 2872 "unattended-file.c"
		default:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 2878 "unattended-file.c"
	}
}


static void
_vala_boxes_unattended_script_file_set_property (GObject * object,
                                                 guint property_id,
                                                 const GValue * value,
                                                 GParamSpec * pspec)
{
	BoxesUnattendedScriptFile * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_UNATTENDED_SCRIPT_FILE, BoxesUnattendedScriptFile);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (property_id) {
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, g_value_get_string (value));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_src_path ((BoxesUnattendedFile*) self, g_value_get_string (value));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_script_file_set_injection_method (self, g_value_get_flags (value));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, g_value_get_object (value));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_script_file_set_script (self, g_value_get_object (value));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 2923 "unattended-file.c"
		default:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 2929 "unattended-file.c"
	}
}


static void
_vala_GdkPixbufFormat_free (GdkPixbufFormat* self)
{
#line 172 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_boxed_free (gdk_pixbuf_format_get_type (), self);
#line 2939 "unattended-file.c"
}


static gboolean
_vala_string_array_contains (gchar* * stack,
                             int stack_length,
                             gchar* needle)
{
	int i;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	for (i = 0; i < stack_length; i++) {
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (g_strcmp0 (stack[i], needle) == 0) {
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			return TRUE;
#line 2955 "unattended-file.c"
		}
	}
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 2960 "unattended-file.c"
}


static GdkPixbufFormat*
_vala_GdkPixbufFormat_copy (GdkPixbufFormat* self)
{
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return g_boxed_copy (gdk_pixbuf_format_get_type (), self);
#line 2969 "unattended-file.c"
}


static gpointer
__vala_GdkPixbufFormat_copy0 (gpointer self)
{
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return self ? _vala_GdkPixbufFormat_copy (self) : NULL;
#line 2978 "unattended-file.c"
}


BoxesUnattendedAvatarFile*
boxes_unattended_avatar_file_construct (GType object_type,
                                        BoxesUnattendedInstaller* installer,
                                        const gchar* src_path,
                                        OsinfoAvatarFormat* avatar_format,
                                        GError** error)
{
	BoxesUnattendedAvatarFile * self = NULL;
	OsinfoAvatarFormat* _tmp0_;
	GSList* _tmp1_;
	GdkPixbufFormat* _tmp19_;
	BoxesUnattendedSetupBox* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	gchar* _tmp24_;
	gchar* _tmp25_;
	GdkPixbufFormat* _tmp26_;
	gchar** _tmp27_;
	gchar** _tmp28_;
	gchar** _tmp29_;
	gint _tmp29__length1;
	const gchar* _tmp30_;
	gchar* _tmp31_;
	gchar* _tmp32_;
	GError * _inner_error_ = NULL;
#line 174 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (installer != NULL, NULL);
#line 174 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (src_path != NULL, NULL);
#line 174 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedAvatarFile*) g_object_new (object_type, NULL);
#line 176 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, installer);
#line 177 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_src_path ((BoxesUnattendedFile*) self, src_path);
#line 179 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = _g_object_ref0 (avatar_format);
#line 179 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (self->priv->avatar_format);
#line 179 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self->priv->avatar_format = _tmp0_;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = gdk_pixbuf_get_formats ();
#line 3025 "unattended-file.c"
	{
		GSList* format_collection = NULL;
		GSList* format_it = NULL;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		format_collection = _tmp1_;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		for (format_it = format_collection; format_it != NULL; format_it = format_it->next) {
#line 3033 "unattended-file.c"
			GdkPixbufFormat* format = NULL;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			format = (GdkPixbufFormat*) format_it->data;
#line 3037 "unattended-file.c"
			{
				GdkPixbufFormat* _tmp18_;
#line 182 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				if (avatar_format != NULL) {
#line 3042 "unattended-file.c"
					GList* _tmp2_;
					GList* _tmp3_;
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp2_ = osinfo_avatar_format_get_mime_types (avatar_format);
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp3_ = _tmp2_;
#line 3049 "unattended-file.c"
					{
						GList* mime_type_collection = NULL;
						GList* mime_type_it = NULL;
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						mime_type_collection = _tmp3_;
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						for (mime_type_it = mime_type_collection; mime_type_it != NULL; mime_type_it = mime_type_it->next) {
#line 3057 "unattended-file.c"
							const gchar* mime_type = NULL;
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
							mime_type = (const gchar*) mime_type_it->data;
#line 3061 "unattended-file.c"
							{
								const gchar* _tmp4_;
								GdkPixbufFormat* _tmp5_;
								gchar** _tmp6_;
								gchar** _tmp7_;
								gchar** _tmp8_;
								gint _tmp8__length1;
								gboolean _tmp9_;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp4_ = mime_type;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp5_ = format;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp7_ = _tmp6_ = gdk_pixbuf_format_get_mime_types (_tmp5_);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp8_ = _tmp7_;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp8__length1 = _vala_array_length (_tmp6_);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp9_ = _vala_string_array_contains (_tmp8_, _vala_array_length (_tmp6_), _tmp4_);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								if (_tmp9_) {
#line 3086 "unattended-file.c"
									GdkPixbufFormat* _tmp10_;
									GdkPixbufFormat* _tmp11_;
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									_tmp10_ = format;
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									_tmp11_ = __vala_GdkPixbufFormat_copy0 (_tmp10_);
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									__vala_GdkPixbufFormat_free0 (self->priv->pixbuf_format);
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									self->priv->pixbuf_format = _tmp11_;
#line 187 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									break;
#line 3099 "unattended-file.c"
								}
							}
						}
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						_g_list_free0 (mime_type_collection);
#line 3105 "unattended-file.c"
					}
				} else {
					GdkPixbufFormat* _tmp12_;
					gchar* _tmp13_;
					gchar* _tmp14_;
					gboolean _tmp15_;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp12_ = format;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp13_ = gdk_pixbuf_format_get_name (_tmp12_);
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp14_ = _tmp13_;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp15_ = g_strcmp0 (_tmp14_, "png") == 0;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_g_free0 (_tmp14_);
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					if (_tmp15_) {
#line 3124 "unattended-file.c"
						GdkPixbufFormat* _tmp16_;
						GdkPixbufFormat* _tmp17_;
#line 191 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						_tmp16_ = format;
#line 191 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						_tmp17_ = __vala_GdkPixbufFormat_copy0 (_tmp16_);
#line 191 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						__vala_GdkPixbufFormat_free0 (self->priv->pixbuf_format);
#line 191 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						self->priv->pixbuf_format = _tmp17_;
#line 3135 "unattended-file.c"
					}
				}
#line 193 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				_tmp18_ = self->priv->pixbuf_format;
#line 193 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				if (_tmp18_ != NULL) {
#line 194 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					break;
#line 3144 "unattended-file.c"
				}
			}
		}
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_slist_free0 (format_collection);
#line 3150 "unattended-file.c"
	}
#line 197 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp19_ = self->priv->pixbuf_format;
#line 197 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_tmp19_ == NULL) {
#line 3156 "unattended-file.c"
		GError* _tmp20_;
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp20_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, "Failed to find suitable format to save user avatar file in.");
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_inner_error_ = _tmp20_;
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_propagate_error (error, _inner_error_);
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_g_object_unref0 (self);
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			return NULL;
#line 3170 "unattended-file.c"
		} else {
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_clear_error (&_inner_error_);
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			return NULL;
#line 3178 "unattended-file.c"
		}
	}
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp21_ = installer->setup_box;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp22_ = boxes_unattended_setup_box_get_username (_tmp21_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp23_ = _tmp22_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp24_ = g_strconcat (_tmp23_, ".", NULL);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp25_ = _tmp24_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp26_ = self->priv->pixbuf_format;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp28_ = _tmp27_ = gdk_pixbuf_format_get_extensions (_tmp26_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp29_ = _tmp28_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp29__length1 = _vala_array_length (_tmp27_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp30_ = _tmp29_[0];
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp31_ = g_strconcat (_tmp25_, _tmp30_, NULL);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp32_ = _tmp31_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, _tmp32_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp32_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp29_ = (_vala_array_free (_tmp29_, _tmp29__length1, (GDestroyNotify) g_free), NULL);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp25_);
#line 174 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return self;
#line 3215 "unattended-file.c"
}


BoxesUnattendedAvatarFile*
boxes_unattended_avatar_file_new (BoxesUnattendedInstaller* installer,
                                  const gchar* src_path,
                                  OsinfoAvatarFormat* avatar_format,
                                  GError** error)
{
#line 174 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return boxes_unattended_avatar_file_construct (BOXES_TYPE_UNATTENDED_AVATAR_FILE, installer, src_path, avatar_format, error);
#line 3227 "unattended-file.c"
}


static void
boxes_unattended_avatar_file_real_get_source_file_data_free (gpointer _data)
{
	BoxesUnattendedAvatarFileGetSourceFileData* _data_;
	_data_ = _data;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->result);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->self);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_slice_free (BoxesUnattendedAvatarFileGetSourceFileData, _data_);
#line 3244 "unattended-file.c"
}


static void
boxes_unattended_avatar_file_real_get_source_file (BoxesUnattendedFile* base,
                                                   GCancellable* cancellable,
                                                   GAsyncReadyCallback _callback_,
                                                   gpointer _user_data_)
{
	BoxesUnattendedAvatarFile * self;
	BoxesUnattendedAvatarFileGetSourceFileData* _data_;
	BoxesUnattendedAvatarFile* _tmp0_;
	GCancellable* _tmp1_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedAvatarFile*) base;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_slice_new0 (BoxesUnattendedAvatarFileGetSourceFileData);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, _callback_, _user_data_);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_unattended_avatar_file_real_get_source_file_data_free);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->self = _tmp0_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = _g_object_ref0 (cancellable);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->cancellable = _tmp1_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_avatar_file_real_get_source_file_co (_data_);
#line 3278 "unattended-file.c"
}


static GFile*
boxes_unattended_avatar_file_real_get_source_file_finish (BoxesUnattendedFile* base,
                                                          GAsyncResult* _res_,
                                                          GError** error)
{
	GFile* result;
	BoxesUnattendedAvatarFileGetSourceFileData* _data_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (NULL == _data_) {
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return NULL;
#line 3295 "unattended-file.c"
	}
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _data_->result;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = NULL;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 3303 "unattended-file.c"
}


static gboolean
boxes_unattended_avatar_file_real_get_source_file_co (BoxesUnattendedAvatarFileGetSourceFileData* _data_)
{
#line 214 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (_data_->_state_) {
#line 214 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 0:
#line 3314 "unattended-file.c"
		goto _state_0;
		default:
#line 214 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 3319 "unattended-file.c"
	}
	_state_0:
#line 215 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp0_ = boxes_unattended_file_get_installer ((BoxesUnattendedFile*) _data_->self);
#line 215 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 215 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp2_ = boxes_unattended_file_get_dest_name ((BoxesUnattendedFile*) _data_->self);
#line 215 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 215 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp4_ = boxes_unattended_installer_get_user_unattended (_data_->_tmp1_, _data_->_tmp3_);
#line 215 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->destination_path = _data_->_tmp4_;
#line 3334 "unattended-file.c"
	{
#line 218 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp6_ = _data_->self->priv->avatar_format;
#line 218 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (_data_->_tmp6_ != NULL) {
#line 218 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp7_ = _data_->self->priv->avatar_format;
#line 218 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp8_ = osinfo_avatar_format_get_width (_data_->_tmp7_);
#line 218 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp9_ = _data_->_tmp8_;
#line 218 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp5_ = _data_->_tmp9_;
#line 3348 "unattended-file.c"
		} else {
#line 218 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp5_ = -1;
#line 3352 "unattended-file.c"
		}
#line 218 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->width = _data_->_tmp5_;
#line 219 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp11_ = _data_->self->priv->avatar_format;
#line 219 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (_data_->_tmp11_ != NULL) {
#line 219 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp12_ = _data_->self->priv->avatar_format;
#line 219 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp13_ = osinfo_avatar_format_get_height (_data_->_tmp12_);
#line 219 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp14_ = _data_->_tmp13_;
#line 219 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp10_ = _data_->_tmp14_;
#line 3368 "unattended-file.c"
		} else {
#line 219 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp10_ = -1;
#line 3372 "unattended-file.c"
		}
#line 219 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->height = _data_->_tmp10_;
#line 220 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp15_ = boxes_unattended_file_get_src_path ((BoxesUnattendedFile*) _data_->self);
#line 220 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp16_ = _data_->_tmp15_;
#line 220 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp17_ = _data_->width;
#line 220 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp18_ = _data_->height;
#line 220 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp19_ = gdk_pixbuf_new_from_file_at_scale (_data_->_tmp16_, _data_->_tmp17_, _data_->_tmp18_, TRUE, &_data_->_inner_error_);
#line 220 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->pixbuf = _data_->_tmp19_;
#line 220 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 3390 "unattended-file.c"
			goto __catch97_g_error;
		}
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp22_ = _data_->self->priv->avatar_format;
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (_data_->_tmp22_ != NULL) {
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp23_ = _data_->self->priv->avatar_format;
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp24_ = osinfo_avatar_format_get_alpha (_data_->_tmp23_);
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp25_ = _data_->_tmp24_;
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp21_ = !_data_->_tmp25_;
#line 3405 "unattended-file.c"
		} else {
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp21_ = FALSE;
#line 3409 "unattended-file.c"
		}
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (_data_->_tmp21_) {
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp26_ = _data_->pixbuf;
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp20_ = gdk_pixbuf_get_has_alpha (_data_->_tmp26_);
#line 3417 "unattended-file.c"
		} else {
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp20_ = FALSE;
#line 3421 "unattended-file.c"
		}
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (_data_->_tmp20_) {
#line 223 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp27_ = _data_->pixbuf;
#line 223 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp28_ = boxes_remove_alpha (_data_->_tmp27_);
#line 223 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_g_object_unref0 (_data_->pixbuf);
#line 223 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->pixbuf = _data_->_tmp28_;
#line 3433 "unattended-file.c"
		}
#line 225 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp29_ = _data_->destination_path;
#line 225 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_debug ("unattended-file.vala:225: Saving user avatar file at '%s'..", _data_->_tmp29_);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp30_ = _data_->pixbuf;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp31_ = _data_->destination_path;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp32_ = _data_->self->priv->pixbuf_format;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp33_ = gdk_pixbuf_format_get_name (_data_->_tmp32_);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp34_ = _data_->_tmp33_;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		gdk_pixbuf_save (_data_->_tmp30_, _data_->_tmp31_, _data_->_tmp34_, &_data_->_inner_error_, NULL);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_data_->_tmp34_);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_g_object_unref0 (_data_->pixbuf);
#line 3457 "unattended-file.c"
			goto __catch97_g_error;
		}
#line 227 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp35_ = _data_->destination_path;
#line 227 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_debug ("unattended-file.vala:227: Saved user avatar file at '%s'.", _data_->_tmp35_);
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (_data_->pixbuf);
#line 3466 "unattended-file.c"
	}
	goto __finally97;
	__catch97_g_error:
	{
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_inner_error_ = NULL;
#line 229 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp36_ = _data_->_error_;
#line 229 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp37_ = _data_->_tmp36_->message;
#line 229 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_warning ("unattended-file.vala:229: Failed to save user avatar: %s.", _data_->_tmp37_);
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_error_free0 (_data_->_error_);
#line 3483 "unattended-file.c"
	}
	__finally97:
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_data_->destination_path);
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_unref (_data_->_async_result);
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 3496 "unattended-file.c"
	}
#line 232 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp38_ = _data_->destination_path;
#line 232 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp39_ = g_file_new_for_path (_data_->_tmp38_);
#line 232 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->self->priv->unattended_tmp);
#line 232 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->self->priv->unattended_tmp = _data_->_tmp39_;
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp40_ = _data_->self->priv->unattended_tmp;
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp41_ = _g_object_ref0 (_data_->_tmp40_);
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = _data_->_tmp41_;
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->destination_path);
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_state_ != 0) {
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		while (g_task_get_completed (_data_->_async_result) != TRUE) {
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 3522 "unattended-file.c"
		}
	}
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_unref (_data_->_async_result);
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 3529 "unattended-file.c"
}


static const gchar*
boxes_unattended_avatar_file_real_get_dest_name (BoxesUnattendedFile* base)
{
	const gchar* result;
	BoxesUnattendedAvatarFile* self;
	const gchar* _tmp0_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedAvatarFile*) base;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_dest_name;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 3547 "unattended-file.c"
}


static void
boxes_unattended_avatar_file_real_set_dest_name (BoxesUnattendedFile* base,
                                                 const gchar* value)
{
	BoxesUnattendedAvatarFile* self;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedAvatarFile*) base;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (g_strcmp0 (value, boxes_unattended_avatar_file_real_get_dest_name (base)) != 0) {
#line 3560 "unattended-file.c"
		gchar* _tmp0_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_dest_name);
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_dest_name = _tmp0_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME_PROPERTY]);
#line 3570 "unattended-file.c"
	}
}


static const gchar*
boxes_unattended_avatar_file_real_get_src_path (BoxesUnattendedFile* base)
{
	const gchar* result;
	BoxesUnattendedAvatarFile* self;
	const gchar* _tmp0_;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedAvatarFile*) base;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_src_path;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 3589 "unattended-file.c"
}


static void
boxes_unattended_avatar_file_real_set_src_path (BoxesUnattendedFile* base,
                                                const gchar* value)
{
	BoxesUnattendedAvatarFile* self;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedAvatarFile*) base;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (g_strcmp0 (value, boxes_unattended_avatar_file_real_get_src_path (base)) != 0) {
#line 3602 "unattended-file.c"
		gchar* _tmp0_;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_src_path);
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_src_path = _tmp0_;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH_PROPERTY]);
#line 3612 "unattended-file.c"
	}
}


static BoxesUnattendedInstaller*
boxes_unattended_avatar_file_real_get_installer (BoxesUnattendedFile* base)
{
	BoxesUnattendedInstaller* result;
	BoxesUnattendedAvatarFile* self;
	BoxesUnattendedInstaller* _tmp0_;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedAvatarFile*) base;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->_installer;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _tmp0_;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 3631 "unattended-file.c"
}


static void
boxes_unattended_avatar_file_real_set_installer (BoxesUnattendedFile* base,
                                                 BoxesUnattendedInstaller* value)
{
	BoxesUnattendedAvatarFile* self;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedAvatarFile*) base;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (boxes_unattended_avatar_file_real_get_installer (base) != value) {
#line 3644 "unattended-file.c"
		BoxesUnattendedInstaller* _tmp0_;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (self->priv->_installer);
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_installer = _tmp0_;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_INSTALLER_PROPERTY]);
#line 3654 "unattended-file.c"
	}
}


static void
boxes_unattended_avatar_file_class_init (BoxesUnattendedAvatarFileClass * klass)
{
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_avatar_file_parent_class = g_type_class_peek_parent (klass);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_type_class_add_private (klass, sizeof (BoxesUnattendedAvatarFilePrivate));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_unattended_avatar_file_get_property;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_unattended_avatar_file_set_property;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_unattended_avatar_file_finalize;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME_PROPERTY, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME_PROPERTY] = g_param_spec_string ("dest-name", "dest-name", "dest-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH_PROPERTY, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH_PROPERTY] = g_param_spec_string ("src-path", "src-path", "src-path", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_AVATAR_FILE_INSTALLER_PROPERTY, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_INSTALLER_PROPERTY] = g_param_spec_object ("installer", "installer", "installer", BOXES_TYPE_UNATTENDED_INSTALLER, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 3678 "unattended-file.c"
}


static void
boxes_unattended_avatar_file_boxes_unattended_file_interface_init (BoxesUnattendedFileIface * iface)
{
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_avatar_file_boxes_unattended_file_parent_iface = g_type_interface_peek_parent (iface);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_source_file = (void (*) (BoxesUnattendedFile *, GCancellable*, GAsyncReadyCallback, gpointer)) boxes_unattended_avatar_file_real_get_source_file;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_source_file_finish = (GFile* (*) (BoxesUnattendedFile *, GAsyncResult*, GError**)) boxes_unattended_avatar_file_real_get_source_file_finish;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_dest_name = boxes_unattended_avatar_file_real_get_dest_name;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->set_dest_name = boxes_unattended_avatar_file_real_set_dest_name;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_src_path = boxes_unattended_avatar_file_real_get_src_path;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->set_src_path = boxes_unattended_avatar_file_real_set_src_path;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->get_installer = boxes_unattended_avatar_file_real_get_installer;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	iface->set_installer = boxes_unattended_avatar_file_real_set_installer;
#line 3703 "unattended-file.c"
}


static void
boxes_unattended_avatar_file_instance_init (BoxesUnattendedAvatarFile * self)
{
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self->priv = BOXES_UNATTENDED_AVATAR_FILE_GET_PRIVATE (self);
#line 3712 "unattended-file.c"
}


static void
boxes_unattended_avatar_file_finalize (GObject * obj)
{
	BoxesUnattendedAvatarFile * self;
	GFile* _tmp0_;
	GError * _inner_error_ = NULL;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_UNATTENDED_AVATAR_FILE, BoxesUnattendedAvatarFile);
#line 204 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = self->priv->unattended_tmp;
#line 204 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_tmp0_ == NULL) {
#line 3728 "unattended-file.c"
		goto _return;
	}
	{
		GFile* _tmp1_;
#line 208 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = self->priv->unattended_tmp;
#line 208 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_delete_file (_tmp1_, &_inner_error_);
#line 208 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3739 "unattended-file.c"
			goto __catch96_g_error;
		}
	}
	goto __finally96;
	__catch96_g_error:
	{
		GError* e = NULL;
		GFile* _tmp2_;
		gchar* _tmp3_;
		gchar* _tmp4_;
		GError* _tmp5_;
		const gchar* _tmp6_;
#line 207 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		e = _inner_error_;
#line 207 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_inner_error_ = NULL;
#line 210 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp2_ = self->priv->unattended_tmp;
#line 210 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp3_ = g_file_get_path (_tmp2_);
#line 210 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp4_ = _tmp3_;
#line 210 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp5_ = e;
#line 210 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp6_ = _tmp5_->message;
#line 210 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_warning ("unattended-file.vala:210: Error deleting %s: %s", _tmp4_, _tmp6_);
#line 210 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_tmp4_);
#line 207 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_error_free0 (e);
#line 3772 "unattended-file.c"
	}
	__finally96:
#line 207 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 207 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 207 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_clear_error (&_inner_error_);
#line 3781 "unattended-file.c"
	}
	_return:
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (self->priv->_dest_name);
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (self->priv->_src_path);
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (self->priv->_installer);
#line 169 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (self->priv->unattended_tmp);
#line 171 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (self->priv->avatar_format);
#line 172 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	__vala_GdkPixbufFormat_free0 (self->priv->pixbuf_format);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (boxes_unattended_avatar_file_parent_class)->finalize (obj);
#line 3798 "unattended-file.c"
}


GType
boxes_unattended_avatar_file_get_type (void)
{
	static volatile gsize boxes_unattended_avatar_file_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_unattended_avatar_file_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesUnattendedAvatarFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_unattended_avatar_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesUnattendedAvatarFile), 0, (GInstanceInitFunc) boxes_unattended_avatar_file_instance_init, NULL };
		static const GInterfaceInfo boxes_unattended_file_info = { (GInterfaceInitFunc) boxes_unattended_avatar_file_boxes_unattended_file_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_unattended_avatar_file_type_id;
		boxes_unattended_avatar_file_type_id = g_type_register_static (G_TYPE_OBJECT, "BoxesUnattendedAvatarFile", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_unattended_avatar_file_type_id, BOXES_TYPE_UNATTENDED_FILE, &boxes_unattended_file_info);
		g_once_init_leave (&boxes_unattended_avatar_file_type_id__volatile, boxes_unattended_avatar_file_type_id);
	}
	return boxes_unattended_avatar_file_type_id__volatile;
}


static void
_vala_boxes_unattended_avatar_file_get_property (GObject * object,
                                                 guint property_id,
                                                 GValue * value,
                                                 GParamSpec * pspec)
{
	BoxesUnattendedAvatarFile * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_UNATTENDED_AVATAR_FILE, BoxesUnattendedAvatarFile);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (property_id) {
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME_PROPERTY:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_string (value, boxes_unattended_file_get_dest_name ((BoxesUnattendedFile*) self));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH_PROPERTY:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_string (value, boxes_unattended_file_get_src_path ((BoxesUnattendedFile*) self));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_AVATAR_FILE_INSTALLER_PROPERTY:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_value_set_object (value, boxes_unattended_file_get_installer ((BoxesUnattendedFile*) self));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 3846 "unattended-file.c"
		default:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 3852 "unattended-file.c"
	}
}


static void
_vala_boxes_unattended_avatar_file_set_property (GObject * object,
                                                 guint property_id,
                                                 const GValue * value,
                                                 GParamSpec * pspec)
{
	BoxesUnattendedAvatarFile * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_UNATTENDED_AVATAR_FILE, BoxesUnattendedAvatarFile);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (property_id) {
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME_PROPERTY:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, g_value_get_string (value));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH_PROPERTY:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_src_path ((BoxesUnattendedFile*) self, g_value_get_string (value));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_AVATAR_FILE_INSTALLER_PROPERTY:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, g_value_get_object (value));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 3885 "unattended-file.c"
		default:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 3891 "unattended-file.c"
	}
}


static void
_vala_array_destroy (gpointer array,
                     gint array_length,
                     GDestroyNotify destroy_func)
{
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	if ((array != NULL) && (destroy_func != NULL)) {
#line 3903 "unattended-file.c"
		int i;
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
			if (((gpointer*) array)[i] != NULL) {
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
				destroy_func (((gpointer*) array)[i]);
#line 3911 "unattended-file.c"
			}
		}
	}
}


static void
_vala_array_free (gpointer array,
                  gint array_length,
                  GDestroyNotify destroy_func)
{
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	_vala_array_destroy (array, array_length, destroy_func);
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	g_free (array);
#line 3927 "unattended-file.c"
}


static gint
_vala_array_length (gpointer array)
{
	int length;
	length = 0;
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	if (array) {
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
		while (((gpointer*) array)[length]) {
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
			length++;
#line 3942 "unattended-file.c"
		}
	}
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	return length;
#line 3947 "unattended-file.c"
}



