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

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

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


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

typedef struct _BoxesUnattendedFile BoxesUnattendedFile;
typedef struct _BoxesUnattendedFileIface BoxesUnattendedFileIface;

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

typedef struct _BoxesInstallerMedia BoxesInstallerMedia;
typedef struct _BoxesInstallerMediaClass BoxesInstallerMediaClass;

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

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

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

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

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

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

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

typedef struct _BoxesArchiveReader BoxesArchiveReader;
typedef struct _BoxesArchiveReaderClass BoxesArchiveReaderClass;

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

typedef struct _BoxesArchiveWriter BoxesArchiveWriter;
typedef struct _BoxesArchiveWriterClass BoxesArchiveWriterClass;
typedef struct _BoxesUnattendedFileCopyWithMcopyData BoxesUnattendedFileCopyWithMcopyData;
typedef struct _BoxesInstallerMediaPrivate BoxesInstallerMediaPrivate;

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

typedef struct _BoxesVMCreator BoxesVMCreator;
typedef struct _BoxesVMCreatorClass BoxesVMCreatorClass;
typedef struct _BoxesUnattendedInstallerPrivate BoxesUnattendedInstallerPrivate;

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

typedef struct _BoxesUnattendedSetupBox BoxesUnattendedSetupBox;
typedef struct _BoxesUnattendedSetupBoxClass BoxesUnattendedSetupBoxClass;

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

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

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

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

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

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

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

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

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

struct _BoxesAppClass {
	GtkApplicationClass parent_class;
};

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

struct _BoxesUnattendedFileCopyWithMcopyData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GAsyncReadyCallback _callback_;
	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_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar** _tmp7_;
	gint argv_length1;
	gint _argv_size_;
	GError * _inner_error_;
};

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

struct _BoxesInstallerMediaClass {
	GObjectClass parent_class;
	void (*set_direct_boot_params) (BoxesInstallerMedia* self, GVirConfigDomainOs* os);
	void (*prepare) (BoxesInstallerMedia* self, BoxesActivityProgress* progress, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*prepare_finish) (BoxesInstallerMedia* self, GAsyncResult* _res_);
	void (*prepare_for_installation) (BoxesInstallerMedia* self, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*prepare_for_installation_finish) (BoxesInstallerMedia* self, GAsyncResult* _res_);
	void (*prepare_to_continue_installation) (BoxesInstallerMedia* self, const gchar* vm_name);
	void (*clean_up) (BoxesInstallerMedia* self);
	void (*clean_up_preparation_cache) (BoxesInstallerMedia* self);
	void (*setup_domain_config) (BoxesInstallerMedia* self, GVirConfigDomain* domain);
	void (*setup_post_install_domain_config) (BoxesInstallerMedia* self, GVirConfigDomain* domain);
	void (*populate_setup_box) (BoxesInstallerMedia* self, GtkBox* setup_box);
	GList* (*get_vm_properties) (BoxesInstallerMedia* self);
	BoxesVMCreator* (*get_vm_creator) (BoxesInstallerMedia* self);
	OsinfoDeviceList* (*get_supported_devices) (BoxesInstallerMedia* self);
	guint64 (*get_installed_size) (BoxesInstallerMedia* self);
	gboolean (*get_need_user_input_for_vm_creation) (BoxesInstallerMedia* self);
	gboolean (*get_ready_to_create) (BoxesInstallerMedia* self);
	gboolean (*get_live) (BoxesInstallerMedia* self);
	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;
	GAsyncReadyCallback _callback_;
	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;
	GAsyncReadyCallback _callback_;
	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_;
	GFile* _tmp15_;
	GFile* _tmp16_;
	GFile* _tmp17_;
	GFile* _tmp18_;
	GError * _inner_error_;
};

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

struct _BoxesUnattendedAvatarFileClass {
	GObjectClass parent_class;
};

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

struct _BoxesUnattendedAvatarFileGetSourceFileData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GAsyncReadyCallback _callback_;
	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_;
	GdkPixbuf* _tmp27_;
	GdkPixbuf* _tmp28_;
	const gchar* _tmp29_;
	GdkPixbuf* _tmp30_;
	const gchar* _tmp31_;
	GdkPixbufFormat* _tmp32_;
	gchar* _tmp33_;
	gchar* _tmp34_;
	const gchar* _tmp35_;
	GError* _error_;
	GError* _tmp36_;
	const gchar* _tmp37_;
	const gchar* _tmp38_;
	GFile* _tmp39_;
	GFile* _tmp40_;
	GFile* _tmp41_;
	GError * _inner_error_;
};


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

GType boxes_installer_media_get_type (void) G_GNUC_CONST;
GType boxes_unattended_installer_get_type (void) G_GNUC_CONST;
GType boxes_unattended_file_get_type (void) G_GNUC_CONST;
static void boxes_unattended_file_copy_data_free (gpointer _data);
static void boxes_unattended_file_copy_async_ready_wrapper (GObject *source_object,
                                                     GAsyncResult *res,
                                                     void *user_data);
void boxes_unattended_file_copy (BoxesUnattendedFile* self,
                                 GCancellable* cancellable,
                                 GAsyncReadyCallback _callback_,
                                 gpointer _user_data_);
void boxes_unattended_file_copy_finish (BoxesUnattendedFile* self,
                                        GAsyncResult* _res_,
                                        GError** error);
static gboolean boxes_unattended_file_copy_co (BoxesUnattendedFileCopyData* _data_);
static Block83Data* block83_data_ref (Block83Data* _data83_);
static void block83_data_unref (void * _userdata_);
void boxes_unattended_file_get_source_file (BoxesUnattendedFile* self,
                                            GCancellable* cancellable,
                                            GAsyncReadyCallback _callback_,
                                            gpointer _user_data_);
GFile* boxes_unattended_file_get_source_file_finish (BoxesUnattendedFile* self,
                                                     GAsyncResult* _res_,
                                                     GError** error);
static void boxes_unattended_file_copy_ready (GObject* source_object,
                                       GAsyncResult* _res_,
                                       gpointer _user_data_);
const gchar* boxes_unattended_file_get_dest_name (BoxesUnattendedFile* self);
gchar* boxes_unattended_file_get_disk_file (BoxesUnattendedFile* self);
static gboolean boxes_unattended_file_is_libarchive_compatible (const gchar* filename);
GType boxes_app_get_type (void) G_GNUC_CONST;
GType boxes_collection_get_type (void) G_GNUC_CONST;
static void ___lambda27_ (Block83Data* _data83_,
                   GError** error);
static void boxes_unattended_file_copy_with_libarchive (BoxesUnattendedFile* self,
                                                 const gchar* disk_file,
                                                 const gchar* source_file,
                                                 const gchar* dest_name,
                                                 GError** error);
static void ____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 void boxes_unattended_file_copy_with_mcopy_async_ready_wrapper (GObject *source_object,
                                                                GAsyncResult *res,
                                                                void *user_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_async_ready_wrapper (GObject *source_object,
                                                                         GAsyncResult *res,
                                                                         void *user_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_async_ready_wrapper (GObject *source_object,
                                                                            GAsyncResult *res,
                                                                            void *user_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_async_ready_wrapper (GObject *source_object,
                                                                            GAsyncResult *res,
                                                                            void *user_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 732 "unattended-file.c"
}


static void
boxes_unattended_file_copy_async_ready_wrapper (GObject *source_object,
                                                GAsyncResult *res,
                                                void *user_data)
{
	BoxesUnattendedFileCopyData* _task_data_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_task_data_->_callback_ != NULL) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 748 "unattended-file.c"
	}
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_task_data_->_task_complete_ = TRUE;
#line 752 "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 761 "unattended-file.c"
}


void
boxes_unattended_file_copy (BoxesUnattendedFile* self,
                            GCancellable* cancellable,
                            GAsyncReadyCallback _callback_,
                            gpointer _user_data_)
{
	BoxesUnattendedFileCopyData* _data_;
	BoxesUnattendedFile* _tmp0_;
	GCancellable* _tmp1_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_slice_new0 (BoxesUnattendedFileCopyData);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_callback_ = _callback_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, boxes_unattended_file_copy_async_ready_wrapper, _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 784 "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_ = _g_object_ref0 (cancellable);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->cancellable = _tmp1_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_co (_data_);
#line 800 "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 816 "unattended-file.c"
	}
}


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


static void
block83_data_unref (void * _userdata_)
{
	Block83Data* _data83_;
	_data83_ = (Block83Data*) _userdata_;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (g_atomic_int_dec_and_test (&_data83_->_ref_count_)) {
#line 839 "unattended-file.c"
		BoxesUnattendedFile* self;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self = _data83_->self;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (_data83_->source_file);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (self);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_slice_free (Block83Data, _data83_);
#line 849 "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 870 "unattended-file.c"
}


static void
___lambda27_ (Block83Data* _data83_,
              GError** error)
{
	BoxesUnattendedFile* self;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GFile* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	GError * _inner_error_ = NULL;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = _data83_->self;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = boxes_unattended_file_get_disk_file (self);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = _tmp0_;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = _tmp1_;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp3_ = _data83_->source_file;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp4_ = g_file_get_path (_tmp3_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp5_ = _tmp4_;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp6_ = boxes_unattended_file_get_dest_name (self);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp7_ = _tmp6_;
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_with_libarchive (self, _tmp2_, _tmp5_, _tmp7_, &_inner_error_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp5_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp2_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_propagate_error (error, _inner_error_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return;
#line 918 "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 929 "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 940 "unattended-file.c"
		goto _state_0;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 1:
#line 944 "unattended-file.c"
		goto _state_1;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 2:
#line 948 "unattended-file.c"
		goto _state_2;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 3:
#line 952 "unattended-file.c"
		goto _state_3;
		default:
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 957 "unattended-file.c"
	}
	_state_0:
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_ = g_slice_new0 (Block83Data);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_->_ref_count_ = 1;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_->self = g_object_ref (_data_->self);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_->_async_data_ = _data_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_state_ = 1;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_get_source_file (_data_->self, _data_->cancellable, boxes_unattended_file_copy_ready, _data_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 974 "unattended-file.c"
	_state_1:
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp0_ = boxes_unattended_file_get_source_file_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_->source_file = _data_->_tmp0_;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		block83_data_unref (_data_->_data83_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_data83_ = NULL;
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_unref (_data_->_async_result);
#line 17 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 992 "unattended-file.c"
	}
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp1_ = boxes_unattended_file_get_dest_name (_data_->self);
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp3_ = boxes_unattended_file_get_disk_file (_data_->self);
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_debug ("unattended-file.vala:19: Copying unattended file '%s' into disk drive/" \
"image '%s'", _data_->_tmp2_, _data_->_tmp5_);
#line 19 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp5_);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp6_ = boxes_unattended_file_get_disk_file (_data_->self);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp8_ = _data_->_tmp7_;
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp9_ = boxes_unattended_file_is_libarchive_compatible (_data_->_tmp8_);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp8_);
#line 21 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_tmp9_) {
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp10_ = boxes_app_app;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp11_ = _data_->_tmp10_->async_launcher;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_state_ = 2;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_async_launcher_launch (_data_->_tmp11_, ____lambda27__boxes_async_launcher_run_in_thread_func, block83_data_ref (_data_->_data83_), block83_data_unref, boxes_unattended_file_copy_ready, _data_);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 1030 "unattended-file.c"
		_state_2:
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_async_launcher_launch_finish (_data_->_tmp11_, _data_->_res_, &_data_->_inner_error_);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			block83_data_unref (_data_->_data83_);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_data83_ = NULL;
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_object_unref (_data_->_async_result);
#line 22 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			return FALSE;
#line 1046 "unattended-file.c"
		}
	} else {
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp12_ = boxes_unattended_file_get_disk_file (_data_->self);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp13_ = _data_->_tmp12_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp14_ = _data_->_tmp13_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp15_ = _data_->_data83_->source_file;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp16_ = g_file_get_path (_data_->_tmp15_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp17_ = _data_->_tmp16_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp18_ = boxes_unattended_file_get_dest_name (_data_->self);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp19_ = _data_->_tmp18_;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_state_ = 3;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_copy_with_mcopy (_data_->self, _data_->_tmp14_, _data_->_tmp17_, _data_->_tmp19_, _data_->cancellable, boxes_unattended_file_copy_ready, _data_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 1071 "unattended-file.c"
		_state_3:
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_copy_with_mcopy_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_data_->_tmp17_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_data_->_tmp14_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			block83_data_unref (_data_->_data83_);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_data83_ = NULL;
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_object_unref (_data_->_async_result);
#line 26 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			return FALSE;
#line 1091 "unattended-file.c"
		}
	}
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp20_ = boxes_unattended_file_get_dest_name (_data_->self);
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp21_ = _data_->_tmp20_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp22_ = boxes_unattended_file_get_disk_file (_data_->self);
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp23_ = _data_->_tmp22_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp24_ = _data_->_tmp23_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_debug ("unattended-file.vala:28: Copied unattended file '%s' into disk drive/i" \
"mage '%s'", _data_->_tmp21_, _data_->_tmp24_);
#line 28 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp24_);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	block83_data_unref (_data_->_data83_);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_data83_ = NULL;
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_state_ != 0) {
#line 16 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		while (_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 1120 "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 1127 "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 1139 "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 1150 "unattended-file.c"
}


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


static void
boxes_unattended_file_copy_with_mcopy_async_ready_wrapper (GObject *source_object,
                                                           GAsyncResult *res,
                                                           void *user_data)
{
	BoxesUnattendedFileCopyWithMcopyData* _task_data_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_task_data_->_callback_ != NULL) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 1365 "unattended-file.c"
	}
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_task_data_->_task_complete_ = TRUE;
#line 1369 "unattended-file.c"
}


static void
boxes_unattended_file_copy_with_mcopy (BoxesUnattendedFile* self,
                                       const gchar* disk_file,
                                       const gchar* source_file,
                                       const gchar* dest_name,
                                       GCancellable* cancellable,
                                       GAsyncReadyCallback _callback_,
                                       gpointer _user_data_)
{
	BoxesUnattendedFileCopyWithMcopyData* _data_;
	BoxesUnattendedFile* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	GCancellable* _tmp4_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_slice_new0 (BoxesUnattendedFileCopyWithMcopyData);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_callback_ = _callback_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, boxes_unattended_file_copy_with_mcopy_async_ready_wrapper, _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 1398 "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_ = g_strdup (disk_file);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->disk_file);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->disk_file = _tmp1_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp2_ = g_strdup (source_file);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->source_file);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->source_file = _tmp2_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp3_ = g_strdup (dest_name);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->dest_name);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->dest_name = _tmp3_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp4_ = _g_object_ref0 (cancellable);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->cancellable = _tmp4_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_copy_with_mcopy_co (_data_);
#line 1432 "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 1448 "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 1469 "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 1480 "unattended-file.c"
		goto _state_0;
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 1:
#line 1484 "unattended-file.c"
		goto _state_1;
		default:
#line 51 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 1489 "unattended-file.c"
	}
	_state_0:
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp0_ = g_strdup ("mcopy");
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp1_ = g_strdup ("-n");
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp2_ = g_strdup ("-o");
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp3_ = g_strdup ("-i");
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp4_ = g_strdup (_data_->disk_file);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp5_ = g_strdup (_data_->source_file);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp6_ = g_strconcat ("::", _data_->dest_name, NULL);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_ = g_new0 (gchar*, 7 + 1);
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[0] = _data_->_tmp0_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[1] = _data_->_tmp1_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[2] = _data_->_tmp2_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[3] = _data_->_tmp3_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[4] = _data_->_tmp4_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[5] = _data_->_tmp5_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_[6] = _data_->_tmp6_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->argv = _data_->_tmp7_;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->argv_length1 = 7;
#line 56 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_argv_size_ = _data_->argv_length1;
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_state_ = 1;
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_exec (_data_->argv, _data_->argv_length1, _data_->cancellable, boxes_unattended_file_copy_with_mcopy_ready, _data_);
#line 63 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 1534 "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 1548 "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 1560 "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 1567 "unattended-file.c"
}


static gboolean
boxes_unattended_file_is_libarchive_compatible (const gchar* filename)
{
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
#line 66 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (filename != NULL, FALSE);
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (!g_str_has_suffix (filename, ".img")) {
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = !g_str_has_suffix (filename, ".IMG");
#line 1582 "unattended-file.c"
	} else {
#line 75 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = FALSE;
#line 1586 "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 1592 "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 1603 "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 1615 "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 1626 "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 1638 "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 1649 "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 1676 "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 1687 "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 1699 "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 1720 "unattended-file.c"
	}
}


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


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


static void
boxes_unattended_raw_file_real_get_source_file_async_ready_wrapper (GObject *source_object,
                                                                    GAsyncResult *res,
                                                                    void *user_data)
{
	BoxesUnattendedRawFileGetSourceFileData* _task_data_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_task_data_->_callback_ != NULL) {
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 1807 "unattended-file.c"
	}
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_task_data_->_task_complete_ = TRUE;
#line 1811 "unattended-file.c"
}


static void
boxes_unattended_raw_file_real_get_source_file (BoxesUnattendedFile* base,
                                                GCancellable* cancellable,
                                                GAsyncReadyCallback _callback_,
                                                gpointer _user_data_)
{
	BoxesUnattendedRawFile * self;
	BoxesUnattendedRawFileGetSourceFileData* _data_;
	BoxesUnattendedRawFile* _tmp0_;
	GCancellable* _tmp1_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedRawFile*) base;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_slice_new0 (BoxesUnattendedRawFileGetSourceFileData);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_callback_ = _callback_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, boxes_unattended_raw_file_real_get_source_file_async_ready_wrapper, _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 1837 "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_ = _g_object_ref0 (cancellable);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->cancellable = _tmp1_;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_raw_file_real_get_source_file_co (_data_);
#line 1853 "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 1870 "unattended-file.c"
	}
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _data_->result;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = NULL;
#line 79 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 1878 "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 1889 "unattended-file.c"
		goto _state_0;
		default:
#line 91 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 1894 "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 1913 "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 1920 "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 1938 "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 1951 "unattended-file.c"
		gchar* _tmp0_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_dest_name);
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_dest_name = _tmp0_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_DEST_NAME_PROPERTY]);
#line 1961 "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 1980 "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 1993 "unattended-file.c"
		gchar* _tmp0_;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_src_path);
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_src_path = _tmp0_;
#line 81 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_SRC_PATH_PROPERTY]);
#line 2003 "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 2022 "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 2035 "unattended-file.c"
		BoxesUnattendedInstaller* _tmp0_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (self->priv->_installer);
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_installer = _tmp0_;
#line 83 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_raw_file_properties[BOXES_UNATTENDED_RAW_FILE_INSTALLER_PROPERTY]);
#line 2045 "unattended-file.c"
	}
}


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


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


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


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


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


static void
boxes_unattended_script_file_real_get_source_file_async_ready_wrapper (GObject *source_object,
                                                                       GAsyncResult *res,
                                                                       void *user_data)
{
	BoxesUnattendedScriptFileGetSourceFileData* _task_data_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_task_data_->_callback_ != NULL) {
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 2334 "unattended-file.c"
	}
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_task_data_->_task_complete_ = TRUE;
#line 2338 "unattended-file.c"
}


static void
boxes_unattended_script_file_real_get_source_file (BoxesUnattendedFile* base,
                                                   GCancellable* cancellable,
                                                   GAsyncReadyCallback _callback_,
                                                   gpointer _user_data_)
{
	BoxesUnattendedScriptFile * self;
	BoxesUnattendedScriptFileGetSourceFileData* _data_;
	BoxesUnattendedScriptFile* _tmp0_;
	GCancellable* _tmp1_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedScriptFile*) base;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_slice_new0 (BoxesUnattendedScriptFileGetSourceFileData);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_callback_ = _callback_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, boxes_unattended_script_file_real_get_source_file_async_ready_wrapper, _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 2364 "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_ = _g_object_ref0 (cancellable);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->cancellable = _tmp1_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_script_file_real_get_source_file_co (_data_);
#line 2380 "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 2397 "unattended-file.c"
	}
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _data_->result;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = NULL;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 2405 "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 2425 "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 2436 "unattended-file.c"
		goto _state_0;
#line 150 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case 1:
#line 2440 "unattended-file.c"
		goto _state_1;
		default:
#line 150 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 2445 "unattended-file.c"
	}
	_state_0:
#line 151 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp0_ = boxes_unattended_file_get_installer ((BoxesUnattendedFile*) _data_->self);
#line 151 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 151 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp2_ = _data_->self->priv->_script;
#line 151 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_installer_configure_install_script (_data_->_tmp1_, _data_->_tmp2_);
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp3_ = boxes_get_user_pkgcache (NULL);
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp5_ = g_file_new_for_path (_data_->_tmp4_);
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->_tmp4_);
#line 152 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->output_dir = _data_->_tmp6_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp8_ = _data_->self->priv->_script;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp9_ = boxes_unattended_file_get_installer ((BoxesUnattendedFile*) _data_->self);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp10_ = _data_->_tmp9_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp11_ = ((BoxesInstallerMedia*) _data_->_tmp10_)->os_media;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp12_ = boxes_unattended_file_get_installer ((BoxesUnattendedFile*) _data_->self);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp13_ = _data_->_tmp12_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp14_ = _data_->_tmp13_->config;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_state_ = 1;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	osinfo_install_script_generate_output_for_media_async (_data_->_tmp8_, _data_->_tmp11_, _data_->_tmp14_, _data_->output_dir, _data_->cancellable, boxes_unattended_script_file_get_source_file_ready, _data_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 2488 "unattended-file.c"
	_state_1:
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp15_ = osinfo_install_script_generate_output_for_media_finish (_data_->_tmp8_, _data_->_res_, &_data_->_inner_error_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_ = _data_->_tmp15_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (_data_->output_dir);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_unref (_data_->_async_result);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		return FALSE;
#line 2504 "unattended-file.c"
	}
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp16_ = _data_->_tmp7_;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp7_ = NULL;
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->self->priv->unattended_tmp);
#line 154 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->self->priv->unattended_tmp = _data_->_tmp16_;
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp17_ = _data_->self->priv->unattended_tmp;
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp18_ = _g_object_ref0 (_data_->_tmp17_);
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = _data_->_tmp18_;
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->_tmp7_);
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->output_dir);
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_state_ != 0) {
#line 159 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		while (_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 2532 "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 2539 "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 2557 "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 2570 "unattended-file.c"
		gchar* _tmp0_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_dest_name);
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_dest_name = _tmp0_;
#line 97 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME_PROPERTY]);
#line 2580 "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 2599 "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 2612 "unattended-file.c"
		gchar* _tmp0_;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_src_path);
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_src_path = _tmp0_;
#line 98 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH_PROPERTY]);
#line 2622 "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 2640 "unattended-file.c"
}


void
boxes_unattended_script_file_set_injection_method (BoxesUnattendedScriptFile* self,
                                                   OsinfoInstallScriptInjectionMethod value)
{
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_if_fail (self != NULL);
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (boxes_unattended_script_file_get_injection_method (self) != value) {
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_injection_method = value;
#line 99 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD_PROPERTY]);
#line 2656 "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 2677 "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 2695 "unattended-file.c"
		}
#line 103 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_INITRD:
#line 2699 "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 2717 "unattended-file.c"
		}
		default:
		{
#line 110 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_assert_not_reached ();
#line 2723 "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 2743 "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 2756 "unattended-file.c"
		BoxesUnattendedInstaller* _tmp0_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (self->priv->_installer);
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_installer = _tmp0_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER_PROPERTY]);
#line 2766 "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 2784 "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 2796 "unattended-file.c"
		OsinfoInstallScript* _tmp0_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (self->priv->_script);
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_script = _tmp0_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT_PROPERTY]);
#line 2806 "unattended-file.c"
	}
}


static void
boxes_unattended_script_file_class_init (BoxesUnattendedScriptFileClass * klass)
{
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_script_file_parent_class = g_type_class_peek_parent (klass);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_type_class_add_private (klass, sizeof (BoxesUnattendedScriptFilePrivate));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_unattended_script_file_get_property;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_unattended_script_file_set_property;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_unattended_script_file_finalize;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME_PROPERTY, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME_PROPERTY] = g_param_spec_string ("dest-name", "dest-name", "dest-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH_PROPERTY, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH_PROPERTY] = g_param_spec_string ("src-path", "src-path", "src-path", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD_PROPERTY, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD_PROPERTY] = g_param_spec_flags ("injection-method", "injection-method", "injection-method", osinfo_install_script_injection_method_get_type (), 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER_PROPERTY, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER_PROPERTY] = g_param_spec_object ("installer", "installer", "installer", BOXES_TYPE_UNATTENDED_INSTALLER, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT_PROPERTY, boxes_unattended_script_file_properties[BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT_PROPERTY] = g_param_spec_object ("script", "script", "script", osinfo_install_script_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 2834 "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 2861 "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 2870 "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 2886 "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 2897 "unattended-file.c"
			goto __catch86_g_error;
		}
	}
	goto __finally86;
	__catch86_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 2930 "unattended-file.c"
	}
	__finally86:
#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 2939 "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 2954 "unattended-file.c"
}


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


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


static void
_vala_boxes_unattended_script_file_set_property (GObject * object,
                                                 guint property_id,
                                                 const GValue * value,
                                                 GParamSpec * pspec)
{
	BoxesUnattendedScriptFile * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_UNATTENDED_SCRIPT_FILE, BoxesUnattendedScriptFile);
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (property_id) {
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_DEST_NAME_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, g_value_get_string (value));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_SRC_PATH_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_src_path ((BoxesUnattendedFile*) self, g_value_get_string (value));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_INJECTION_METHOD_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_script_file_set_injection_method (self, g_value_get_flags (value));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_INSTALLER_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, g_value_get_object (value));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_SCRIPT_FILE_SCRIPT_PROPERTY:
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_script_file_set_script (self, g_value_get_object (value));
#line 96 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 3065 "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 3071 "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 3081 "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 3097 "unattended-file.c"
		}
	}
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return FALSE;
#line 3102 "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 3111 "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 3120 "unattended-file.c"
}


BoxesUnattendedAvatarFile*
boxes_unattended_avatar_file_construct (GType object_type,
                                        BoxesUnattendedInstaller* installer,
                                        const gchar* src_path,
                                        OsinfoAvatarFormat* avatar_format,
                                        GError** error)
{
	BoxesUnattendedAvatarFile * self = NULL;
	OsinfoAvatarFormat* _tmp0_;
	GSList* _tmp1_;
	GdkPixbufFormat* _tmp19_;
	BoxesUnattendedSetupBox* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	gchar* _tmp24_;
	gchar* _tmp25_;
	GdkPixbufFormat* _tmp26_;
	gchar** _tmp27_;
	gchar** _tmp28_;
	gchar** _tmp29_;
	gint _tmp29__length1;
	const gchar* _tmp30_;
	gchar* _tmp31_;
	gchar* _tmp32_;
	GError * _inner_error_ = NULL;
#line 174 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (installer != NULL, NULL);
#line 174 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_return_val_if_fail (src_path != NULL, NULL);
#line 174 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedAvatarFile*) g_object_new (object_type, NULL);
#line 176 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, installer);
#line 177 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_src_path ((BoxesUnattendedFile*) self, src_path);
#line 179 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp0_ = _g_object_ref0 (avatar_format);
#line 179 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (self->priv->avatar_format);
#line 179 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self->priv->avatar_format = _tmp0_;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp1_ = gdk_pixbuf_get_formats ();
#line 3167 "unattended-file.c"
	{
		GSList* format_collection = NULL;
		GSList* format_it = NULL;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		format_collection = _tmp1_;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		for (format_it = format_collection; format_it != NULL; format_it = format_it->next) {
#line 3175 "unattended-file.c"
			GdkPixbufFormat* format = NULL;
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			format = (GdkPixbufFormat*) format_it->data;
#line 3179 "unattended-file.c"
			{
				GdkPixbufFormat* _tmp18_;
#line 182 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				if (avatar_format != NULL) {
#line 3184 "unattended-file.c"
					GList* _tmp2_;
					GList* _tmp3_;
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp2_ = osinfo_avatar_format_get_mime_types (avatar_format);
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp3_ = _tmp2_;
#line 3191 "unattended-file.c"
					{
						GList* mime_type_collection = NULL;
						GList* mime_type_it = NULL;
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						mime_type_collection = _tmp3_;
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						for (mime_type_it = mime_type_collection; mime_type_it != NULL; mime_type_it = mime_type_it->next) {
#line 3199 "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 3203 "unattended-file.c"
							{
								const gchar* _tmp4_;
								GdkPixbufFormat* _tmp5_;
								gchar** _tmp6_;
								gchar** _tmp7_;
								gchar** _tmp8_;
								gint _tmp8__length1;
								gboolean _tmp9_;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp4_ = mime_type;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp5_ = format;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp7_ = _tmp6_ = gdk_pixbuf_format_get_mime_types (_tmp5_);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp8_ = _tmp7_;
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp8__length1 = _vala_array_length (_tmp6_);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp9_ = _vala_string_array_contains (_tmp8_, _vala_array_length (_tmp6_), _tmp4_);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								_tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL);
#line 184 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
								if (_tmp9_) {
#line 3228 "unattended-file.c"
									GdkPixbufFormat* _tmp10_;
									GdkPixbufFormat* _tmp11_;
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									_tmp10_ = format;
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									_tmp11_ = __vala_GdkPixbufFormat_copy0 (_tmp10_);
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									__vala_GdkPixbufFormat_free0 (self->priv->pixbuf_format);
#line 185 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									self->priv->pixbuf_format = _tmp11_;
#line 187 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
									break;
#line 3241 "unattended-file.c"
								}
							}
						}
#line 183 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						_g_list_free0 (mime_type_collection);
#line 3247 "unattended-file.c"
					}
				} else {
					GdkPixbufFormat* _tmp12_;
					gchar* _tmp13_;
					gchar* _tmp14_;
					gboolean _tmp15_;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp12_ = format;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp13_ = gdk_pixbuf_format_get_name (_tmp12_);
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp14_ = _tmp13_;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_tmp15_ = g_strcmp0 (_tmp14_, "png") == 0;
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					_g_free0 (_tmp14_);
#line 190 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					if (_tmp15_) {
#line 3266 "unattended-file.c"
						GdkPixbufFormat* _tmp16_;
						GdkPixbufFormat* _tmp17_;
#line 191 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						_tmp16_ = format;
#line 191 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						_tmp17_ = __vala_GdkPixbufFormat_copy0 (_tmp16_);
#line 191 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						__vala_GdkPixbufFormat_free0 (self->priv->pixbuf_format);
#line 191 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
						self->priv->pixbuf_format = _tmp17_;
#line 3277 "unattended-file.c"
					}
				}
#line 193 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				_tmp18_ = self->priv->pixbuf_format;
#line 193 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
				if (_tmp18_ != NULL) {
#line 194 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
					break;
#line 3286 "unattended-file.c"
				}
			}
		}
#line 181 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_slist_free0 (format_collection);
#line 3292 "unattended-file.c"
	}
#line 197 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp19_ = self->priv->pixbuf_format;
#line 197 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_tmp19_ == NULL) {
#line 3298 "unattended-file.c"
		GError* _tmp20_;
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp20_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, "Failed to find suitable format to save user avatar file in.");
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_inner_error_ = _tmp20_;
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			g_propagate_error (error, _inner_error_);
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_g_object_unref0 (self);
#line 198 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			return NULL;
#line 3312 "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 3320 "unattended-file.c"
		}
	}
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp21_ = installer->setup_box;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp22_ = boxes_unattended_setup_box_get_username (_tmp21_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp23_ = _tmp22_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp24_ = g_strconcat (_tmp23_, ".", NULL);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp25_ = _tmp24_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp26_ = self->priv->pixbuf_format;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp28_ = _tmp27_ = gdk_pixbuf_format_get_extensions (_tmp26_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp29_ = _tmp28_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp29__length1 = _vala_array_length (_tmp27_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp30_ = _tmp29_[0];
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp31_ = g_strconcat (_tmp25_, _tmp30_, NULL);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp32_ = _tmp31_;
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, _tmp32_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp32_);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_tmp29_ = (_vala_array_free (_tmp29_, _tmp29__length1, (GDestroyNotify) g_free), NULL);
#line 200 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_tmp25_);
#line 174 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return self;
#line 3357 "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 3369 "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 3386 "unattended-file.c"
}


static void
boxes_unattended_avatar_file_real_get_source_file_async_ready_wrapper (GObject *source_object,
                                                                       GAsyncResult *res,
                                                                       void *user_data)
{
	BoxesUnattendedAvatarFileGetSourceFileData* _task_data_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_task_data_->_callback_ != NULL) {
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 3402 "unattended-file.c"
	}
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_task_data_->_task_complete_ = TRUE;
#line 3406 "unattended-file.c"
}


static void
boxes_unattended_avatar_file_real_get_source_file (BoxesUnattendedFile* base,
                                                   GCancellable* cancellable,
                                                   GAsyncReadyCallback _callback_,
                                                   gpointer _user_data_)
{
	BoxesUnattendedAvatarFile * self;
	BoxesUnattendedAvatarFileGetSourceFileData* _data_;
	BoxesUnattendedAvatarFile* _tmp0_;
	GCancellable* _tmp1_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	self = (BoxesUnattendedAvatarFile*) base;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_ = g_slice_new0 (BoxesUnattendedAvatarFileGetSourceFileData);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_callback_ = _callback_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, boxes_unattended_avatar_file_real_get_source_file_async_ready_wrapper, _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 3432 "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_ = _g_object_ref0 (cancellable);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->cancellable);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->cancellable = _tmp1_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_avatar_file_real_get_source_file_co (_data_);
#line 3448 "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 3465 "unattended-file.c"
	}
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	result = _data_->result;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = NULL;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	return result;
#line 3473 "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 3484 "unattended-file.c"
		goto _state_0;
		default:
#line 214 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_assert_not_reached ();
#line 3489 "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 3504 "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 3518 "unattended-file.c"
		} else {
#line 218 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp5_ = -1;
#line 3522 "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 3538 "unattended-file.c"
		} else {
#line 219 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp10_ = -1;
#line 3542 "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 3560 "unattended-file.c"
			goto __catch88_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 3575 "unattended-file.c"
		} else {
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp21_ = FALSE;
#line 3579 "unattended-file.c"
		}
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (_data_->_tmp21_) {
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp26_ = _data_->pixbuf;
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp20_ = gdk_pixbuf_get_has_alpha (_data_->_tmp26_);
#line 3587 "unattended-file.c"
		} else {
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp20_ = FALSE;
#line 3591 "unattended-file.c"
		}
#line 222 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (_data_->_tmp20_) {
#line 223 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp27_ = _data_->pixbuf;
#line 223 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->_tmp28_ = boxes_remove_alpha (_data_->_tmp27_);
#line 223 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_g_object_unref0 (_data_->pixbuf);
#line 223 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_data_->pixbuf = _data_->_tmp28_;
#line 3603 "unattended-file.c"
		}
#line 225 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp29_ = _data_->destination_path;
#line 225 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_debug ("unattended-file.vala:225: Saving user avatar file at '%s'..", _data_->_tmp29_);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp30_ = _data_->pixbuf;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp31_ = _data_->destination_path;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp32_ = _data_->self->priv->pixbuf_format;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp33_ = gdk_pixbuf_format_get_name (_data_->_tmp32_);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp34_ = _data_->_tmp33_;
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		gdk_pixbuf_save (_data_->_tmp30_, _data_->_tmp31_, _data_->_tmp34_, &_data_->_inner_error_, NULL);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (_data_->_tmp34_);
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 226 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
			_g_object_unref0 (_data_->pixbuf);
#line 3627 "unattended-file.c"
			goto __catch88_g_error;
		}
#line 227 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp35_ = _data_->destination_path;
#line 227 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_debug ("unattended-file.vala:227: Saved user avatar file at '%s'.", _data_->_tmp35_);
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (_data_->pixbuf);
#line 3636 "unattended-file.c"
	}
	goto __finally88;
	__catch88_g_error:
	{
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_inner_error_ = NULL;
#line 229 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp36_ = _data_->_error_;
#line 229 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_data_->_tmp37_ = _data_->_tmp36_->message;
#line 229 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_warning ("unattended-file.vala:229: Failed to save user avatar: %s.", _data_->_tmp37_);
#line 217 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_error_free0 (_data_->_error_);
#line 3653 "unattended-file.c"
	}
	__finally88:
#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 3666 "unattended-file.c"
	}
#line 232 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp38_ = _data_->destination_path;
#line 232 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp39_ = g_file_new_for_path (_data_->_tmp38_);
#line 232 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_object_unref0 (_data_->self->priv->unattended_tmp);
#line 232 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->self->priv->unattended_tmp = _data_->_tmp39_;
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp40_ = _data_->self->priv->unattended_tmp;
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->_tmp41_ = _g_object_ref0 (_data_->_tmp40_);
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_data_->result = _data_->_tmp41_;
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	_g_free0 (_data_->destination_path);
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	if (_data_->_state_ != 0) {
#line 234 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		while (_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 3692 "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 3699 "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 3717 "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 3730 "unattended-file.c"
		gchar* _tmp0_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_dest_name);
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_dest_name = _tmp0_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME_PROPERTY]);
#line 3740 "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 3759 "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 3772 "unattended-file.c"
		gchar* _tmp0_;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = g_strdup (value);
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_free0 (self->priv->_src_path);
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_src_path = _tmp0_;
#line 165 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH_PROPERTY]);
#line 3782 "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 3801 "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 3814 "unattended-file.c"
		BoxesUnattendedInstaller* _tmp0_;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_tmp0_ = _g_object_ref0 (value);
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		_g_object_unref0 (self->priv->_installer);
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		self->priv->_installer = _tmp0_;
#line 167 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_INSTALLER_PROPERTY]);
#line 3824 "unattended-file.c"
	}
}


static void
boxes_unattended_avatar_file_class_init (BoxesUnattendedAvatarFileClass * klass)
{
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	boxes_unattended_avatar_file_parent_class = g_type_class_peek_parent (klass);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_type_class_add_private (klass, sizeof (BoxesUnattendedAvatarFilePrivate));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_unattended_avatar_file_get_property;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_unattended_avatar_file_set_property;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_unattended_avatar_file_finalize;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME_PROPERTY, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME_PROPERTY] = g_param_spec_string ("dest-name", "dest-name", "dest-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH_PROPERTY, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH_PROPERTY] = g_param_spec_string ("src-path", "src-path", "src-path", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UNATTENDED_AVATAR_FILE_INSTALLER_PROPERTY, boxes_unattended_avatar_file_properties[BOXES_UNATTENDED_AVATAR_FILE_INSTALLER_PROPERTY] = g_param_spec_object ("installer", "installer", "installer", BOXES_TYPE_UNATTENDED_INSTALLER, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 3848 "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 3873 "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 3882 "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 3898 "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 3909 "unattended-file.c"
			goto __catch87_g_error;
		}
	}
	goto __finally87;
	__catch87_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 3942 "unattended-file.c"
	}
	__finally87:
#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 3951 "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 3968 "unattended-file.c"
}


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


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


static void
_vala_boxes_unattended_avatar_file_set_property (GObject * object,
                                                 guint property_id,
                                                 const GValue * value,
                                                 GParamSpec * pspec)
{
	BoxesUnattendedAvatarFile * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_UNATTENDED_AVATAR_FILE, BoxesUnattendedAvatarFile);
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
	switch (property_id) {
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_AVATAR_FILE_DEST_NAME_PROPERTY:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_dest_name ((BoxesUnattendedFile*) self, g_value_get_string (value));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_AVATAR_FILE_SRC_PATH_PROPERTY:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_src_path ((BoxesUnattendedFile*) self, g_value_get_string (value));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		case BOXES_UNATTENDED_AVATAR_FILE_INSTALLER_PROPERTY:
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		boxes_unattended_file_set_installer ((BoxesUnattendedFile*) self, g_value_get_object (value));
#line 163 "/home/fborges/checkout/gnome-boxes/src/unattended-file.vala"
		break;
#line 4055 "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 4061 "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 4073 "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 4081 "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 4097 "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 4112 "unattended-file.c"
		}
	}
#line 535 "/home/fborges/checkout/gnome-boxes/src/libvirt-machine.vala"
	return length;
#line 4117 "unattended-file.c"
}



