/* unattended-file.c generated by valac 0.36.1.38-6532, 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 _Block87Data Block87Data;
#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_DUMMY_PROPERTY,
	BOXES_UNATTENDED_RAW_FILE_DEST_NAME,
	BOXES_UNATTENDED_RAW_FILE_SRC_PATH,
	BOXES_UNATTENDED_RAW_FILE_INSTALLER,
	BOXES_UNATTENDED_RAW_FILE_LAST_PROPERTY
};
static GParamSpec* boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_LAST_PROPERTY];
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_DUMMY_PROPERTY,
	BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME,
	BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH,
	BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD,
	BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER,
	BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT,
	BOXES_UNATTENDED_SCRIPT_FILE_LAST_PROPERTY
};
static GParamSpec* boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_LAST_PROPERTY];
#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_DUMMY_PROPERTY,
	BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME,
	BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH,
	BOXES_UNATTENDED_AVATAR_FILE_INSTALLER,
	BOXES_UNATTENDED_AVATAR_FILE_LAST_PROPERTY
};
static GParamSpec* boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_LAST_PROPERTY];
#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 _Block87Data {
	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;
	gboolean _task_complete_;
	BoxesUnattendedFile* self;
	GCancellable* cancellable;
	Block87Data* _data87_;
	GCancellable* _tmp0_;
	GFile* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gboolean _tmp10_;
	gboolean _tmp11_;
	BoxesApp* _tmp12_;
	BoxesAsyncLauncher* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	gchar* _tmp16_;
	GFile* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	GCancellable* _tmp22_;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	gchar* _tmp25_;
	gchar* _tmp26_;
	gchar* _tmp27_;
	GError * _inner_error_;
};

struct _BoxesUnattendedFileCopyWithMcopyData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gboolean _task_complete_;
	BoxesUnattendedFile* self;
	gchar* disk_file;
	gchar* source_file;
	gchar* dest_name;
	GCancellable* cancellable;
	gchar** argv;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	gchar** _tmp10_;
	gint argv_length1;
	gint _argv_size_;
	GCancellable* _tmp11_;
	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);
	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;
	gboolean _task_complete_;
	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;
	gboolean _task_complete_;
	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_;
	GCancellable* _tmp15_;
	GFile* _tmp16_;
	GFile* _tmp17_;
	GFile* _tmp18_;
	GFile* _tmp19_;
	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;
	gboolean _task_complete_;
	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_;
	gboolean _tmp27_;
	GdkPixbuf* _tmp28_;
	GdkPixbuf* _tmp29_;
	const gchar* _tmp30_;
	GdkPixbuf* _tmp31_;
	const gchar* _tmp32_;
	GdkPixbufFormat* _tmp33_;
	gchar* _tmp34_;
	gchar* _tmp35_;
	const gchar* _tmp36_;
	GError* _error_;
	GError* _tmp37_;
	const gchar* _tmp38_;
	const gchar* _tmp39_;
	GFile* _tmp40_;
	GFile* _tmp41_;
	GFile* _tmp42_;
	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 Block87Data* block87_data_ref (Block87Data* _data87_);
static void block87_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 ___lambda27_ (Block87Data* _data87_, 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 ____lambda27__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 602 "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 609 "unattended-file.c"
}


void boxes_unattended_file_copy (BoxesUnattendedFile* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesUnattendedFileCopyData* _data_;
	BoxesUnattendedFile* _tmp0_;
	GCancellable* _tmp1_;
	GCancellable* _tmp2_;
#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"
	if (_callback_ == NULL) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_task_complete_ = TRUE;
#line 626 "unattended-file.c"
	}
#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_ = cancellable;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#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 = _tmp2_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_co (_data_);
#line 644 "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 656 "unattended-file.c"
	}
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_task_complete_ = TRUE;
#line 660 "unattended-file.c"
}


static Block87Data* block87_data_ref (Block87Data* _data87_) {
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_atomic_int_inc (&_data87_->_ref_count_);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return _data87_;
#line 669 "unattended-file.c"
}


static void block87_data_unref (void * _userdata_) {
	Block87Data* _data87_;
	_data87_ = (Block87Data*) _userdata_;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (g_atomic_int_dec_and_test (&_data87_->_ref_count_)) {
#line 678 "unattended-file.c"
		BoxesUnattendedFile* self;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self = _data87_->self;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (_data87_->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 (Block87Data, _data87_);
#line 688 "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"
	_data_->_task_complete_ = TRUE;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_co (_data_);
#line 705 "unattended-file.c"
}


static void ___lambda27_ (Block87Data* _data87_, 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 = _data87_->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_ = _data87_->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 750 "unattended-file.c"
	}
}


static void ____lambda27__boxes_async_launcher_run_in_thread_func (gpointer self, GError** error) {
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	___lambda27_ (self, error);
#line 758 "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 767 "unattended-file.c"
		goto _state_0;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 1:
#line 771 "unattended-file.c"
		goto _state_1;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 2:
#line 775 "unattended-file.c"
		goto _state_2;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 3:
#line 779 "unattended-file.c"
		goto _state_3;
		default:
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 784 "unattended-file.c"
	}
	_state_0:
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data87_ = g_slice_new0 (Block87Data);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data87_->_ref_count_ = 1;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data87_->self = g_object_ref (_data_->self);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data87_->_async_data_ = _data_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp0_ = _data_->cancellable;
#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_->_tmp0_, boxes_unattended_file_copy_ready, _data_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 803 "unattended-file.c"
	_state_1:
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp1_ = 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_->_data87_->source_file = _data_->_tmp1_;
#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"
		block87_data_unref (_data_->_data87_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_data87_ = 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 821 "unattended-file.c"
	}
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp2_ = boxes_unattended_file_get_dest_name (_data_->self);
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp4_ = boxes_unattended_file_get_disk_file (_data_->self);
#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"
	_data_->_tmp6_ = _data_->_tmp5_;
#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_->_tmp3_, _data_->_tmp6_);
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp6_);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_ = boxes_unattended_file_get_disk_file (_data_->self);
#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_ = _data_->_tmp8_;
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_ = boxes_unattended_file_is_libarchive_compatible (_data_->_tmp9_);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp11_ = _data_->_tmp10_;
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp9_);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_tmp11_) {
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp12_ = boxes_app_app;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp13_ = _data_->_tmp12_->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_->_tmp13_, ____lambda27__boxes_async_launcher_run_in_thread_func, block87_data_ref (_data_->_data87_), block87_data_unref, boxes_unattended_file_copy_ready, _data_);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 861 "unattended-file.c"
		_state_2:
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_async_launcher_launch_finish (_data_->_tmp13_, _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"
			block87_data_unref (_data_->_data87_);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_data87_ = 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 877 "unattended-file.c"
		}
	} else {
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp14_ = boxes_unattended_file_get_disk_file (_data_->self);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp15_ = _data_->_tmp14_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp16_ = _data_->_tmp15_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp17_ = _data_->_data87_->source_file;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp18_ = g_file_get_path (_data_->_tmp17_);
#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_->_tmp20_ = boxes_unattended_file_get_dest_name (_data_->self);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp21_ = _data_->_tmp20_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp22_ = _data_->cancellable;
#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_->_tmp16_, _data_->_tmp19_, _data_->_tmp21_, _data_->_tmp22_, boxes_unattended_file_copy_ready, _data_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 904 "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_->_tmp19_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_data_->_tmp16_);
#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"
			block87_data_unref (_data_->_data87_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_data87_ = 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 924 "unattended-file.c"
		}
	}
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp23_ = boxes_unattended_file_get_dest_name (_data_->self);
#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"
	_data_->_tmp25_ = boxes_unattended_file_get_disk_file (_data_->self);
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp26_ = _data_->_tmp25_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp27_ = _data_->_tmp26_;
#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_->_tmp24_, _data_->_tmp27_);
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp27_);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	block87_data_unref (_data_->_data87_);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data87_ = 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 (_data_->_task_complete_ != 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 953 "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 960 "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 967 "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 974 "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;
	const gchar* _tmp0_;
	BoxesArchiveReader* _tmp1_;
	BoxesArchiveWriter* writer = NULL;
	BoxesArchiveReader* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	BoxesArchiveWriter* _tmp6_;
	BoxesArchiveWriter* _tmp7_;
	BoxesArchiveWriter* _tmp8_;
	BoxesArchiveReader* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	gchar** _tmp12_;
	gchar** _tmp13_;
	gint _tmp13__length1;
	BoxesArchiveWriter* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	GFile* src = NULL;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	GFile* _tmp20_;
	GFile* _tmp21_;
	GFile* dst = NULL;
	const gchar* _tmp22_;
	GFile* _tmp23_;
	GFile* _tmp24_;
	GFile* _tmp25_;
	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_ = disk_file;
#line 34 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = boxes_archive_reader_new (_tmp0_, NULL, NULL, &_inner_error_);
#line 34 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	reader = _tmp1_;
#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 1029 "unattended-file.c"
	}
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = reader;
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp3_ = disk_file;
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp4_ = g_strconcat (_tmp3_, "~", NULL);
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp5_ = _tmp4_;
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp6_ = boxes_archive_writer_new_from_archive_reader (_tmp2_, _tmp5_, FALSE, &_inner_error_);
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp7_ = _tmp6_;
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp5_);
#line 36 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	writer = _tmp7_;
#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 1055 "unattended-file.c"
	}
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp8_ = writer;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp9_ = reader;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp10_ = dest_name;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp11_ = g_strdup (_tmp10_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp12_ = g_new0 (gchar*, 1 + 1);
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp12_[0] = _tmp11_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp13_ = _tmp12_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp13__length1 = 1;
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_archive_writer_import_read_archive (_tmp8_, _tmp9_, _tmp13_, 1, FALSE, &_inner_error_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp13_ = (_vala_array_free (_tmp13_, _tmp13__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 1087 "unattended-file.c"
	}
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp14_ = writer;
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp15_ = source_file;
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp16_ = dest_name;
#line 39 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_archive_writer_insert_file (_tmp14_, _tmp15_, _tmp16_, &_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 1107 "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"
	_tmp17_ = disk_file;
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp18_ = g_strconcat (_tmp17_, "~", NULL);
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp19_ = _tmp18_;
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp20_ = g_file_new_for_path (_tmp19_);
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp21_ = _tmp20_;
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp19_);
#line 45 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	src = _tmp21_;
#line 46 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp22_ = disk_file;
#line 46 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp23_ = g_file_new_for_path (_tmp22_);
#line 46 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	dst = _tmp23_;
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp24_ = src;
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp25_ = dst;
#line 48 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_file_move (_tmp24_, _tmp25_, 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 1157 "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 1167 "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 1186 "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_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	GCancellable* _tmp7_;
	GCancellable* _tmp8_;
#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"
	if (_callback_ == NULL) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_task_complete_ = TRUE;
#line 1209 "unattended-file.c"
	}
#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_ = disk_file;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = g_strdup (_tmp1_);
#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 = _tmp2_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp3_ = source_file;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp4_ = g_strdup (_tmp3_);
#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 = _tmp4_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp5_ = dest_name;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp6_ = g_strdup (_tmp5_);
#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 = _tmp6_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp7_ = cancellable;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp8_ = _g_object_ref0 (_tmp7_);
#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 = _tmp8_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_with_mcopy_co (_data_);
#line 1251 "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 1263 "unattended-file.c"
	}
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_task_complete_ = TRUE;
#line 1267 "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"
	_data_->_task_complete_ = TRUE;
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_with_mcopy_co (_data_);
#line 1283 "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 1292 "unattended-file.c"
		goto _state_0;
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 1:
#line 1296 "unattended-file.c"
		goto _state_1;
		default:
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 1301 "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_ = _data_->disk_file;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp5_ = g_strdup (_data_->_tmp4_);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp6_ = _data_->source_file;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_ = g_strdup (_data_->_tmp6_);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp8_ = _data_->dest_name;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp9_ = g_strconcat ("::", _data_->_tmp8_, NULL);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_ = g_new0 (gchar*, 7 + 1);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_[0] = _data_->_tmp0_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_[1] = _data_->_tmp1_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_[2] = _data_->_tmp2_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_[3] = _data_->_tmp3_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_[4] = _data_->_tmp5_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_[5] = _data_->_tmp7_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_[6] = _data_->_tmp9_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->argv = _data_->_tmp10_;
#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_->_tmp11_ = _data_->cancellable;
#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_->_tmp11_, boxes_unattended_file_copy_with_mcopy_ready, _data_);
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 1354 "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 1368 "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 (_data_->_task_complete_ != 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 1380 "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 1387 "unattended-file.c"
}


static gboolean boxes_unattended_file_is_libarchive_compatible (const gchar* filename) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_;
	gboolean _tmp2_;
#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"
	_tmp1_ = filename;
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = g_str_has_suffix (_tmp1_, ".img");
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (!_tmp2_) {
#line 1404 "unattended-file.c"
		const gchar* _tmp3_;
		gboolean _tmp4_;
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp3_ = filename;
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp4_ = g_str_has_suffix (_tmp3_, ".IMG");
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = !_tmp4_;
#line 1413 "unattended-file.c"
	} else {
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = FALSE;
#line 1417 "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 1423 "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 1432 "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 1441 "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 1450 "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 1459 "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 1468 "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 1493 "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 1502 "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 1511 "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 1530 "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;
	BoxesUnattendedInstaller* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
#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"
	_tmp0_ = installer;
#line 86 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, _tmp0_);
#line 87 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = src_path;
#line 87 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_src_path ((BoxesUnattendedFile*) self, _tmp1_);
#line 88 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = dest_name;
#line 88 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, _tmp2_);
#line 85 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return self;
#line 1575 "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 1582 "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 1597 "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_;
	GCancellable* _tmp2_;
#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"
	if (_callback_ == NULL) {
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_task_complete_ = TRUE;
#line 1617 "unattended-file.c"
	}
#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_ = cancellable;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#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 = _tmp2_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_raw_file_real_get_source_file_co (_data_);
#line 1635 "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 1648 "unattended-file.c"
	}
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_task_complete_ = TRUE;
#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 1658 "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 1667 "unattended-file.c"
		goto _state_0;
		default:
#line 91 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 1672 "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 (_data_->_task_complete_ != 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 1691 "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 1698 "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 1714 "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 1724 "unattended-file.c"
		const gchar* _tmp0_;
		gchar* _tmp1_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = g_strdup (_tmp0_);
#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 = _tmp1_;
#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]);
#line 1737 "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 1754 "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 1764 "unattended-file.c"
		const gchar* _tmp0_;
		gchar* _tmp1_;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = g_strdup (_tmp0_);
#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 = _tmp1_;
#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]);
#line 1777 "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 1794 "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 1804 "unattended-file.c"
		BoxesUnattendedInstaller* _tmp0_;
		BoxesUnattendedInstaller* _tmp1_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#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 = _tmp1_;
#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]);
#line 1817 "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, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_DEST_NAME] = 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, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_SRC_PATH] = 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, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_INSTALLER] = 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 1839 "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 1862 "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 1869 "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 1885 "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:
#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:
#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:
#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 1926 "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 1932 "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:
#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:
#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:
#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 1960 "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 1966 "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;
	BoxesUnattendedInstaller* _tmp0_;
	OsinfoInstallScript* _tmp1_;
	const gchar* _tmp2_;
	OsinfoInstallScriptInjectionMethod injection_methods = 0;
	OsinfoInstallScript* _tmp3_;
	OsinfoInstallScriptInjectionMethod _tmp4_;
	OsinfoInstallScriptInjectionMethod _tmp5_;
	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"
	_tmp0_ = installer;
#line 124 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, _tmp0_);
#line 125 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = script;
#line 125 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_script_file_set_script (self, _tmp1_);
#line 126 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = dest_name;
#line 126 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, _tmp2_);
#line 128 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp3_ = script;
#line 128 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp4_ = osinfo_install_script_get_injection_methods (_tmp3_);
#line 128 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	injection_methods = _tmp4_;
#line 129 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp5_ = injection_methods;
#line 129 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if ((_tmp5_ & 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 2013 "unattended-file.c"
	} else {
		OsinfoInstallScriptInjectionMethod _tmp6_;
#line 131 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp6_ = injection_methods;
#line 131 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if ((_tmp6_ & 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 2022 "unattended-file.c"
		} else {
			OsinfoInstallScriptInjectionMethod _tmp7_;
#line 133 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_tmp7_ = injection_methods;
#line 133 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			if ((_tmp7_ & 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 2031 "unattended-file.c"
			} else {
				GError* _tmp8_;
#line 136 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				_tmp8_ = 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_ = _tmp8_;
#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 2044 "unattended-file.c"
			}
		}
	}
#line 120 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return self;
#line 2050 "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 2057 "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 2072 "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_;
	GCancellable* _tmp2_;
#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"
	if (_callback_ == NULL) {
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_task_complete_ = TRUE;
#line 2092 "unattended-file.c"
	}
#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_ = cancellable;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#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 = _tmp2_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_script_file_real_get_source_file_co (_data_);
#line 2110 "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 2123 "unattended-file.c"
	}
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_task_complete_ = TRUE;
#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 2133 "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"
	_data_->_task_complete_ = TRUE;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_script_file_real_get_source_file_co (_data_);
#line 2149 "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 2158 "unattended-file.c"
		goto _state_0;
#line 150 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 1:
#line 2162 "unattended-file.c"
		goto _state_1;
		default:
#line 150 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 2167 "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_->_tmp15_ = _data_->cancellable;
#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_->_tmp15_, boxes_unattended_script_file_get_source_file_ready, _data_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 2212 "unattended-file.c"
	_state_1:
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp16_ = 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_->_tmp16_;
#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 2228 "unattended-file.c"
	}
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp17_ = _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_->_tmp17_;
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp18_ = _data_->self->priv->unattended_tmp;
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp19_ = _g_object_ref0 (_data_->_tmp18_);
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = _data_->_tmp19_;
#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 (_data_->_task_complete_ != 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 2256 "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 2263 "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 2279 "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 2289 "unattended-file.c"
		const gchar* _tmp0_;
		gchar* _tmp1_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = g_strdup (_tmp0_);
#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 = _tmp1_;
#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]);
#line 2302 "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 2319 "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 2329 "unattended-file.c"
		const gchar* _tmp0_;
		gchar* _tmp1_;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = g_strdup (_tmp0_);
#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 = _tmp1_;
#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]);
#line 2342 "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 2358 "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 2367 "unattended-file.c"
		OsinfoInstallScriptInjectionMethod _tmp0_;
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_injection_method = _tmp0_;
#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]);
#line 2375 "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 2394 "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 2412 "unattended-file.c"
		}
#line 103 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_INITRD:
#line 2416 "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 2434 "unattended-file.c"
		}
		default:
		{
#line 110 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_assert_not_reached ();
#line 2440 "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 2458 "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 2468 "unattended-file.c"
		BoxesUnattendedInstaller* _tmp0_;
		BoxesUnattendedInstaller* _tmp1_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#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 = _tmp1_;
#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]);
#line 2481 "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 2497 "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 2506 "unattended-file.c"
		OsinfoInstallScript* _tmp0_;
		OsinfoInstallScript* _tmp1_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#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 = _tmp1_;
#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]);
#line 2519 "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, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME] = 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, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH] = 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, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD] = 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, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER] = 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, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT] = 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 2545 "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 2570 "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 2577 "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 2591 "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 2602 "unattended-file.c"
			goto __catch91_g_error;
		}
	}
	goto __finally91;
	__catch91_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 2635 "unattended-file.c"
	}
	__finally91:
#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 2644 "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 2659 "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:
#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:
#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:
#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:
#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:
#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 2712 "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 2718 "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:
#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:
#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:
#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:
#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:
#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 2758 "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 2764 "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 2772 "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 2784 "unattended-file.c"
		}
	}
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 2789 "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 2796 "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 2803 "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;
	BoxesUnattendedInstaller* _tmp0_;
	const gchar* _tmp1_;
	OsinfoAvatarFormat* _tmp2_;
	OsinfoAvatarFormat* _tmp3_;
	GSList* _tmp4_;
	GdkPixbufFormat* _tmp24_;
	BoxesUnattendedInstaller* _tmp26_;
	BoxesUnattendedSetupBox* _tmp27_;
	const gchar* _tmp28_;
	const gchar* _tmp29_;
	gchar* _tmp30_;
	gchar* _tmp31_;
	GdkPixbufFormat* _tmp32_;
	gchar** _tmp33_;
	gchar** _tmp34_;
	gchar** _tmp35_;
	gint _tmp35__length1;
	const gchar* _tmp36_;
	gchar* _tmp37_;
	gchar* _tmp38_;
	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"
	_tmp0_ = installer;
#line 176 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, _tmp0_);
#line 177 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = src_path;
#line 177 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_src_path ((BoxesUnattendedFile*) self, _tmp1_);
#line 179 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = avatar_format;
#line 179 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#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 = _tmp3_;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp4_ = gdk_pixbuf_get_formats ();
#line 2854 "unattended-file.c"
	{
		GSList* format_collection = NULL;
		GSList* format_it = NULL;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		format_collection = _tmp4_;
#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 2862 "unattended-file.c"
			GdkPixbufFormat* format = NULL;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			format = (GdkPixbufFormat*) format_it->data;
#line 2866 "unattended-file.c"
			{
				OsinfoAvatarFormat* _tmp5_;
				GdkPixbufFormat* _tmp23_;
#line 182 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				_tmp5_ = avatar_format;
#line 182 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				if (_tmp5_ != NULL) {
#line 2874 "unattended-file.c"
					OsinfoAvatarFormat* _tmp6_;
					GList* _tmp7_;
					GList* _tmp8_;
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp6_ = avatar_format;
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp7_ = osinfo_avatar_format_get_mime_types (_tmp6_);
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp8_ = _tmp7_;
#line 2884 "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 = _tmp8_;
#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 2892 "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 2896 "unattended-file.c"
							{
								const gchar* _tmp9_;
								GdkPixbufFormat* _tmp10_;
								gchar** _tmp11_;
								gchar** _tmp12_;
								gchar** _tmp13_;
								gint _tmp13__length1;
								gboolean _tmp14_;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp9_ = mime_type;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp10_ = format;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp12_ = _tmp11_ = gdk_pixbuf_format_get_mime_types (_tmp10_);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp13_ = _tmp12_;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp13__length1 = _vala_array_length (_tmp11_);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp14_ = _vala_string_array_contains (_tmp13_, _vala_array_length (_tmp11_), _tmp9_);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp13_ = (_vala_array_free (_tmp13_, _tmp13__length1, (GDestroyNotify) g_free), NULL);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								if (_tmp14_) {
#line 2921 "unattended-file.c"
									GdkPixbufFormat* _tmp15_;
									GdkPixbufFormat* _tmp16_;
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									_tmp15_ = format;
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									_tmp16_ = __vala_GdkPixbufFormat_copy0 (_tmp15_);
#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 = _tmp16_;
#line 187 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									break;
#line 2934 "unattended-file.c"
								}
							}
						}
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						_g_list_free0 (mime_type_collection);
#line 2940 "unattended-file.c"
					}
				} else {
					GdkPixbufFormat* _tmp17_;
					gchar* _tmp18_;
					gchar* _tmp19_;
					gboolean _tmp20_;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp17_ = format;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp18_ = gdk_pixbuf_format_get_name (_tmp17_);
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp19_ = _tmp18_;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp20_ = g_strcmp0 (_tmp19_, "png") == 0;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_g_free0 (_tmp19_);
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					if (_tmp20_) {
#line 2959 "unattended-file.c"
						GdkPixbufFormat* _tmp21_;
						GdkPixbufFormat* _tmp22_;
#line 191 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						_tmp21_ = format;
#line 191 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						_tmp22_ = __vala_GdkPixbufFormat_copy0 (_tmp21_);
#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 = _tmp22_;
#line 2970 "unattended-file.c"
					}
				}
#line 193 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				_tmp23_ = self->priv->pixbuf_format;
#line 193 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				if (_tmp23_ != NULL) {
#line 194 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					break;
#line 2979 "unattended-file.c"
				}
			}
		}
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_slist_free0 (format_collection);
#line 2985 "unattended-file.c"
	}
#line 197 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp24_ = self->priv->pixbuf_format;
#line 197 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_tmp24_ == NULL) {
#line 2991 "unattended-file.c"
		GError* _tmp25_;
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp25_ = 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_ = _tmp25_;
#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 3005 "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 3013 "unattended-file.c"
		}
	}
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp26_ = installer;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp27_ = _tmp26_->setup_box;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp28_ = boxes_unattended_setup_box_get_username (_tmp27_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp29_ = _tmp28_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp30_ = g_strconcat (_tmp29_, ".", NULL);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp31_ = _tmp30_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp32_ = self->priv->pixbuf_format;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp34_ = _tmp33_ = gdk_pixbuf_format_get_extensions (_tmp32_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp35_ = _tmp34_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp35__length1 = _vala_array_length (_tmp33_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp36_ = _tmp35_[0];
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp37_ = g_strconcat (_tmp31_, _tmp36_, NULL);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp38_ = _tmp37_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, _tmp38_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp38_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp35_ = (_vala_array_free (_tmp35_, _tmp35__length1, (GDestroyNotify) g_free), NULL);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp31_);
#line 174 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return self;
#line 3052 "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 3059 "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 3074 "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_;
	GCancellable* _tmp2_;
#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"
	if (_callback_ == NULL) {
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_task_complete_ = TRUE;
#line 3094 "unattended-file.c"
	}
#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_ = cancellable;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#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 = _tmp2_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_avatar_file_real_get_source_file_co (_data_);
#line 3112 "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 3125 "unattended-file.c"
	}
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_task_complete_ = TRUE;
#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 3135 "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 3144 "unattended-file.c"
		goto _state_0;
		default:
#line 214 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 3149 "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 3164 "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 3178 "unattended-file.c"
		} else {
#line 218 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp5_ = -1;
#line 3182 "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 3198 "unattended-file.c"
		} else {
#line 219 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp10_ = -1;
#line 3202 "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 3220 "unattended-file.c"
			goto __catch93_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 3235 "unattended-file.c"
		} else {
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp21_ = FALSE;
#line 3239 "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_->_tmp27_ = gdk_pixbuf_get_has_alpha (_data_->_tmp26_);
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp20_ = _data_->_tmp27_;
#line 3249 "unattended-file.c"
		} else {
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp20_ = FALSE;
#line 3253 "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_->_tmp28_ = _data_->pixbuf;
#line 223 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp29_ = boxes_remove_alpha (_data_->_tmp28_);
#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_->_tmp29_;
#line 3265 "unattended-file.c"
		}
#line 225 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp30_ = _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_->_tmp30_);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp31_ = _data_->pixbuf;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp32_ = _data_->destination_path;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp33_ = _data_->self->priv->pixbuf_format;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp34_ = gdk_pixbuf_format_get_name (_data_->_tmp33_);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp35_ = _data_->_tmp34_;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		gdk_pixbuf_save (_data_->_tmp31_, _data_->_tmp32_, _data_->_tmp35_, &_data_->_inner_error_, NULL);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_data_->_tmp35_);
#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 3289 "unattended-file.c"
			goto __catch93_g_error;
		}
#line 227 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp36_ = _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_->_tmp36_);
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (_data_->pixbuf);
#line 3298 "unattended-file.c"
	}
	goto __finally93;
	__catch93_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_->_tmp37_ = _data_->_error_;
#line 229 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp38_ = _data_->_tmp37_->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_->_tmp38_);
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_error_free0 (_data_->_error_);
#line 3315 "unattended-file.c"
	}
	__finally93:
#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 3328 "unattended-file.c"
	}
#line 232 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp39_ = _data_->destination_path;
#line 232 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp40_ = g_file_new_for_path (_data_->_tmp39_);
#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_->_tmp40_;
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp41_ = _data_->self->priv->unattended_tmp;
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp42_ = _g_object_ref0 (_data_->_tmp41_);
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = _data_->_tmp42_;
#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 (_data_->_task_complete_ != 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 3354 "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 3361 "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 3377 "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 3387 "unattended-file.c"
		const gchar* _tmp0_;
		gchar* _tmp1_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = g_strdup (_tmp0_);
#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 = _tmp1_;
#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]);
#line 3400 "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 3417 "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 3427 "unattended-file.c"
		const gchar* _tmp0_;
		gchar* _tmp1_;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = g_strdup (_tmp0_);
#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 = _tmp1_;
#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]);
#line 3440 "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 3457 "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 3467 "unattended-file.c"
		BoxesUnattendedInstaller* _tmp0_;
		BoxesUnattendedInstaller* _tmp1_;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = value;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#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 = _tmp1_;
#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]);
#line 3480 "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, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME] = 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, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH] = 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, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_INSTALLER] = 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 3502 "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 3525 "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 3532 "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 3546 "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 3557 "unattended-file.c"
			goto __catch92_g_error;
		}
	}
	goto __finally92;
	__catch92_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 3590 "unattended-file.c"
	}
	__finally92:
#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 3599 "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 3616 "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:
#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:
#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:
#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 3657 "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 3663 "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:
#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:
#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:
#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 3691 "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 3697 "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 3705 "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 3713 "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 3725 "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 3738 "unattended-file.c"
		}
	}
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	return length;
#line 3743 "unattended-file.c"
}



