/* gnome-boxes-search-provider.c generated by valac 0.36.1.38-6532, the Vala compiler
 * generated from gnome-boxes-search-provider.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 <libcommon.h>
#include <stdio.h>


#define BOXES_TYPE_SEARCH_PROVIDER (boxes_search_provider_get_type ())
#define BOXES_SEARCH_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SEARCH_PROVIDER, BoxesSearchProvider))
#define BOXES_SEARCH_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SEARCH_PROVIDER, BoxesSearchProviderClass))
#define BOXES_IS_SEARCH_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SEARCH_PROVIDER))
#define BOXES_IS_SEARCH_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SEARCH_PROVIDER))
#define BOXES_SEARCH_PROVIDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SEARCH_PROVIDER, BoxesSearchProviderClass))

typedef struct _BoxesSearchProvider BoxesSearchProvider;
typedef struct _BoxesSearchProviderClass BoxesSearchProviderClass;
typedef struct _BoxesSearchProviderPrivate BoxesSearchProviderPrivate;

#define BOXES_TYPE_SEARCH_PROVIDER_APP (boxes_search_provider_app_get_type ())
#define BOXES_SEARCH_PROVIDER_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SEARCH_PROVIDER_APP, BoxesSearchProviderApp))
#define BOXES_SEARCH_PROVIDER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SEARCH_PROVIDER_APP, BoxesSearchProviderAppClass))
#define BOXES_IS_SEARCH_PROVIDER_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SEARCH_PROVIDER_APP))
#define BOXES_IS_SEARCH_PROVIDER_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SEARCH_PROVIDER_APP))
#define BOXES_SEARCH_PROVIDER_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SEARCH_PROVIDER_APP, BoxesSearchProviderAppClass))

typedef struct _BoxesSearchProviderApp BoxesSearchProviderApp;
typedef struct _BoxesSearchProviderAppClass BoxesSearchProviderAppClass;
enum  {
	BOXES_SEARCH_PROVIDER_DUMMY_PROPERTY,
	BOXES_SEARCH_PROVIDER_LOADED,
	BOXES_SEARCH_PROVIDER_LAST_PROPERTY
};
static GParamSpec* boxes_search_provider_properties[BOXES_SEARCH_PROVIDER_LAST_PROPERTY];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block1Data Block1Data;
typedef struct _BoxesSearchProviderLoadData BoxesSearchProviderLoadData;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
typedef struct _Block2Data Block2Data;
#define _g_ptr_array_unref0(var) ((var == NULL) ? NULL : (var = (g_ptr_array_unref (var), NULL)))
typedef struct _BoxesSearchProviderSearchData BoxesSearchProviderSearchData;
typedef struct _boxes_search_provider_GetInitialResultSetData boxes_search_provider_GetInitialResultSetData;
typedef struct _boxes_search_provider_GetSubsearchResultSetData boxes_search_provider_GetSubsearchResultSetData;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesSearchProviderGetMetasData BoxesSearchProviderGetMetasData;
typedef struct _boxes_search_provider_GetResultMetasData boxes_search_provider_GetResultMetasData;
typedef struct _BoxesSearchProviderAppPrivate BoxesSearchProviderAppPrivate;
enum  {
	BOXES_SEARCH_PROVIDER_APP_DUMMY_PROPERTY,
	BOXES_SEARCH_PROVIDER_APP_LAST_PROPERTY
};
static GParamSpec* boxes_search_provider_app_properties[BOXES_SEARCH_PROVIDER_APP_LAST_PROPERTY];

struct _BoxesSearchProvider {
	GObject parent_instance;
	BoxesSearchProviderPrivate * priv;
};

struct _BoxesSearchProviderClass {
	GObjectClass parent_class;
};

struct _BoxesSearchProviderPrivate {
	BoxesSearchProviderApp* app;
	gboolean loading;
	gboolean _loaded;
	GHashTable* boxes;
	guint next_id;
};

struct _Block1Data {
	int _ref_count_;
	BoxesSearchProvider* self;
	gpointer _async_data_;
};

struct _BoxesSearchProviderLoadData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gboolean _task_complete_;
	BoxesSearchProvider* self;
	Block1Data* _data1_;
	gboolean _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	gulong wait;
	gulong _tmp3_;
	gulong _tmp4_;
	gboolean _tmp5_;
	GFile* dir;
	gchar* _tmp6_;
	gchar* _tmp7_;
	GFile* _tmp8_;
	GFile* _tmp9_;
	GFile* _tmp10_;
};

struct _Block2Data {
	int _ref_count_;
	GPtrArray* self;
	GCompareFunc compare_func;
};

struct _BoxesSearchProviderSearchData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gboolean _task_complete_;
	BoxesSearchProvider* self;
	gchar** terms;
	gint terms_length1;
	gchar** result;
	gint result_length1;
	BoxesSearchProviderApp* _tmp0_;
	gchar** normalized_terms;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar** _tmp6_;
	gchar** _tmp7_;
	gchar** _tmp8_;
	gint _tmp8__length1;
	gint normalized_terms_length1;
	gint _normalized_terms_size_;
	GPtrArray* matches;
	GPtrArray* _tmp9_;
	gchar** _tmp10_;
	gint _tmp10__length1;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gboolean _tmp13_;
	GHashTable* _tmp14_;
	GList* _tmp15_;
	GList* box_collection;
	GList* box_it;
	BoxesBoxConfig* box;
	BoxesBoxConfig* _tmp16_;
	gchar** _tmp17_;
	gint _tmp17__length1;
	gboolean _tmp18_;
	GPtrArray* _tmp19_;
	BoxesBoxConfig* _tmp20_;
	BoxesBoxConfig* _tmp21_;
	GPtrArray* _tmp22_;
	gchar** results;
	GPtrArray* _tmp23_;
	gint _tmp24_;
	gint _tmp25_;
	gchar** _tmp26_;
	gint results_length1;
	gint _results_size_;
	gint i;
	gboolean _tmp27_;
	gint _tmp28_;
	gint _tmp29_;
	GPtrArray* _tmp30_;
	gint _tmp31_;
	gint _tmp32_;
	gchar** _tmp33_;
	gint _tmp33__length1;
	gint _tmp34_;
	GPtrArray* _tmp35_;
	gint _tmp36_;
	gconstpointer _tmp37_;
	gconstpointer _tmp38_;
	gchar* _tmp39_;
	gchar* _tmp40_;
	BoxesSearchProviderApp* _tmp41_;
	gchar** _tmp42_;
	gint _tmp42__length1;
};

struct _boxes_search_provider_GetInitialResultSetData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gboolean _task_complete_;
	BoxesSearchProvider* self;
	gchar** terms;
	gint terms_length1;
	gchar** result;
	gint result_length1;
	gchar** _tmp0_;
	gint _tmp0__length1;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gint _tmp2_;
	gchar** _tmp3_;
	gchar** _tmp4_;
	gint _tmp4__length1;
};

struct _boxes_search_provider_GetSubsearchResultSetData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gboolean _task_complete_;
	BoxesSearchProvider* self;
	gchar** previous_results;
	gint previous_results_length1;
	gchar** new_terms;
	gint new_terms_length1;
	gchar** result;
	gint result_length1;
	gchar** _tmp0_;
	gint _tmp0__length1;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gint _tmp2_;
	gchar** _tmp3_;
	gchar** _tmp4_;
	gint _tmp4__length1;
};

struct _BoxesSearchProviderGetMetasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gboolean _task_complete_;
	BoxesSearchProvider* self;
	gchar** ids;
	gint ids_length1;
	GHashTable** result;
	gint result_length1;
	GHashTable** metas;
	gchar** _tmp0_;
	gint _tmp0__length1;
	GHashTable** _tmp1_;
	gint metas_length1;
	gint _metas_size_;
	BoxesSearchProviderApp* _tmp2_;
	gchar** _tmp3_;
	gint _tmp3__length1;
	gchar* _tmp4_;
	gchar* _tmp5_;
	guint n;
	gchar** _tmp6_;
	gint _tmp6__length1;
	gchar** id_collection;
	gint id_collection_length1;
	gint _id_collection_size_;
	gint id_it;
	gchar* _tmp7_;
	gchar* id;
	BoxesBoxConfig* box;
	GHashTable* _tmp8_;
	const gchar* _tmp9_;
	gconstpointer _tmp10_;
	BoxesBoxConfig* _tmp11_;
	BoxesBoxConfig* _tmp12_;
	GHashTable* meta;
	GHashFunc _tmp13_;
	GEqualFunc _tmp14_;
	GHashTable* _tmp15_;
	GHashTable** _tmp16_;
	gint _tmp16__length1;
	guint _tmp17_;
	GHashTable* _tmp18_;
	GHashTable* _tmp19_;
	GHashTable* _tmp20_;
	guint _tmp21_;
	GHashTable* _tmp22_;
	gchar* _tmp23_;
	const gchar* _tmp24_;
	GVariant* _tmp25_;
	GHashTable* _tmp26_;
	gchar* _tmp27_;
	BoxesBoxConfig* _tmp28_;
	gchar* _tmp29_;
	gchar* _tmp30_;
	gchar* _tmp31_;
	GVariant* _tmp32_;
	GFile* file;
	BoxesBoxConfig* _tmp33_;
	gchar* _tmp34_;
	gchar* _tmp35_;
	gchar* _tmp36_;
	gchar* _tmp37_;
	gchar* _tmp38_;
	GFile* _tmp39_;
	GFile* _tmp40_;
	GFileInfo* info;
	GFileInfo* _tmp41_;
	GFile* _tmp42_;
	GFileInfo* _tmp43_;
	GFileInfo* _tmp44_;
	GError* _error_;
	GFileInfo* _tmp45_;
	GFileIcon* icon;
	GFile* _tmp46_;
	GFileIcon* _tmp47_;
	GHashTable* _tmp48_;
	gchar* _tmp49_;
	GFileIcon* _tmp50_;
	gchar* _tmp51_;
	gchar* _tmp52_;
	GVariant* _tmp53_;
	GHashTable* _tmp54_;
	gchar* _tmp55_;
	GThemedIcon* _tmp56_;
	GThemedIcon* _tmp57_;
	gchar* _tmp58_;
	gchar* _tmp59_;
	GVariant* _tmp60_;
	BoxesSearchProviderApp* _tmp61_;
	GHashTable** _tmp62_;
	gint _tmp62__length1;
	guint _tmp63_;
	GHashTable** _tmp64_;
	gint _tmp64__length1;
	GHashTable** _tmp65_;
	gint _tmp65__length1;
	GError * _inner_error_;
};

struct _boxes_search_provider_GetResultMetasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gboolean _task_complete_;
	BoxesSearchProvider* self;
	gchar** ids;
	gint ids_length1;
	GHashTable** result;
	gint result_length1;
	gchar** _tmp0_;
	gint _tmp0__length1;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gint _tmp2_;
	GHashTable** _tmp3_;
	GHashTable** _tmp4_;
	gint _tmp4__length1;
};

struct _BoxesSearchProviderApp {
	GApplication parent_instance;
	BoxesSearchProviderAppPrivate * priv;
};

struct _BoxesSearchProviderAppClass {
	GApplicationClass parent_class;
};


static gpointer boxes_search_provider_parent_class = NULL;
static gpointer boxes_search_provider_app_parent_class = NULL;

GType boxes_search_provider_get_type (void) G_GNUC_CONST;
guint boxes_search_provider_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType boxes_search_provider_app_get_type (void) G_GNUC_CONST;
#define BOXES_SEARCH_PROVIDER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_SEARCH_PROVIDER, BoxesSearchProviderPrivate))
BoxesSearchProvider* boxes_search_provider_new (BoxesSearchProviderApp* app);
BoxesSearchProvider* boxes_search_provider_construct (GType object_type, BoxesSearchProviderApp* app);
static void _g_free0_ (gpointer var);
static void _g_object_unref0_ (gpointer var);
static void boxes_search_provider_add_box (BoxesSearchProvider* self, BoxesBoxConfig* box);
static void boxes_search_provider_load_data_free (gpointer _data);
static void boxes_search_provider_load (BoxesSearchProvider* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_search_provider_load_finish (BoxesSearchProvider* self, GAsyncResult* _res_);
static gboolean boxes_search_provider_load_co (BoxesSearchProviderLoadData* _data_);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
gboolean boxes_search_provider_get_loaded (BoxesSearchProvider* self);
static void ___lambda4_ (Block1Data* _data1_);
static void ____lambda4__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static gboolean __lambda5_ (BoxesSearchProvider* self, const gchar* filename, GError** error);
static gboolean ___lambda5__boxes_foreach_filename_from_dir_func (const gchar* filename, gpointer self, GError** error);
static void boxes_search_provider_load_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void boxes_search_provider_set_loaded (BoxesSearchProvider* self, gboolean value);
static void boxes_search_provider_search_data_free (gpointer _data);
static void boxes_search_provider_search (BoxesSearchProvider* self, gchar** terms, int terms_length1, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gchar** boxes_search_provider_search_finish (BoxesSearchProvider* self, GAsyncResult* _res_, int* result_length1);
static gboolean boxes_search_provider_search_co (BoxesSearchProviderSearchData* _data_);
static void boxes_search_provider_search_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
static gint ___lambda1__gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
static gint __lambda6_ (BoxesBoxConfig* a, BoxesBoxConfig* b);
static gint ___lambda6__gcompare_func (gconstpointer a, gconstpointer b);
static void boxes_search_provider_GetInitialResultSet_data_free (gpointer _data);
void boxes_search_provider_GetInitialResultSet (BoxesSearchProvider* self, gchar** terms, int terms_length1, GAsyncReadyCallback _callback_, gpointer _user_data_);
gchar** boxes_search_provider_GetInitialResultSet_finish (BoxesSearchProvider* self, GAsyncResult* _res_, int* result_length1);
static gboolean boxes_search_provider_GetInitialResultSet_co (boxes_search_provider_GetInitialResultSetData* _data_);
static gchar** _vala_array_dup1 (gchar** self, int length);
static void boxes_search_provider_GetInitialResultSet_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_search_provider_GetSubsearchResultSet_data_free (gpointer _data);
void boxes_search_provider_GetSubsearchResultSet (BoxesSearchProvider* self, gchar** previous_results, int previous_results_length1, gchar** new_terms, int new_terms_length1, GAsyncReadyCallback _callback_, gpointer _user_data_);
gchar** boxes_search_provider_GetSubsearchResultSet_finish (BoxesSearchProvider* self, GAsyncResult* _res_, int* result_length1);
static gboolean boxes_search_provider_GetSubsearchResultSet_co (boxes_search_provider_GetSubsearchResultSetData* _data_);
static gchar** _vala_array_dup2 (gchar** self, int length);
static void boxes_search_provider_GetSubsearchResultSet_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_search_provider_get_metas_data_free (gpointer _data);
void boxes_search_provider_get_metas (BoxesSearchProvider* self, gchar** ids, int ids_length1, GAsyncReadyCallback _callback_, gpointer _user_data_);
GHashTable** boxes_search_provider_get_metas_finish (BoxesSearchProvider* self, GAsyncResult* _res_, int* result_length1);
static gboolean boxes_search_provider_get_metas_co (BoxesSearchProviderGetMetasData* _data_);
static void _g_variant_unref0_ (gpointer var);
static void boxes_search_provider_get_metas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static GHashTable** _vala_array_dup3 (GHashTable** self, int length);
static void boxes_search_provider_GetResultMetas_data_free (gpointer _data);
void boxes_search_provider_GetResultMetas (BoxesSearchProvider* self, gchar** ids, int ids_length1, GAsyncReadyCallback _callback_, gpointer _user_data_);
GHashTable** boxes_search_provider_GetResultMetas_finish (BoxesSearchProvider* self, GAsyncResult* _res_, int* result_length1);
static gboolean boxes_search_provider_GetResultMetas_co (boxes_search_provider_GetResultMetasData* _data_);
static gchar** _vala_array_dup4 (gchar** self, int length);
static void boxes_search_provider_GetResultMetas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void boxes_search_provider_ActivateResult (BoxesSearchProvider* self, const gchar* search_id, gchar** terms, int terms_length1, guint32 timestamp);
void boxes_search_provider_LaunchSearch (BoxesSearchProvider* self, gchar** terms, int terms_length1, guint32 timestamp);
static void _vala_array_add1 (gchar** * array, int* length, int* size, gchar* value);
static void _vala_array_add2 (gchar** * array, int* length, int* size, gchar* value);
static void _vala_array_add3 (gchar** * array, int* length, int* size, gchar* value);
static void boxes_search_provider_finalize (GObject * obj);
static void _vala_boxes_search_provider_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_boxes_search_provider_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _dbus_boxes_search_provider_GetInitialResultSet (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_boxes_search_provider_GetInitialResultSet_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_boxes_search_provider_GetSubsearchResultSet (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_boxes_search_provider_GetSubsearchResultSet_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_boxes_search_provider_get_metas (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_boxes_search_provider_get_metas_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_boxes_search_provider_GetResultMetas (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_boxes_search_provider_GetResultMetas_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_boxes_search_provider_ActivateResult (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_boxes_search_provider_LaunchSearch (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void boxes_search_provider_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data);
static GVariant* boxes_search_provider_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data);
static GVariant* _dbus_boxes_search_provider_get_loaded (BoxesSearchProvider* self);
static gboolean boxes_search_provider_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data);
static void _dbus_boxes_search_provider_set_loaded (BoxesSearchProvider* self, GVariant* _value);
static void _boxes_search_provider_unregister_object (gpointer user_data);
BoxesSearchProviderApp* boxes_search_provider_app_new (void);
BoxesSearchProviderApp* boxes_search_provider_app_construct (GType object_type);
static gboolean boxes_search_provider_app_real_dbus_register (GApplication* base, GDBusConnection* connection, const gchar* object_path, GError** error);
static void boxes_search_provider_app_real_startup (GApplication* base);
gint _vala_main (void);
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 const GDBusArgInfo _boxes_search_provider_dbus_arg_info_GetInitialResultSet_terms = {-1, "terms", "as"};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_GetInitialResultSet_result = {-1, "result", "as"};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_GetInitialResultSet_in[] = {&_boxes_search_provider_dbus_arg_info_GetInitialResultSet_terms, NULL};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_GetInitialResultSet_out[] = {&_boxes_search_provider_dbus_arg_info_GetInitialResultSet_result, NULL};
static const GDBusMethodInfo _boxes_search_provider_dbus_method_info_GetInitialResultSet = {-1, "GetInitialResultSet", (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_GetInitialResultSet_in), (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_GetInitialResultSet_out)};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_GetSubsearchResultSet_previous_results = {-1, "previous_results", "as"};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_GetSubsearchResultSet_new_terms = {-1, "new_terms", "as"};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_GetSubsearchResultSet_result = {-1, "result", "as"};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_GetSubsearchResultSet_in[] = {&_boxes_search_provider_dbus_arg_info_GetSubsearchResultSet_previous_results, &_boxes_search_provider_dbus_arg_info_GetSubsearchResultSet_new_terms, NULL};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_GetSubsearchResultSet_out[] = {&_boxes_search_provider_dbus_arg_info_GetSubsearchResultSet_result, NULL};
static const GDBusMethodInfo _boxes_search_provider_dbus_method_info_GetSubsearchResultSet = {-1, "GetSubsearchResultSet", (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_GetSubsearchResultSet_in), (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_GetSubsearchResultSet_out)};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_get_metas_ids = {-1, "ids", "as"};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_get_metas_result = {-1, "result", "aa{sv}"};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_get_metas_in[] = {&_boxes_search_provider_dbus_arg_info_get_metas_ids, NULL};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_get_metas_out[] = {&_boxes_search_provider_dbus_arg_info_get_metas_result, NULL};
static const GDBusMethodInfo _boxes_search_provider_dbus_method_info_get_metas = {-1, "GetMetas", (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_get_metas_in), (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_get_metas_out)};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_GetResultMetas_ids = {-1, "ids", "as"};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_GetResultMetas_result = {-1, "result", "aa{sv}"};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_GetResultMetas_in[] = {&_boxes_search_provider_dbus_arg_info_GetResultMetas_ids, NULL};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_GetResultMetas_out[] = {&_boxes_search_provider_dbus_arg_info_GetResultMetas_result, NULL};
static const GDBusMethodInfo _boxes_search_provider_dbus_method_info_GetResultMetas = {-1, "GetResultMetas", (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_GetResultMetas_in), (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_GetResultMetas_out)};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_ActivateResult_search_id = {-1, "search_id", "s"};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_ActivateResult_terms = {-1, "terms", "as"};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_ActivateResult_timestamp = {-1, "timestamp", "u"};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_ActivateResult_in[] = {&_boxes_search_provider_dbus_arg_info_ActivateResult_search_id, &_boxes_search_provider_dbus_arg_info_ActivateResult_terms, &_boxes_search_provider_dbus_arg_info_ActivateResult_timestamp, NULL};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_ActivateResult_out[] = {NULL};
static const GDBusMethodInfo _boxes_search_provider_dbus_method_info_ActivateResult = {-1, "ActivateResult", (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_ActivateResult_in), (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_ActivateResult_out)};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_LaunchSearch_terms = {-1, "terms", "as"};
static const GDBusArgInfo _boxes_search_provider_dbus_arg_info_LaunchSearch_timestamp = {-1, "timestamp", "u"};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_LaunchSearch_in[] = {&_boxes_search_provider_dbus_arg_info_LaunchSearch_terms, &_boxes_search_provider_dbus_arg_info_LaunchSearch_timestamp, NULL};
static const GDBusArgInfo * const _boxes_search_provider_dbus_arg_info_LaunchSearch_out[] = {NULL};
static const GDBusMethodInfo _boxes_search_provider_dbus_method_info_LaunchSearch = {-1, "LaunchSearch", (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_LaunchSearch_in), (GDBusArgInfo **) (&_boxes_search_provider_dbus_arg_info_LaunchSearch_out)};
static const GDBusMethodInfo * const _boxes_search_provider_dbus_method_info[] = {&_boxes_search_provider_dbus_method_info_GetInitialResultSet, &_boxes_search_provider_dbus_method_info_GetSubsearchResultSet, &_boxes_search_provider_dbus_method_info_get_metas, &_boxes_search_provider_dbus_method_info_GetResultMetas, &_boxes_search_provider_dbus_method_info_ActivateResult, &_boxes_search_provider_dbus_method_info_LaunchSearch, NULL};
static const GDBusSignalInfo * const _boxes_search_provider_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo _boxes_search_provider_dbus_property_info_loaded = {-1, "Loaded", "b", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE};
static const GDBusPropertyInfo * const _boxes_search_provider_dbus_property_info[] = {&_boxes_search_provider_dbus_property_info_loaded, NULL};
static const GDBusInterfaceInfo _boxes_search_provider_dbus_interface_info = {-1, "org.gnome.Shell.SearchProvider2", (GDBusMethodInfo **) (&_boxes_search_provider_dbus_method_info), (GDBusSignalInfo **) (&_boxes_search_provider_dbus_signal_info), (GDBusPropertyInfo **) (&_boxes_search_provider_dbus_property_info)};
static const GDBusInterfaceVTable _boxes_search_provider_dbus_interface_vtable = {boxes_search_provider_dbus_interface_method_call, boxes_search_provider_dbus_interface_get_property, boxes_search_provider_dbus_interface_set_property};

static gpointer _g_object_ref0 (gpointer self) {
#line 12 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return self ? g_object_ref (self) : NULL;
#line 500 "gnome-boxes-search-provider.c"
}


static void _g_free0_ (gpointer var) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	var = (g_free (var), NULL);
#line 507 "gnome-boxes-search-provider.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 13 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 514 "gnome-boxes-search-provider.c"
}


BoxesSearchProvider* boxes_search_provider_construct (GType object_type, BoxesSearchProviderApp* app) {
	BoxesSearchProvider * self = NULL;
	BoxesSearchProviderApp* _tmp0_;
	BoxesSearchProviderApp* _tmp1_;
	GHashFunc _tmp2_;
	GEqualFunc _tmp3_;
	GHashTable* _tmp4_;
#line 11 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (app != NULL, NULL);
#line 11 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self = (BoxesSearchProvider*) g_object_new (object_type, NULL);
#line 12 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = app;
#line 12 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 12 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (self->priv->app);
#line 12 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self->priv->app = _tmp1_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = g_str_hash;
#line 13 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = g_str_equal;
#line 13 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp4_ = g_hash_table_new_full (_tmp2_, _tmp3_, _g_free0_, _g_object_unref0_);
#line 13 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_hash_table_unref0 (self->priv->boxes);
#line 13 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self->priv->boxes = _tmp4_;
#line 11 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return self;
#line 549 "gnome-boxes-search-provider.c"
}


BoxesSearchProvider* boxes_search_provider_new (BoxesSearchProviderApp* app) {
#line 11 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return boxes_search_provider_construct (BOXES_TYPE_SEARCH_PROVIDER, app);
#line 556 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_add_box (BoxesSearchProvider* self, BoxesBoxConfig* box) {
	gchar* id = NULL;
	guint _tmp0_;
	gchar* _tmp1_;
	BoxesBoxConfig* _tmp2_;
	gchar* _tmp3_;
	GHashTable* _tmp4_;
	gchar* _tmp5_;
	BoxesBoxConfig* _tmp6_;
	BoxesBoxConfig* _tmp7_;
#line 16 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_if_fail (self != NULL);
#line 16 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_if_fail (box != NULL);
#line 17 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = self->priv->next_id;
#line 17 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self->priv->next_id = _tmp0_ + 1;
#line 17 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = g_strdup_printf ("%u", _tmp0_);
#line 17 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	id = _tmp1_;
#line 18 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = box;
#line 18 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = g_strdup (id);
#line 18 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_set_data_full ((GObject*) _tmp2_, "search-id", _tmp3_, g_free);
#line 20 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp4_ = self->priv->boxes;
#line 20 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp5_ = g_strdup (id);
#line 20 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp6_ = box;
#line 20 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 20 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_hash_table_insert (_tmp4_, _tmp5_, _tmp7_);
#line 16 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (id);
#line 600 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_load_data_free (gpointer _data) {
	BoxesSearchProviderLoadData* _data_;
	_data_ = _data;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (BoxesSearchProviderLoadData, _data_);
#line 611 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_load (BoxesSearchProvider* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesSearchProviderLoadData* _data_;
	BoxesSearchProvider* _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (BoxesSearchProviderLoadData);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_callback_ == NULL) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_task_complete_ = TRUE;
#line 626 "gnome-boxes-search-provider.c"
	}
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_search_provider_load_data_free);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_load_co (_data_);
#line 636 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_load_finish (BoxesSearchProvider* self, GAsyncResult* _res_) {
	BoxesSearchProviderLoadData* _data_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 646 "gnome-boxes-search-provider.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return _data1_;
#line 655 "gnome-boxes-search-provider.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 664 "gnome-boxes-search-provider.c"
		BoxesSearchProvider* self;
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		self = _data1_->self;
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_object_unref0 (self);
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_slice_free (Block1Data, _data1_);
#line 672 "gnome-boxes-search-provider.c"
	}
}


static void ___lambda4_ (Block1Data* _data1_) {
	BoxesSearchProvider* self;
#line 26 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self = _data1_->self;
#line 27 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_load_co (_data1_->_async_data_);
#line 683 "gnome-boxes-search-provider.c"
}


static void ____lambda4__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 26 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	___lambda4_ (self);
#line 690 "gnome-boxes-search-provider.c"
}


static gboolean __lambda5_ (BoxesSearchProvider* self, const gchar* filename, GError** error) {
	gboolean result = FALSE;
	BoxesCollectionSource* source = NULL;
	const gchar* _tmp0_;
	BoxesCollectionSource* _tmp1_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	gint _tmp5_;
	gchar** _tmp6_;
	GError * _inner_error_ = NULL;
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (filename != NULL, FALSE);
#line 40 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = filename;
#line 40 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = boxes_collection_source_new_with_file (_tmp0_, &_inner_error_);
#line 40 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	source = _tmp1_;
#line 40 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 714 "gnome-boxes-search-provider.c"
		gboolean _tmp2_ = FALSE;
#line 40 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_propagate_error (error, _inner_error_);
#line 40 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return _tmp2_;
#line 720 "gnome-boxes-search-provider.c"
	}
#line 41 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = boxes_collection_source_get_enabled (source);
#line 41 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp4_ = _tmp3_;
#line 41 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (!_tmp4_) {
#line 42 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		result = FALSE;
#line 42 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_object_unref0 (source);
#line 42 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return result;
#line 734 "gnome-boxes-search-provider.c"
	}
#line 44 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp6_ = boxes_iconfig_get_groups ((BoxesIConfig*) source, "display", &_tmp5_);
#line 738 "gnome-boxes-search-provider.c"
	{
		gchar** group_collection = NULL;
		gint group_collection_length1 = 0;
		gint _group_collection_size_ = 0;
		gint group_it = 0;
#line 44 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		group_collection = _tmp6_;
#line 44 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		group_collection_length1 = _tmp5_;
#line 44 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		for (group_it = 0; group_it < _tmp5_; group_it = group_it + 1) {
#line 750 "gnome-boxes-search-provider.c"
			gchar* _tmp7_;
			gchar* group = NULL;
#line 44 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_tmp7_ = g_strdup (group_collection[group_it]);
#line 44 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			group = _tmp7_;
#line 757 "gnome-boxes-search-provider.c"
			{
				BoxesBoxConfig* box = NULL;
				const gchar* _tmp8_;
				BoxesBoxConfig* _tmp9_;
				BoxesBoxConfig* _tmp10_;
#line 45 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_tmp8_ = group;
#line 45 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_tmp9_ = boxes_box_config_new_with_group (source, _tmp8_);
#line 45 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				box = _tmp9_;
#line 46 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_tmp10_ = box;
#line 46 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				boxes_search_provider_add_box (self, _tmp10_);
#line 44 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_object_unref0 (box);
#line 44 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (group);
#line 777 "gnome-boxes-search-provider.c"
			}
		}
#line 44 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		group_collection = (_vala_array_free (group_collection, group_collection_length1, (GDestroyNotify) g_free), NULL);
#line 782 "gnome-boxes-search-provider.c"
	}
#line 49 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = FALSE;
#line 49 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (source);
#line 49 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 790 "gnome-boxes-search-provider.c"
}


static gboolean ___lambda5__boxes_foreach_filename_from_dir_func (const gchar* filename, gpointer self, GError** error) {
	gboolean result;
	result = __lambda5_ ((BoxesSearchProvider*) self, filename, error);
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 799 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_load_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesSearchProviderLoadData* _data_;
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = _user_data_;
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_source_object_ = source_object;
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_res_ = _res_;
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_load_co (_data_);
#line 815 "gnome-boxes-search-provider.c"
}


static gboolean boxes_search_provider_load_co (BoxesSearchProviderLoadData* _data_) {
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 824 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 828 "gnome-boxes-search-provider.c"
		goto _state_1;
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 2:
#line 832 "gnome-boxes-search-provider.c"
		goto _state_2;
		default:
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 837 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_data1_ = g_slice_new0 (Block1Data);
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_data1_->_ref_count_ = 1;
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_data1_->self = g_object_ref (_data_->self);
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_data1_->_async_data_ = _data_;
#line 25 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	while (TRUE) {
#line 25 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_tmp1_ = _data_->self->priv->_loaded;
#line 25 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (!_data_->_tmp1_) {
#line 25 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_tmp2_ = _data_->self->priv->loading;
#line 25 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_tmp0_ = _data_->_tmp2_;
#line 858 "gnome-boxes-search-provider.c"
		} else {
#line 25 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_tmp0_ = FALSE;
#line 862 "gnome-boxes-search-provider.c"
		}
#line 25 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (!_data_->_tmp0_) {
#line 25 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			break;
#line 868 "gnome-boxes-search-provider.c"
		}
#line 26 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_tmp3_ = g_signal_connect_data ((GObject*) _data_->self, "notify::loaded", (GCallback) ____lambda4__g_object_notify, block1_data_ref (_data_->_data1_), (GClosureNotify) block1_data_unref, 0);
#line 26 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->wait = _data_->_tmp3_;
#line 30 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_state_ = 1;
#line 30 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return FALSE;
#line 878 "gnome-boxes-search-provider.c"
		_state_1:
		;
#line 32 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_tmp4_ = _data_->wait;
#line 32 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_signal_handler_disconnect ((GObject*) _data_->self, _data_->_tmp4_);
#line 33 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_tmp5_ = _data_->self->priv->_loaded;
#line 33 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (_data_->_tmp5_) {
#line 34 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			block1_data_unref (_data_->_data1_);
#line 34 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_data1_ = NULL;
#line 34 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 34 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			if (_data_->_state_ != 0) {
#line 34 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				while (_data_->_task_complete_ != TRUE) {
#line 34 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 901 "gnome-boxes-search-provider.c"
				}
			}
#line 34 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_object_unref (_data_->_async_result);
#line 34 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			return FALSE;
#line 908 "gnome-boxes-search-provider.c"
		}
	}
#line 37 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self->priv->loading = TRUE;
#line 38 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp6_ = boxes_get_user_pkgconfig_source (NULL);
#line 38 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp8_ = g_file_new_for_path (_data_->_tmp7_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp9_ = _data_->_tmp8_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_data_->_tmp7_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->dir = _data_->_tmp9_;
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp10_ = _data_->dir;
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_state_ = 2;
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_foreach_filename_from_dir (_data_->_tmp10_, ___lambda5__boxes_foreach_filename_from_dir_func, _data_->self, boxes_search_provider_load_ready, _data_);
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 933 "gnome-boxes-search-provider.c"
	_state_2:
#line 39 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_foreach_filename_from_dir_finish (_data_->_res_);
#line 52 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_set_loaded (_data_->self, TRUE);
#line 53 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self->priv->loading = FALSE;
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->dir);
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	block1_data_unref (_data_->_data1_);
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_data1_ = NULL;
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ != 0) {
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 955 "gnome-boxes-search-provider.c"
		}
	}
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 23 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 962 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_search_data_free (gpointer _data) {
	BoxesSearchProviderSearchData* _data_;
	_data_ = _data;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = (_vala_array_free (_data_->terms, _data_->terms_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = (_vala_array_free (_data_->result, _data_->result_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (BoxesSearchProviderSearchData, _data_);
#line 977 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_search (BoxesSearchProvider* self, gchar** terms, int terms_length1, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesSearchProviderSearchData* _data_;
	BoxesSearchProvider* _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (BoxesSearchProviderSearchData);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_callback_ == NULL) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_task_complete_ = TRUE;
#line 992 "gnome-boxes-search-provider.c"
	}
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_search_provider_search_data_free);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = (_vala_array_free (_data_->terms, _data_->terms_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = terms;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms_length1 = terms_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_search_co (_data_);
#line 1008 "gnome-boxes-search-provider.c"
}


static gchar** boxes_search_provider_search_finish (BoxesSearchProvider* self, GAsyncResult* _res_, int* result_length1) {
	gchar** result;
	BoxesSearchProviderSearchData* _data_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _data_->result;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	*result_length1 = _data_->result_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = NULL;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1027 "gnome-boxes-search-provider.c"
}


static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gchar** _tmp3_;
	gint _tmp3__length1;
#line 1078 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_tmp0_ = separator;
#line 1078 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	if (_tmp0_ == NULL) {
#line 1079 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		separator = "";
#line 1044 "gnome-boxes-search-provider.c"
	}
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_tmp3_ = str_array;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_tmp3__length1 = str_array_length1;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp2_ = TRUE;
#line 1054 "gnome-boxes-search-provider.c"
	} else {
		gchar** _tmp4_;
		gint _tmp4__length1;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp4_ = str_array;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp4__length1 = str_array_length1;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp4__length1 > 0;
#line 1064 "gnome-boxes-search-provider.c"
	}
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	if (_tmp2_) {
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 1070 "gnome-boxes-search-provider.c"
	} else {
		gboolean _tmp5_ = FALSE;
		gchar** _tmp6_;
		gint _tmp6__length1;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp6_ = str_array;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp6__length1 = str_array_length1;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		if (_tmp6__length1 == -1) {
#line 1081 "gnome-boxes-search-provider.c"
			gchar** _tmp7_;
			gint _tmp7__length1;
			const gchar* _tmp8_;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			_tmp7_ = str_array;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			_tmp7__length1 = str_array_length1;
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			_tmp8_ = _tmp7_[0];
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			_tmp5_ = _tmp8_ != NULL;
#line 1093 "gnome-boxes-search-provider.c"
		} else {
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			_tmp5_ = FALSE;
#line 1097 "gnome-boxes-search-provider.c"
		}
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp1_ = _tmp5_;
#line 1101 "gnome-boxes-search-provider.c"
	}
#line 1081 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 1105 "gnome-boxes-search-provider.c"
		gint i = 0;
		gsize len = 0UL;
		gint _tmp31_;
		gint _tmp33_;
		gint _tmp34_;
		gsize _tmp35_;
		const gchar* _tmp36_;
		gint _tmp37_;
		gint _tmp38_;
		gint _tmp39_;
		const gchar* res = NULL;
		gsize _tmp40_;
		void* _tmp41_;
		void* ptr = NULL;
		const gchar* _tmp42_;
		gchar** _tmp43_;
		gint _tmp43__length1;
		const gchar* _tmp44_;
		void* _tmp45_;
		const gchar* _tmp62_;
#line 1083 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		len = (gsize) 1;
#line 1128 "gnome-boxes-search-provider.c"
		{
			gboolean _tmp9_ = FALSE;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			i = 0;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			_tmp9_ = TRUE;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 1137 "gnome-boxes-search-provider.c"
				gboolean _tmp11_ = FALSE;
				gboolean _tmp12_ = FALSE;
				gchar** _tmp13_;
				gint _tmp13__length1;
				gint _tmp21_ = 0;
				gchar** _tmp22_;
				gint _tmp22__length1;
				gint _tmp23_;
				const gchar* _tmp24_;
				gsize _tmp30_;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				if (!_tmp9_) {
#line 1150 "gnome-boxes-search-provider.c"
					gint _tmp10_;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp10_ = i;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					i = _tmp10_ + 1;
#line 1156 "gnome-boxes-search-provider.c"
				}
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp9_ = FALSE;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp13_ = str_array;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp13__length1 = str_array_length1;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				if (_tmp13__length1 != -1) {
#line 1166 "gnome-boxes-search-provider.c"
					gint _tmp14_;
					gchar** _tmp15_;
					gint _tmp15__length1;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp14_ = i;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp15_ = str_array;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp15__length1 = str_array_length1;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp12_ = _tmp14_ < _tmp15__length1;
#line 1178 "gnome-boxes-search-provider.c"
				} else {
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp12_ = FALSE;
#line 1182 "gnome-boxes-search-provider.c"
				}
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				if (_tmp12_) {
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp11_ = TRUE;
#line 1188 "gnome-boxes-search-provider.c"
				} else {
					gboolean _tmp16_ = FALSE;
					gchar** _tmp17_;
					gint _tmp17__length1;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp17_ = str_array;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp17__length1 = str_array_length1;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					if (_tmp17__length1 == -1) {
#line 1199 "gnome-boxes-search-provider.c"
						gchar** _tmp18_;
						gint _tmp18__length1;
						gint _tmp19_;
						const gchar* _tmp20_;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
						_tmp18_ = str_array;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
						_tmp18__length1 = str_array_length1;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
						_tmp19_ = i;
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
						_tmp20_ = _tmp18_[_tmp19_];
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
						_tmp16_ = _tmp20_ != NULL;
#line 1214 "gnome-boxes-search-provider.c"
					} else {
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
						_tmp16_ = FALSE;
#line 1218 "gnome-boxes-search-provider.c"
					}
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp11_ = _tmp16_;
#line 1222 "gnome-boxes-search-provider.c"
				}
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				if (!_tmp11_) {
#line 1084 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					break;
#line 1228 "gnome-boxes-search-provider.c"
				}
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp22_ = str_array;
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp22__length1 = str_array_length1;
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp23_ = i;
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp24_ = _tmp22_[_tmp23_];
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				if (_tmp24_ != NULL) {
#line 1240 "gnome-boxes-search-provider.c"
					gchar** _tmp25_;
					gint _tmp25__length1;
					gint _tmp26_;
					const gchar* _tmp27_;
					gint _tmp28_;
					gint _tmp29_;
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp25_ = str_array;
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp25__length1 = str_array_length1;
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp26_ = i;
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp27_ = _tmp25_[_tmp26_];
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp28_ = strlen ((const gchar*) _tmp27_);
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp29_ = _tmp28_;
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp21_ = _tmp29_;
#line 1261 "gnome-boxes-search-provider.c"
				} else {
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp21_ = 0;
#line 1265 "gnome-boxes-search-provider.c"
				}
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp30_ = len;
#line 1085 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				len = _tmp30_ + _tmp21_;
#line 1271 "gnome-boxes-search-provider.c"
			}
		}
#line 1087 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp31_ = i;
#line 1087 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		if (_tmp31_ == 0) {
#line 1278 "gnome-boxes-search-provider.c"
			gchar* _tmp32_;
#line 1088 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			_tmp32_ = g_strdup ("");
#line 1088 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			result = _tmp32_;
#line 1088 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			return result;
#line 1286 "gnome-boxes-search-provider.c"
		}
#line 1090 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp33_ = i;
#line 1090 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		str_array_length1 = _tmp33_;
#line 1090 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp34_ = str_array_length1;
#line 1091 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp35_ = len;
#line 1091 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp36_ = separator;
#line 1091 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp37_ = strlen ((const gchar*) _tmp36_);
#line 1091 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp38_ = _tmp37_;
#line 1091 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp39_ = i;
#line 1091 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
#line 1093 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp40_ = len;
#line 1093 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp41_ = g_malloc (_tmp40_);
#line 1093 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		res = _tmp41_;
#line 1094 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp42_ = res;
#line 1094 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp43_ = str_array;
#line 1094 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp43__length1 = str_array_length1;
#line 1094 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp44_ = _tmp43_[0];
#line 1094 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
#line 1094 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		ptr = _tmp45_;
#line 1324 "gnome-boxes-search-provider.c"
		{
			gboolean _tmp46_ = FALSE;
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			i = 1;
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			_tmp46_ = TRUE;
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 1333 "gnome-boxes-search-provider.c"
				gint _tmp48_;
				gchar** _tmp49_;
				gint _tmp49__length1;
				void* _tmp50_;
				const gchar* _tmp51_;
				void* _tmp52_;
				const gchar* _tmp53_ = NULL;
				gchar** _tmp54_;
				gint _tmp54__length1;
				gint _tmp55_;
				const gchar* _tmp56_;
				void* _tmp60_;
				void* _tmp61_;
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				if (!_tmp46_) {
#line 1349 "gnome-boxes-search-provider.c"
					gint _tmp47_;
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp47_ = i;
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					i = _tmp47_ + 1;
#line 1355 "gnome-boxes-search-provider.c"
				}
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp46_ = FALSE;
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp48_ = i;
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp49_ = str_array;
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp49__length1 = str_array_length1;
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				if (!(_tmp48_ < _tmp49__length1)) {
#line 1095 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					break;
#line 1369 "gnome-boxes-search-provider.c"
				}
#line 1096 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp50_ = ptr;
#line 1096 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp51_ = separator;
#line 1096 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
#line 1096 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				ptr = _tmp52_;
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp54_ = str_array;
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp54__length1 = str_array_length1;
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp55_ = i;
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp56_ = _tmp54_[_tmp55_];
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				if (_tmp56_ != NULL) {
#line 1389 "gnome-boxes-search-provider.c"
					gchar** _tmp57_;
					gint _tmp57__length1;
					gint _tmp58_;
					const gchar* _tmp59_;
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp57_ = str_array;
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp57__length1 = str_array_length1;
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp58_ = i;
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp59_ = _tmp57_[_tmp58_];
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp53_ = (const gchar*) _tmp59_;
#line 1404 "gnome-boxes-search-provider.c"
				} else {
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
					_tmp53_ = "";
#line 1408 "gnome-boxes-search-provider.c"
				}
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp60_ = ptr;
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				_tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
#line 1097 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
				ptr = _tmp61_;
#line 1416 "gnome-boxes-search-provider.c"
			}
		}
#line 1100 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp62_ = res;
#line 1100 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		res = NULL;
#line 1100 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		result = (gchar*) _tmp62_;
#line 1100 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		return result;
#line 1427 "gnome-boxes-search-provider.c"
	} else {
		gchar* _tmp63_;
#line 1102 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_tmp63_ = g_strdup ("");
#line 1102 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		result = _tmp63_;
#line 1102 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		return result;
#line 1436 "gnome-boxes-search-provider.c"
	}
}


static void boxes_search_provider_search_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesSearchProviderSearchData* _data_;
#line 63 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = _user_data_;
#line 63 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_source_object_ = source_object;
#line 63 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_res_ = _res_;
#line 63 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 63 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_search_co (_data_);
#line 1453 "gnome-boxes-search-provider.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	return _data2_;
#line 1462 "gnome-boxes-search-provider.c"
}


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 1471 "gnome-boxes-search-provider.c"
		GPtrArray* self;
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		self = _data2_->self;
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		_g_ptr_array_unref0 (self);
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
		g_slice_free (Block2Data, _data2_);
#line 1479 "gnome-boxes-search-provider.c"
	}
}


static gint __lambda1_ (Block2Data* _data2_, gconstpointer** a, gconstpointer** b) {
	GPtrArray* self;
	gint result = 0;
	GCompareFunc _tmp0_;
	gconstpointer** _tmp1_;
	gconstpointer** _tmp2_;
	gint _tmp3_;
#line 4958 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	self = _data2_->self;
#line 4959 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_tmp0_ = _data2_->compare_func;
#line 4959 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_tmp1_ = a;
#line 4959 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_tmp2_ = b;
#line 4959 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_tmp3_ = _tmp0_ ((gconstpointer**) (*_tmp1_), (gconstpointer**) (*_tmp2_));
#line 4959 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	result = _tmp3_;
#line 4959 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	return result;
#line 1505 "gnome-boxes-search-provider.c"
}


static gint ___lambda1__gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
	gint result;
	result = __lambda1_ (self, a, b);
#line 4958 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	return result;
#line 1514 "gnome-boxes-search-provider.c"
}


static void vala_g_ptr_array_sort (GPtrArray* self, GCompareFunc compare_func) {
	Block2Data* _data2_;
	GCompareFunc _tmp0_;
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	g_return_if_fail (self != NULL);
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_data2_ = g_slice_new0 (Block2Data);
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_data2_->_ref_count_ = 1;
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_data2_->self = g_ptr_array_ref (self);
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_tmp0_ = compare_func;
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_data2_->compare_func = _tmp0_;
#line 4958 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	g_ptr_array_sort_with_data (self, ___lambda1__gcompare_data_func, _data2_);
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	block2_data_unref (_data2_);
#line 4957 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_data2_ = NULL;
#line 1539 "gnome-boxes-search-provider.c"
}


static gint __lambda6_ (BoxesBoxConfig* a, BoxesBoxConfig* b) {
	gint result = 0;
	BoxesBoxConfig* _tmp0_;
	BoxesBoxConfig* _tmp1_;
	gint _tmp2_;
#line 70 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (a != NULL, 0);
#line 70 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (b != NULL, 0);
#line 70 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = a;
#line 70 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = b;
#line 70 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = boxes_box_config_compare (_tmp0_, _tmp1_);
#line 70 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _tmp2_;
#line 70 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1562 "gnome-boxes-search-provider.c"
}


static gint ___lambda6__gcompare_func (gconstpointer a, gconstpointer b) {
	gint result;
	result = __lambda6_ ((BoxesBoxConfig*) a, (BoxesBoxConfig*) b);
#line 70 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1571 "gnome-boxes-search-provider.c"
}


static gint g_ptr_array_get_length (GPtrArray* self) {
	gint result;
	guint _tmp0_;
#line 4973 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 4973 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_tmp0_ = self->len;
#line 4973 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	result = (gint) _tmp0_;
#line 4973 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	return result;
#line 1586 "gnome-boxes-search-provider.c"
}


static void g_ptr_array_set_length (GPtrArray* self, gint value) {
	gint _tmp0_;
#line 4974 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	g_return_if_fail (self != NULL);
#line 4974 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	_tmp0_ = value;
#line 4974 "/home/fborges/jhbuild/install/share/vala-0.38/vapi/glib-2.0.vapi"
	g_ptr_array_set_size (self, _tmp0_);
#line 1598 "gnome-boxes-search-provider.c"
}


static gboolean boxes_search_provider_search_co (BoxesSearchProviderSearchData* _data_) {
#line 56 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 56 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 1607 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 56 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 1611 "gnome-boxes-search-provider.c"
		goto _state_1;
		default:
#line 56 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 1616 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 57 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0_ = _data_->self->priv->app;
#line 57 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_hold ((GApplication*) _data_->_tmp0_);
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1_ = _data_->terms;
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1__length1 = _data_->terms_length1;
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp2_ = _vala_g_strjoinv (" ", _data_->_tmp1_, _data_->_tmp1__length1);
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = boxes_canonicalize_for_search (_data_->_tmp3_);
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp7_ = _data_->_tmp6_ = g_strsplit (_data_->_tmp5_, " ", 0);
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp8_ = _data_->_tmp7_;
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp8__length1 = _vala_array_length (_data_->_tmp6_);
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_data_->_tmp5_);
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_data_->_tmp3_);
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->normalized_terms = _data_->_tmp8_;
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->normalized_terms_length1 = _data_->_tmp8__length1;
#line 58 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_normalized_terms_size_ = _data_->normalized_terms_length1;
#line 59 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp9_ = g_ptr_array_new_full ((guint) 0, _g_object_unref0_);
#line 59 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->matches = _data_->_tmp9_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp10_ = _data_->terms;
#line 61 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp10__length1 = _data_->terms_length1;
#line 61 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp11_ = _vala_g_strjoinv (", ", _data_->_tmp10_, _data_->_tmp10__length1);
#line 61 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_debug ("gnome-boxes-search-provider.vala:61: search (%s)", _data_->_tmp12_);
#line 61 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_data_->_tmp12_);
#line 62 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp13_ = _data_->self->priv->_loaded;
#line 62 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (!_data_->_tmp13_) {
#line 63 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_state_ = 1;
#line 63 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		boxes_search_provider_load (_data_->self, boxes_search_provider_search_ready, _data_);
#line 63 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return FALSE;
#line 1677 "gnome-boxes-search-provider.c"
		_state_1:
#line 63 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		boxes_search_provider_load_finish (_data_->self, _data_->_res_);
#line 1681 "gnome-boxes-search-provider.c"
	}
#line 65 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp14_ = _data_->self->priv->boxes;
#line 65 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp15_ = g_hash_table_get_values (_data_->_tmp14_);
#line 1687 "gnome-boxes-search-provider.c"
	{
#line 65 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->box_collection = _data_->_tmp15_;
#line 65 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		for (_data_->box_it = _data_->box_collection; _data_->box_it != NULL; _data_->box_it = _data_->box_it->next) {
#line 65 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->box = (BoxesBoxConfig*) _data_->box_it->data;
#line 1695 "gnome-boxes-search-provider.c"
			{
#line 66 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp16_ = _data_->box;
#line 66 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp17_ = _data_->normalized_terms;
#line 66 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp17__length1 = _data_->normalized_terms_length1;
#line 66 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp18_ = boxes_box_config_contains_strings (_data_->_tmp16_, _data_->_tmp17_, _data_->_tmp17__length1);
#line 66 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (_data_->_tmp18_) {
#line 67 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp19_ = _data_->matches;
#line 67 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp20_ = _data_->box;
#line 67 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp21_ = _g_object_ref0 (_data_->_tmp20_);
#line 67 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_ptr_array_add (_data_->_tmp19_, _data_->_tmp21_);
#line 1715 "gnome-boxes-search-provider.c"
				}
			}
		}
#line 65 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_list_free0 (_data_->box_collection);
#line 1721 "gnome-boxes-search-provider.c"
	}
#line 70 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp22_ = _data_->matches;
#line 70 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	vala_g_ptr_array_sort (_data_->_tmp22_, ___lambda6__gcompare_func);
#line 71 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp23_ = _data_->matches;
#line 71 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp24_ = g_ptr_array_get_length (_data_->_tmp23_);
#line 71 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp25_ = _data_->_tmp24_;
#line 71 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp26_ = g_new0 (gchar*, _data_->_tmp25_ + 1);
#line 71 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->results = _data_->_tmp26_;
#line 71 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->results_length1 = _data_->_tmp25_;
#line 71 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_results_size_ = _data_->results_length1;
#line 1741 "gnome-boxes-search-provider.c"
	{
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->i = 0;
#line 1745 "gnome-boxes-search-provider.c"
		{
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_tmp27_ = TRUE;
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			while (TRUE) {
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (!_data_->_tmp27_) {
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp28_ = _data_->i;
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->i = _data_->_tmp28_ + 1;
#line 1757 "gnome-boxes-search-provider.c"
				}
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp27_ = FALSE;
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp29_ = _data_->i;
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp30_ = _data_->matches;
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp31_ = g_ptr_array_get_length (_data_->_tmp30_);
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp32_ = _data_->_tmp31_;
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (!(_data_->_tmp29_ < _data_->_tmp32_)) {
#line 72 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					break;
#line 1773 "gnome-boxes-search-provider.c"
				}
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp33_ = _data_->results;
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp33__length1 = _data_->results_length1;
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp34_ = _data_->i;
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp35_ = _data_->matches;
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp36_ = _data_->i;
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp37_ = g_ptr_array_index (_data_->_tmp35_, (guint) _data_->_tmp36_);
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp38_ = g_object_get_data ((GObject*) ((BoxesBoxConfig*) _data_->_tmp37_), "search-id");
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp39_ = g_strdup ((const gchar*) _data_->_tmp38_);
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (_data_->_tmp33_[_data_->_tmp34_]);
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp33_[_data_->_tmp34_] = _data_->_tmp39_;
#line 73 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp40_ = _data_->_tmp33_[_data_->_tmp34_];
#line 1797 "gnome-boxes-search-provider.c"
			}
		}
	}
#line 75 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp41_ = _data_->self->priv->app;
#line 75 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_release ((GApplication*) _data_->_tmp41_);
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp42_ = _data_->results;
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp42__length1 = _data_->results_length1;
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result_length1 = _data_->_tmp42__length1;
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = _data_->_tmp42_;
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_ptr_array_unref0 (_data_->matches);
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->normalized_terms = (_vala_array_free (_data_->normalized_terms, _data_->normalized_terms_length1, (GDestroyNotify) g_free), NULL);
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = (_vala_array_free (_data_->terms, _data_->terms_length1, (GDestroyNotify) g_free), NULL);
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ != 0) {
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1827 "gnome-boxes-search-provider.c"
		}
	}
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 76 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 1834 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_GetInitialResultSet_data_free (gpointer _data) {
	boxes_search_provider_GetInitialResultSetData* _data_;
	_data_ = _data;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = (_vala_array_free (_data_->result, _data_->result_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (boxes_search_provider_GetInitialResultSetData, _data_);
#line 1847 "gnome-boxes-search-provider.c"
}


void boxes_search_provider_GetInitialResultSet (BoxesSearchProvider* self, gchar** terms, int terms_length1, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	boxes_search_provider_GetInitialResultSetData* _data_;
	BoxesSearchProvider* _tmp0_;
	gchar** _tmp1_;
	gint _tmp1__length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (boxes_search_provider_GetInitialResultSetData);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_callback_ == NULL) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_task_complete_ = TRUE;
#line 1864 "gnome-boxes-search-provider.c"
	}
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_search_provider_GetInitialResultSet_data_free);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = terms;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1__length1 = terms_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = _tmp1_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms_length1 = _tmp1__length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetInitialResultSet_co (_data_);
#line 1882 "gnome-boxes-search-provider.c"
}


gchar** boxes_search_provider_GetInitialResultSet_finish (BoxesSearchProvider* self, GAsyncResult* _res_, int* result_length1) {
	gchar** result;
	boxes_search_provider_GetInitialResultSetData* _data_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _data_->result;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	*result_length1 = _data_->result_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = NULL;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1901 "gnome-boxes-search-provider.c"
}


static gchar** _vala_array_dup1 (gchar** self, int length) {
	gchar** result;
	int i;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = g_new0 (gchar*, length + 1);
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	for (i = 0; i < length; i++) {
#line 1912 "gnome-boxes-search-provider.c"
		gchar* _tmp0_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp0_ = g_strdup (self[i]);
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		result[i] = _tmp0_;
#line 1918 "gnome-boxes-search-provider.c"
	}
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1922 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_GetInitialResultSet_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	boxes_search_provider_GetInitialResultSetData* _data_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = _user_data_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_source_object_ = source_object;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_res_ = _res_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetInitialResultSet_co (_data_);
#line 1938 "gnome-boxes-search-provider.c"
}


static gboolean boxes_search_provider_GetInitialResultSet_co (boxes_search_provider_GetInitialResultSetData* _data_) {
#line 79 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 79 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 1947 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 79 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 1951 "gnome-boxes-search-provider.c"
		goto _state_1;
		default:
#line 79 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 1956 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0_ = _data_->terms;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0__length1 = _data_->terms_length1;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1_ = (_data_->_tmp0_ != NULL) ? _vala_array_dup1 (_data_->_tmp0_, _data_->_tmp0__length1) : ((gpointer) _data_->_tmp0_);
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1__length1 = _data_->_tmp0__length1;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_state_ = 1;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_search (_data_->self, _data_->_tmp1_, _data_->_tmp1__length1, boxes_search_provider_GetInitialResultSet_ready, _data_);
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 1973 "gnome-boxes-search-provider.c"
	_state_1:
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = boxes_search_provider_search_finish (_data_->self, _data_->_res_, &_data_->_tmp2_);
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4__length1 = _data_->_tmp2_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result_length1 = _data_->_tmp4__length1;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = _data_->_tmp4_;
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ != 0) {
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1993 "gnome-boxes-search-provider.c"
		}
	}
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 80 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 2000 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_GetSubsearchResultSet_data_free (gpointer _data) {
	boxes_search_provider_GetSubsearchResultSetData* _data_;
	_data_ = _data;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = (_vala_array_free (_data_->result, _data_->result_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (boxes_search_provider_GetSubsearchResultSetData, _data_);
#line 2013 "gnome-boxes-search-provider.c"
}


void boxes_search_provider_GetSubsearchResultSet (BoxesSearchProvider* self, gchar** previous_results, int previous_results_length1, gchar** new_terms, int new_terms_length1, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	boxes_search_provider_GetSubsearchResultSetData* _data_;
	BoxesSearchProvider* _tmp0_;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gchar** _tmp2_;
	gint _tmp2__length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (boxes_search_provider_GetSubsearchResultSetData);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_callback_ == NULL) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_task_complete_ = TRUE;
#line 2032 "gnome-boxes-search-provider.c"
	}
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_search_provider_GetSubsearchResultSet_data_free);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = previous_results;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1__length1 = previous_results_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->previous_results = _tmp1_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->previous_results_length1 = _tmp1__length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = new_terms;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2__length1 = new_terms_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->new_terms = _tmp2_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->new_terms_length1 = _tmp2__length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetSubsearchResultSet_co (_data_);
#line 2058 "gnome-boxes-search-provider.c"
}


gchar** boxes_search_provider_GetSubsearchResultSet_finish (BoxesSearchProvider* self, GAsyncResult* _res_, int* result_length1) {
	gchar** result;
	boxes_search_provider_GetSubsearchResultSetData* _data_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _data_->result;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	*result_length1 = _data_->result_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = NULL;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 2077 "gnome-boxes-search-provider.c"
}


static gchar** _vala_array_dup2 (gchar** self, int length) {
	gchar** result;
	int i;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = g_new0 (gchar*, length + 1);
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	for (i = 0; i < length; i++) {
#line 2088 "gnome-boxes-search-provider.c"
		gchar* _tmp0_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp0_ = g_strdup (self[i]);
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		result[i] = _tmp0_;
#line 2094 "gnome-boxes-search-provider.c"
	}
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 2098 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_GetSubsearchResultSet_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	boxes_search_provider_GetSubsearchResultSetData* _data_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = _user_data_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_source_object_ = source_object;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_res_ = _res_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetSubsearchResultSet_co (_data_);
#line 2114 "gnome-boxes-search-provider.c"
}


static gboolean boxes_search_provider_GetSubsearchResultSet_co (boxes_search_provider_GetSubsearchResultSetData* _data_) {
#line 83 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 83 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 2123 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 83 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 2127 "gnome-boxes-search-provider.c"
		goto _state_1;
		default:
#line 83 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 2132 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0_ = _data_->new_terms;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0__length1 = _data_->new_terms_length1;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1_ = (_data_->_tmp0_ != NULL) ? _vala_array_dup2 (_data_->_tmp0_, _data_->_tmp0__length1) : ((gpointer) _data_->_tmp0_);
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1__length1 = _data_->_tmp0__length1;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_state_ = 1;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_search (_data_->self, _data_->_tmp1_, _data_->_tmp1__length1, boxes_search_provider_GetSubsearchResultSet_ready, _data_);
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 2149 "gnome-boxes-search-provider.c"
	_state_1:
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = boxes_search_provider_search_finish (_data_->self, _data_->_res_, &_data_->_tmp2_);
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4__length1 = _data_->_tmp2_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result_length1 = _data_->_tmp4__length1;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = _data_->_tmp4_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ != 0) {
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 2169 "gnome-boxes-search-provider.c"
		}
	}
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 85 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 2176 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_get_metas_data_free (gpointer _data) {
	BoxesSearchProviderGetMetasData* _data_;
	_data_ = _data;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = (_vala_array_free (_data_->ids, _data_->ids_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = (_vala_array_free (_data_->result, _data_->result_length1, (GDestroyNotify) g_hash_table_unref), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (BoxesSearchProviderGetMetasData, _data_);
#line 2191 "gnome-boxes-search-provider.c"
}


void boxes_search_provider_get_metas (BoxesSearchProvider* self, gchar** ids, int ids_length1, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesSearchProviderGetMetasData* _data_;
	BoxesSearchProvider* _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (BoxesSearchProviderGetMetasData);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_callback_ == NULL) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_task_complete_ = TRUE;
#line 2206 "gnome-boxes-search-provider.c"
	}
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_search_provider_get_metas_data_free);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = (_vala_array_free (_data_->ids, _data_->ids_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = ids;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids_length1 = ids_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_get_metas_co (_data_);
#line 2222 "gnome-boxes-search-provider.c"
}


GHashTable** boxes_search_provider_get_metas_finish (BoxesSearchProvider* self, GAsyncResult* _res_, int* result_length1) {
	GHashTable** result;
	BoxesSearchProviderGetMetasData* _data_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _data_->result;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	*result_length1 = _data_->result_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = NULL;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 2241 "gnome-boxes-search-provider.c"
}


static void _g_variant_unref0_ (gpointer var) {
#line 99 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(var == NULL) ? NULL : (var = (g_variant_unref (var), NULL));
#line 2248 "gnome-boxes-search-provider.c"
}


static gpointer _g_hash_table_ref0 (gpointer self) {
#line 100 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return self ? g_hash_table_ref (self) : NULL;
#line 2255 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_get_metas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesSearchProviderGetMetasData* _data_;
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = _user_data_;
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_source_object_ = source_object;
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_res_ = _res_;
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_get_metas_co (_data_);
#line 2271 "gnome-boxes-search-provider.c"
}


static GHashTable** _vala_array_dup3 (GHashTable** self, int length) {
	GHashTable** result;
	int i;
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = g_new0 (GHashTable*, length + 1);
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	for (i = 0; i < length; i++) {
#line 2282 "gnome-boxes-search-provider.c"
		GHashTable* _tmp0_;
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp0_ = _g_hash_table_ref0 (self[i]);
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		result[i] = _tmp0_;
#line 2288 "gnome-boxes-search-provider.c"
	}
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 2292 "gnome-boxes-search-provider.c"
}


static gboolean boxes_search_provider_get_metas_co (BoxesSearchProviderGetMetasData* _data_) {
#line 88 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 88 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 2301 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 88 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 2305 "gnome-boxes-search-provider.c"
		goto _state_1;
		default:
#line 88 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 2310 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 89 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0_ = _data_->ids;
#line 89 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0__length1 = _data_->ids_length1;
#line 89 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1_ = g_new0 (GHashTable*, _data_->_tmp0__length1 + 1);
#line 89 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->metas = _data_->_tmp1_;
#line 89 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->metas_length1 = _data_->_tmp0__length1;
#line 89 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_metas_size_ = _data_->metas_length1;
#line 90 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp2_ = _data_->self->priv->app;
#line 90 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_hold ((GApplication*) _data_->_tmp2_);
#line 92 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = _data_->ids;
#line 92 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3__length1 = _data_->ids_length1;
#line 92 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = _vala_g_strjoinv (", ", _data_->_tmp3_, _data_->_tmp3__length1);
#line 92 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 92 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_debug ("gnome-boxes-search-provider.vala:92: GetResultMetas (%s)", _data_->_tmp5_);
#line 92 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_data_->_tmp5_);
#line 93 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->n = (guint) 0;
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp6_ = _data_->ids;
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp6__length1 = _data_->ids_length1;
#line 2347 "gnome-boxes-search-provider.c"
	{
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->id_collection_length1 = 0;
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_id_collection_size_ = 0;
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->id_collection = _data_->_tmp6_;
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->id_collection_length1 = _data_->_tmp6__length1;
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		for (_data_->id_it = 0; _data_->id_it < _data_->_tmp6__length1; _data_->id_it = _data_->id_it + 1) {
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_tmp7_ = g_strdup (_data_->id_collection[_data_->id_it]);
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->id = _data_->_tmp7_;
#line 2363 "gnome-boxes-search-provider.c"
			{
#line 95 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp8_ = _data_->self->priv->boxes;
#line 95 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp9_ = _data_->id;
#line 95 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp10_ = g_hash_table_lookup (_data_->_tmp8_, _data_->_tmp9_);
#line 95 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp11_ = _g_object_ref0 ((BoxesBoxConfig*) _data_->_tmp10_);
#line 95 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->box = _data_->_tmp11_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp12_ = _data_->box;
#line 96 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (_data_->_tmp12_ == NULL) {
#line 97 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->box);
#line 97 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_free0 (_data_->id);
#line 97 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					continue;
#line 2385 "gnome-boxes-search-provider.c"
				}
#line 99 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp13_ = g_str_hash;
#line 99 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp14_ = g_str_equal;
#line 99 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp15_ = g_hash_table_new_full (_data_->_tmp13_, _data_->_tmp14_, _g_free0_, _g_variant_unref0_);
#line 99 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->meta = _data_->_tmp15_;
#line 100 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp16_ = _data_->metas;
#line 100 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp16__length1 = _data_->metas_length1;
#line 100 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp17_ = _data_->n;
#line 100 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp18_ = _data_->meta;
#line 100 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp19_ = _g_hash_table_ref0 (_data_->_tmp18_);
#line 100 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_hash_table_unref0 (_data_->_tmp16_[_data_->_tmp17_]);
#line 100 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp16_[_data_->_tmp17_] = _data_->_tmp19_;
#line 100 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp20_ = _data_->_tmp16_[_data_->_tmp17_];
#line 101 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp21_ = _data_->n;
#line 101 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->n = _data_->_tmp21_ + 1;
#line 103 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp22_ = _data_->meta;
#line 103 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp23_ = g_strdup ("id");
#line 103 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp24_ = _data_->id;
#line 103 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp25_ = g_variant_new_string (_data_->_tmp24_);
#line 103 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				g_variant_ref_sink (_data_->_tmp25_);
#line 103 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				g_hash_table_insert (_data_->_tmp22_, _data_->_tmp23_, _data_->_tmp25_);
#line 104 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp26_ = _data_->meta;
#line 104 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp27_ = g_strdup ("name");
#line 104 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp28_ = _data_->box;
#line 104 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp29_ = boxes_box_config_get_last_seen_name (_data_->_tmp28_);
#line 104 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp30_ = _data_->_tmp29_;
#line 104 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp31_ = _data_->_tmp30_;
#line 104 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp32_ = g_variant_new_string (_data_->_tmp31_);
#line 104 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				g_variant_ref_sink (_data_->_tmp32_);
#line 104 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				g_hash_table_insert (_data_->_tmp26_, _data_->_tmp27_, _data_->_tmp32_);
#line 104 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (_data_->_tmp31_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp33_ = _data_->box;
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp34_ = boxes_box_config_get_uuid (_data_->_tmp33_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp35_ = _data_->_tmp34_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp36_ = _data_->_tmp35_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp37_ = boxes_get_screenshot_filename (_data_->_tmp36_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp38_ = _data_->_tmp37_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp39_ = g_file_new_for_path (_data_->_tmp38_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp40_ = _data_->_tmp39_;
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (_data_->_tmp38_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (_data_->_tmp36_);
#line 106 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->file = _data_->_tmp40_;
#line 107 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->info = NULL;
#line 2471 "gnome-boxes-search-provider.c"
				{
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp42_ = _data_->file;
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_state_ = 1;
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_file_query_info_async (_data_->_tmp42_, G_FILE_ATTRIBUTE_STANDARD_TYPE, G_FILE_QUERY_INFO_NONE, G_PRIORITY_DEFAULT, NULL, boxes_search_provider_get_metas_ready, _data_);
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					return FALSE;
#line 2481 "gnome-boxes-search-provider.c"
					_state_1:
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp43_ = g_file_query_info_finish (_data_->_tmp42_, _data_->_res_, &_data_->_inner_error_);
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp41_ = _data_->_tmp43_;
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 2489 "gnome-boxes-search-provider.c"
						goto __catch0_g_error;
					}
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp44_ = _data_->_tmp41_;
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp41_ = NULL;
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->info);
#line 109 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->info = _data_->_tmp44_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->_tmp41_);
#line 2502 "gnome-boxes-search-provider.c"
				}
				goto __finally0;
				__catch0_g_error:
				{
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_error_ = _data_->_inner_error_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_inner_error_ = NULL;
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_error_free0 (_data_->_error_);
#line 2513 "gnome-boxes-search-provider.c"
				}
				__finally0:
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->info);
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->file);
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_hash_table_unref0 (_data_->meta);
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->box);
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_free0 (_data_->id);
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->metas = (_vala_array_free (_data_->metas, _data_->metas_length1, (GDestroyNotify) g_hash_table_unref), NULL);
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->ids = (_vala_array_free (_data_->ids, _data_->ids_length1, (GDestroyNotify) g_free), NULL);
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_clear_error (&_data_->_inner_error_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_object_unref (_data_->_async_result);
#line 108 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					return FALSE;
#line 2540 "gnome-boxes-search-provider.c"
				}
#line 112 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp45_ = _data_->info;
#line 112 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (_data_->_tmp45_ != NULL) {
#line 113 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp46_ = _data_->file;
#line 113 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp47_ = (GFileIcon*) g_file_icon_new (_data_->_tmp46_);
#line 113 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->icon = _data_->_tmp47_;
#line 114 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp48_ = _data_->meta;
#line 114 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp49_ = g_strdup ("gicon");
#line 114 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp50_ = _data_->icon;
#line 114 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp51_ = g_icon_to_string ((GIcon*) _data_->_tmp50_);
#line 114 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp52_ = _data_->_tmp51_;
#line 114 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp53_ = g_variant_new_string (_data_->_tmp52_);
#line 114 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_variant_ref_sink (_data_->_tmp53_);
#line 114 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_hash_table_insert (_data_->_tmp48_, _data_->_tmp49_, _data_->_tmp53_);
#line 114 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_free0 (_data_->_tmp52_);
#line 112 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->icon);
#line 2572 "gnome-boxes-search-provider.c"
				} else {
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp54_ = _data_->meta;
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp55_ = g_strdup ("gicon");
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp56_ = (GThemedIcon*) g_themed_icon_new ("gnome-boxes");
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp57_ = _data_->_tmp56_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp58_ = g_icon_to_string ((GIcon*) _data_->_tmp57_);
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp59_ = _data_->_tmp58_;
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp60_ = g_variant_new_string (_data_->_tmp59_);
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_variant_ref_sink (_data_->_tmp60_);
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_hash_table_insert (_data_->_tmp54_, _data_->_tmp55_, _data_->_tmp60_);
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_free0 (_data_->_tmp59_);
#line 116 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->_tmp57_);
#line 2596 "gnome-boxes-search-provider.c"
				}
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_object_unref0 (_data_->info);
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_object_unref0 (_data_->file);
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_hash_table_unref0 (_data_->meta);
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_object_unref0 (_data_->box);
#line 94 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (_data_->id);
#line 2608 "gnome-boxes-search-provider.c"
			}
		}
	}
#line 120 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp61_ = _data_->self->priv->app;
#line 120 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_release ((GApplication*) _data_->_tmp61_);
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp62_ = _data_->metas;
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp62__length1 = _data_->metas_length1;
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp63_ = _data_->n;
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp64_ = ((_data_->_tmp62_ + 0) != NULL) ? _vala_array_dup3 (_data_->_tmp62_ + 0, ((gint) _data_->_tmp63_) - 0) : ((gpointer) (_data_->_tmp62_ + 0));
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp64__length1 = ((gint) _data_->_tmp63_) - 0;
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp65_ = _data_->_tmp64_;
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp65__length1 = _data_->_tmp64__length1;
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result_length1 = _data_->_tmp65__length1;
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = _data_->_tmp65_;
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->metas = (_vala_array_free (_data_->metas, _data_->metas_length1, (GDestroyNotify) g_hash_table_unref), NULL);
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = (_vala_array_free (_data_->ids, _data_->ids_length1, (GDestroyNotify) g_free), NULL);
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ != 0) {
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 2646 "gnome-boxes-search-provider.c"
		}
	}
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 121 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 2653 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_GetResultMetas_data_free (gpointer _data) {
	boxes_search_provider_GetResultMetasData* _data_;
	_data_ = _data;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = (_vala_array_free (_data_->result, _data_->result_length1, (GDestroyNotify) g_hash_table_unref), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (boxes_search_provider_GetResultMetasData, _data_);
#line 2666 "gnome-boxes-search-provider.c"
}


void boxes_search_provider_GetResultMetas (BoxesSearchProvider* self, gchar** ids, int ids_length1, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	boxes_search_provider_GetResultMetasData* _data_;
	BoxesSearchProvider* _tmp0_;
	gchar** _tmp1_;
	gint _tmp1__length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (boxes_search_provider_GetResultMetasData);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_callback_ == NULL) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_task_complete_ = TRUE;
#line 2683 "gnome-boxes-search-provider.c"
	}
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_search_provider_GetResultMetas_data_free);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = ids;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1__length1 = ids_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = _tmp1_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids_length1 = _tmp1__length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetResultMetas_co (_data_);
#line 2701 "gnome-boxes-search-provider.c"
}


GHashTable** boxes_search_provider_GetResultMetas_finish (BoxesSearchProvider* self, GAsyncResult* _res_, int* result_length1) {
	GHashTable** result;
	boxes_search_provider_GetResultMetasData* _data_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _data_->result;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	*result_length1 = _data_->result_length1;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = NULL;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 2720 "gnome-boxes-search-provider.c"
}


static gchar** _vala_array_dup4 (gchar** self, int length) {
	gchar** result;
	int i;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = g_new0 (gchar*, length + 1);
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	for (i = 0; i < length; i++) {
#line 2731 "gnome-boxes-search-provider.c"
		gchar* _tmp0_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp0_ = g_strdup (self[i]);
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		result[i] = _tmp0_;
#line 2737 "gnome-boxes-search-provider.c"
	}
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 2741 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_GetResultMetas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	boxes_search_provider_GetResultMetasData* _data_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = _user_data_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_source_object_ = source_object;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_res_ = _res_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_task_complete_ = TRUE;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetResultMetas_co (_data_);
#line 2757 "gnome-boxes-search-provider.c"
}


static gboolean boxes_search_provider_GetResultMetas_co (boxes_search_provider_GetResultMetasData* _data_) {
#line 126 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 126 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 2766 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 126 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 2770 "gnome-boxes-search-provider.c"
		goto _state_1;
		default:
#line 126 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 2775 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0_ = _data_->ids;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0__length1 = _data_->ids_length1;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1_ = (_data_->_tmp0_ != NULL) ? _vala_array_dup4 (_data_->_tmp0_, _data_->_tmp0__length1) : ((gpointer) _data_->_tmp0_);
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1__length1 = _data_->_tmp0__length1;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_state_ = 1;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_get_metas (_data_->self, _data_->_tmp1_, _data_->_tmp1__length1, boxes_search_provider_GetResultMetas_ready, _data_);
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 2792 "gnome-boxes-search-provider.c"
	_state_1:
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = boxes_search_provider_get_metas_finish (_data_->self, _data_->_res_, &_data_->_tmp2_);
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4__length1 = _data_->_tmp2_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result_length1 = _data_->_tmp4__length1;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = _data_->_tmp4_;
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ != 0) {
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 2812 "gnome-boxes-search-provider.c"
		}
	}
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 127 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 2819 "gnome-boxes-search-provider.c"
}


void boxes_search_provider_ActivateResult (BoxesSearchProvider* self, const gchar* search_id, gchar** terms, int terms_length1, guint32 timestamp) {
	BoxesSearchProviderApp* _tmp0_;
	const gchar* _tmp1_;
	BoxesBoxConfig* box = NULL;
	GHashTable* _tmp2_;
	const gchar* _tmp3_;
	gconstpointer _tmp4_;
	BoxesBoxConfig* _tmp5_;
	BoxesBoxConfig* _tmp6_;
	gchar* uuid = NULL;
	BoxesBoxConfig* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	BoxesSearchProviderApp* _tmp25_;
	GError * _inner_error_ = NULL;
#line 130 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_if_fail (self != NULL);
#line 130 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_if_fail (search_id != NULL);
#line 131 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = self->priv->app;
#line 131 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_hold ((GApplication*) _tmp0_);
#line 133 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = search_id;
#line 133 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_debug ("gnome-boxes-search-provider.vala:133: ActivateResult (%s)", _tmp1_);
#line 135 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = self->priv->boxes;
#line 135 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = search_id;
#line 135 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp4_ = g_hash_table_lookup (_tmp2_, _tmp3_);
#line 135 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp5_ = _g_object_ref0 ((BoxesBoxConfig*) _tmp4_);
#line 135 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	box = _tmp5_;
#line 136 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp6_ = box;
#line 136 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_tmp6_ == NULL) {
#line 2864 "gnome-boxes-search-provider.c"
		const gchar* _tmp7_;
		gchar* _tmp8_;
		gchar* _tmp9_;
		BoxesSearchProviderApp* _tmp10_;
#line 137 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp7_ = search_id;
#line 137 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp8_ = g_strconcat ("Can't find id: ", _tmp7_, NULL);
#line 137 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp9_ = _tmp8_;
#line 137 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_warning ("gnome-boxes-search-provider.vala:137: %s", _tmp9_);
#line 137 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_free0 (_tmp9_);
#line 138 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp10_ = self->priv->app;
#line 138 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_application_release ((GApplication*) _tmp10_);
#line 139 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_object_unref0 (box);
#line 139 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return;
#line 2887 "gnome-boxes-search-provider.c"
	}
#line 142 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp11_ = box;
#line 142 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp12_ = boxes_box_config_get_uuid (_tmp11_);
#line 142 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp13_ = _tmp12_;
#line 142 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	uuid = _tmp13_;
#line 2897 "gnome-boxes-search-provider.c"
	{
		gchar* cmd = NULL;
		const gchar* _tmp14_;
		gchar* _tmp15_;
		gboolean _tmp16_ = FALSE;
		const gchar* _tmp17_;
		gboolean _tmp18_;
#line 144 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp14_ = uuid;
#line 144 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp15_ = g_strconcat ("gnome-boxes --open-uuid ", _tmp14_, NULL);
#line 144 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		cmd = _tmp15_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp17_ = cmd;
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp18_ = g_spawn_command_line_async (_tmp17_, &_inner_error_);
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp16_ = _tmp18_;
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_g_free0 (cmd);
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			if (_inner_error_->domain == G_SPAWN_ERROR) {
#line 2923 "gnome-boxes-search-provider.c"
				goto __catch1_g_spawn_error;
			}
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_g_free0 (cmd);
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_g_free0 (uuid);
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_g_object_unref0 (box);
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_clear_error (&_inner_error_);
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			return;
#line 2938 "gnome-boxes-search-provider.c"
		}
#line 145 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (!_tmp16_) {
#line 2942 "gnome-boxes-search-provider.c"
			FILE* _tmp19_;
			const gchar* _tmp20_;
#line 146 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_tmp19_ = stderr;
#line 146 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_tmp20_ = uuid;
#line 146 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			fprintf (_tmp19_, "Failed to launch Boxes with uuid '%s'\n", _tmp20_);
#line 2951 "gnome-boxes-search-provider.c"
		}
#line 143 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_free0 (cmd);
#line 2955 "gnome-boxes-search-provider.c"
	}
	goto __finally1;
	__catch1_g_spawn_error:
	{
		GError* _error_ = NULL;
		FILE* _tmp21_;
		const gchar* _tmp22_;
		GError* _tmp23_;
		const gchar* _tmp24_;
#line 143 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_error_ = _inner_error_;
#line 143 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_inner_error_ = NULL;
#line 148 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp21_ = stderr;
#line 148 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp22_ = uuid;
#line 148 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		fprintf (_tmp21_, "Failed to launch Boxes with uuid '%s'\n", _tmp22_);
#line 149 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp23_ = _error_;
#line 149 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp24_ = _tmp23_->message;
#line 149 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_warning ("gnome-boxes-search-provider.vala:149: %s", _tmp24_);
#line 143 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_error_free0 (_error_);
#line 2983 "gnome-boxes-search-provider.c"
	}
	__finally1:
#line 143 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 143 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_free0 (uuid);
#line 143 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_object_unref0 (box);
#line 143 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.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/gnome-boxes-search-provider.vala"
		g_clear_error (&_inner_error_);
#line 143 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return;
#line 2998 "gnome-boxes-search-provider.c"
	}
#line 152 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp25_ = self->priv->app;
#line 152 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_release ((GApplication*) _tmp25_);
#line 130 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (uuid);
#line 130 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (box);
#line 3008 "gnome-boxes-search-provider.c"
}


static void _vala_array_add1 (gchar** * array, int* length, int* size, gchar* value) {
#line 162 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if ((*length) == (*size)) {
#line 162 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 162 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 3019 "gnome-boxes-search-provider.c"
	}
#line 162 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(*array)[(*length)++] = value;
#line 162 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(*array)[*length] = NULL;
#line 3025 "gnome-boxes-search-provider.c"
}


static void _vala_array_add2 (gchar** * array, int* length, int* size, gchar* value) {
#line 164 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if ((*length) == (*size)) {
#line 164 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 164 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 3036 "gnome-boxes-search-provider.c"
	}
#line 164 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(*array)[(*length)++] = value;
#line 164 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(*array)[*length] = NULL;
#line 3042 "gnome-boxes-search-provider.c"
}


static void _vala_array_add3 (gchar** * array, int* length, int* size, gchar* value) {
#line 165 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if ((*length) == (*size)) {
#line 165 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 165 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 3053 "gnome-boxes-search-provider.c"
	}
#line 165 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(*array)[(*length)++] = value;
#line 165 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(*array)[*length] = NULL;
#line 3059 "gnome-boxes-search-provider.c"
}


void boxes_search_provider_LaunchSearch (BoxesSearchProvider* self, gchar** terms, int terms_length1, guint32 timestamp) {
	BoxesSearchProviderApp* _tmp0_;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gchar* _tmp2_;
	gchar* _tmp3_;
	BoxesSearchProviderApp* _tmp21_;
	GError * _inner_error_ = NULL;
#line 155 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_if_fail (self != NULL);
#line 156 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = self->priv->app;
#line 156 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_hold ((GApplication*) _tmp0_);
#line 158 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = terms;
#line 158 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1__length1 = terms_length1;
#line 158 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = _vala_g_strjoinv (", ", _tmp1_, _tmp1__length1);
#line 158 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = _tmp2_;
#line 158 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_debug ("gnome-boxes-search-provider.vala:158: LaunchSearch (%s)", _tmp3_);
#line 158 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_tmp3_);
#line 3089 "gnome-boxes-search-provider.c"
	{
		gchar** args = NULL;
		gchar** _tmp4_;
		gint args_length1;
		gint _args_size_;
		gchar** _tmp5_;
		gint _tmp5__length1;
		gchar* _tmp6_;
		gchar** _tmp7_;
		gint _tmp7__length1;
		gboolean _tmp14_ = FALSE;
		gchar** _tmp15_;
		gint _tmp15__length1;
		gboolean _tmp16_;
#line 161 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp4_ = g_new0 (gchar*, 0 + 1);
#line 161 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		args = _tmp4_;
#line 161 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		args_length1 = 0;
#line 161 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_args_size_ = args_length1;
#line 162 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp5_ = args;
#line 162 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp5__length1 = args_length1;
#line 162 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp6_ = g_strdup ("gnome-boxes");
#line 162 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_vala_array_add1 (&args, &args_length1, &_args_size_, _tmp6_);
#line 163 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp7_ = terms;
#line 163 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp7__length1 = terms_length1;
#line 3124 "gnome-boxes-search-provider.c"
		{
			gchar** term_collection = NULL;
			gint term_collection_length1 = 0;
			gint _term_collection_size_ = 0;
			gint term_it = 0;
#line 163 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			term_collection = _tmp7_;
#line 163 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			term_collection_length1 = _tmp7__length1;
#line 163 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			for (term_it = 0; term_it < _tmp7__length1; term_it = term_it + 1) {
#line 3136 "gnome-boxes-search-provider.c"
				gchar* _tmp8_;
				gchar* term = NULL;
#line 163 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_tmp8_ = g_strdup (term_collection[term_it]);
#line 163 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
				term = _tmp8_;
#line 3143 "gnome-boxes-search-provider.c"
				{
					gchar** _tmp9_;
					gint _tmp9__length1;
					gchar* _tmp10_;
					gchar** _tmp11_;
					gint _tmp11__length1;
					const gchar* _tmp12_;
					gchar* _tmp13_;
#line 164 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp9_ = args;
#line 164 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp9__length1 = args_length1;
#line 164 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp10_ = g_strdup ("--search");
#line 164 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_vala_array_add2 (&args, &args_length1, &_args_size_, _tmp10_);
#line 165 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp11_ = args;
#line 165 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp11__length1 = args_length1;
#line 165 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp12_ = term;
#line 165 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp13_ = g_strdup (_tmp12_);
#line 165 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_vala_array_add3 (&args, &args_length1, &_args_size_, _tmp13_);
#line 163 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_free0 (term);
#line 3172 "gnome-boxes-search-provider.c"
				}
			}
		}
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp15_ = args;
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp15__length1 = args_length1;
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp16_ = g_spawn_async (NULL, _tmp15_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &_inner_error_);
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp14_ = _tmp16_;
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			if (_inner_error_->domain == G_SPAWN_ERROR) {
#line 3190 "gnome-boxes-search-provider.c"
				goto __catch2_g_spawn_error;
			}
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_clear_error (&_inner_error_);
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			return;
#line 3201 "gnome-boxes-search-provider.c"
		}
#line 167 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (!_tmp14_) {
#line 3205 "gnome-boxes-search-provider.c"
			FILE* _tmp17_;
#line 168 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_tmp17_ = stderr;
#line 168 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			fprintf (_tmp17_, "Failed to launch Boxes for search\n");
#line 3211 "gnome-boxes-search-provider.c"
		}
#line 160 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 3215 "gnome-boxes-search-provider.c"
	}
	goto __finally2;
	__catch2_g_spawn_error:
	{
		GError* _error_ = NULL;
		FILE* _tmp18_;
		GError* _tmp19_;
		const gchar* _tmp20_;
#line 160 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_error_ = _inner_error_;
#line 160 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_inner_error_ = NULL;
#line 170 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp18_ = stderr;
#line 170 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		fprintf (_tmp18_, "Failed to launch Boxes for search\n");
#line 171 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp19_ = _error_;
#line 171 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp20_ = _tmp19_->message;
#line 171 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_warning ("gnome-boxes-search-provider.vala:171: %s", _tmp20_);
#line 160 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_error_free0 (_error_);
#line 3240 "gnome-boxes-search-provider.c"
	}
	__finally2:
#line 160 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 160 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.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 160 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_clear_error (&_inner_error_);
#line 160 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return;
#line 3251 "gnome-boxes-search-provider.c"
	}
#line 174 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp21_ = self->priv->app;
#line 174 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_release ((GApplication*) _tmp21_);
#line 3257 "gnome-boxes-search-provider.c"
}


gboolean boxes_search_provider_get_loaded (BoxesSearchProvider* self) {
	gboolean result;
	gboolean _tmp0_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 7 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = self->priv->_loaded;
#line 7 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _tmp0_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 3272 "gnome-boxes-search-provider.c"
}


void boxes_search_provider_set_loaded (BoxesSearchProvider* self, gboolean value) {
#line 7 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_if_fail (self != NULL);
#line 7 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (boxes_search_provider_get_loaded (self) != value) {
#line 3281 "gnome-boxes-search-provider.c"
		gboolean _tmp0_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp0_ = value;
#line 7 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		self->priv->_loaded = _tmp0_;
#line 7 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_search_provider_properties[BOXES_SEARCH_PROVIDER_LOADED]);
#line 3289 "gnome-boxes-search-provider.c"
	}
}


static void boxes_search_provider_class_init (BoxesSearchProviderClass * klass) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_parent_class = g_type_class_peek_parent (klass);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_type_class_add_private (klass, sizeof (BoxesSearchProviderPrivate));
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_search_provider_get_property;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_search_provider_set_property;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_search_provider_finalize;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_SEARCH_PROVIDER_LOADED, boxes_search_provider_properties[BOXES_SEARCH_PROVIDER_LOADED] = g_param_spec_boolean ("loaded", "loaded", "loaded", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 3307 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_instance_init (BoxesSearchProvider * self) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self->priv = BOXES_SEARCH_PROVIDER_GET_PRIVATE (self);
#line 3314 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_finalize (GObject * obj) {
	BoxesSearchProvider * self;
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_SEARCH_PROVIDER, BoxesSearchProvider);
#line 5 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (self->priv->app);
#line 8 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_hash_table_unref0 (self->priv->boxes);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_OBJECT_CLASS (boxes_search_provider_parent_class)->finalize (obj);
#line 3328 "gnome-boxes-search-provider.c"
}


GType boxes_search_provider_get_type (void) {
	static volatile gsize boxes_search_provider_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_search_provider_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesSearchProviderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_search_provider_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesSearchProvider), 0, (GInstanceInitFunc) boxes_search_provider_instance_init, NULL };
		GType boxes_search_provider_type_id;
		boxes_search_provider_type_id = g_type_register_static (G_TYPE_OBJECT, "BoxesSearchProvider", &g_define_type_info, 0);
		g_type_set_qdata (boxes_search_provider_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) boxes_search_provider_register_object);
		g_once_init_leave (&boxes_search_provider_type_id__volatile, boxes_search_provider_type_id);
	}
	return boxes_search_provider_type_id__volatile;
}


static void _vala_boxes_search_provider_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesSearchProvider * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_SEARCH_PROVIDER, BoxesSearchProvider);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (property_id) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case BOXES_SEARCH_PROVIDER_LOADED:
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_value_set_boolean (value, boxes_search_provider_get_loaded (self));
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		break;
#line 3356 "gnome-boxes-search-provider.c"
		default:
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		break;
#line 3362 "gnome-boxes-search-provider.c"
	}
}


static void _vala_boxes_search_provider_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	BoxesSearchProvider * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_SEARCH_PROVIDER, BoxesSearchProvider);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (property_id) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case BOXES_SEARCH_PROVIDER_LOADED:
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		boxes_search_provider_set_loaded (self, g_value_get_boolean (value));
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		break;
#line 3378 "gnome-boxes-search-provider.c"
		default:
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 4 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		break;
#line 3384 "gnome-boxes-search-provider.c"
	}
}


static void _dbus_boxes_search_provider_GetInitialResultSet (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	gchar** terms = NULL;
	int terms_length1 = 0;
	GVariant* _tmp0_;
	gchar** _tmp1_;
	int _tmp1__length;
	int _tmp1__size;
	int _tmp1__length1;
	GVariantIter _tmp2_;
	GVariant* _tmp3_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp0_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp1_ = g_new (gchar*, 5);
	_tmp1__length = 0;
	_tmp1__size = 4;
	_tmp1__length1 = 0;
	g_variant_iter_init (&_tmp2_, _tmp0_);
	for (; (_tmp3_ = g_variant_iter_next_value (&_tmp2_)) != NULL; _tmp1__length1++) {
		if (_tmp1__size == _tmp1__length) {
			_tmp1__size = 2 * _tmp1__size;
			_tmp1_ = g_renew (gchar*, _tmp1_, _tmp1__size + 1);
		}
		_tmp1_[_tmp1__length++] = g_variant_dup_string (_tmp3_, NULL);
		g_variant_unref (_tmp3_);
	}
	terms_length1 = _tmp1__length1;
	_tmp1_[_tmp1__length] = NULL;
	terms = _tmp1_;
	g_variant_unref (_tmp0_);
	boxes_search_provider_GetInitialResultSet (self, terms, terms_length1, (GAsyncReadyCallback) _dbus_boxes_search_provider_GetInitialResultSet_ready, invocation);
	terms = (_vala_array_free (terms, terms_length1, (GDestroyNotify) g_free), NULL);
}


static void _dbus_boxes_search_provider_GetInitialResultSet_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar** result;
	int result_length1 = 0;
	gchar** _tmp4_;
	GVariantBuilder _tmp5_;
	int _tmp6_;
	invocation = _user_data_;
	result = boxes_search_provider_GetInitialResultSet_finish ((BoxesSearchProvider*) source_object, _res_, &result_length1);
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_tmp4_ = result;
	g_variant_builder_init (&_tmp5_, G_VARIANT_TYPE ("as"));
	for (_tmp6_ = 0; _tmp6_ < result_length1; _tmp6_++) {
		g_variant_builder_add_value (&_tmp5_, g_variant_new_string (*_tmp4_));
		_tmp4_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp5_));
	result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_free), NULL);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_boxes_search_provider_GetSubsearchResultSet (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	gchar** previous_results = NULL;
	int previous_results_length1 = 0;
	GVariant* _tmp7_;
	gchar** _tmp8_;
	int _tmp8__length;
	int _tmp8__size;
	int _tmp8__length1;
	GVariantIter _tmp9_;
	GVariant* _tmp10_;
	gchar** new_terms = NULL;
	int new_terms_length1 = 0;
	GVariant* _tmp11_;
	gchar** _tmp12_;
	int _tmp12__length;
	int _tmp12__size;
	int _tmp12__length1;
	GVariantIter _tmp13_;
	GVariant* _tmp14_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp7_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp8_ = g_new (gchar*, 5);
	_tmp8__length = 0;
	_tmp8__size = 4;
	_tmp8__length1 = 0;
	g_variant_iter_init (&_tmp9_, _tmp7_);
	for (; (_tmp10_ = g_variant_iter_next_value (&_tmp9_)) != NULL; _tmp8__length1++) {
		if (_tmp8__size == _tmp8__length) {
			_tmp8__size = 2 * _tmp8__size;
			_tmp8_ = g_renew (gchar*, _tmp8_, _tmp8__size + 1);
		}
		_tmp8_[_tmp8__length++] = g_variant_dup_string (_tmp10_, NULL);
		g_variant_unref (_tmp10_);
	}
	previous_results_length1 = _tmp8__length1;
	_tmp8_[_tmp8__length] = NULL;
	previous_results = _tmp8_;
	g_variant_unref (_tmp7_);
	_tmp11_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp12_ = g_new (gchar*, 5);
	_tmp12__length = 0;
	_tmp12__size = 4;
	_tmp12__length1 = 0;
	g_variant_iter_init (&_tmp13_, _tmp11_);
	for (; (_tmp14_ = g_variant_iter_next_value (&_tmp13_)) != NULL; _tmp12__length1++) {
		if (_tmp12__size == _tmp12__length) {
			_tmp12__size = 2 * _tmp12__size;
			_tmp12_ = g_renew (gchar*, _tmp12_, _tmp12__size + 1);
		}
		_tmp12_[_tmp12__length++] = g_variant_dup_string (_tmp14_, NULL);
		g_variant_unref (_tmp14_);
	}
	new_terms_length1 = _tmp12__length1;
	_tmp12_[_tmp12__length] = NULL;
	new_terms = _tmp12_;
	g_variant_unref (_tmp11_);
	boxes_search_provider_GetSubsearchResultSet (self, previous_results, previous_results_length1, new_terms, new_terms_length1, (GAsyncReadyCallback) _dbus_boxes_search_provider_GetSubsearchResultSet_ready, invocation);
	previous_results = (_vala_array_free (previous_results, previous_results_length1, (GDestroyNotify) g_free), NULL);
	new_terms = (_vala_array_free (new_terms, new_terms_length1, (GDestroyNotify) g_free), NULL);
}


static void _dbus_boxes_search_provider_GetSubsearchResultSet_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar** result;
	int result_length1 = 0;
	gchar** _tmp15_;
	GVariantBuilder _tmp16_;
	int _tmp17_;
	invocation = _user_data_;
	result = boxes_search_provider_GetSubsearchResultSet_finish ((BoxesSearchProvider*) source_object, _res_, &result_length1);
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_tmp15_ = result;
	g_variant_builder_init (&_tmp16_, G_VARIANT_TYPE ("as"));
	for (_tmp17_ = 0; _tmp17_ < result_length1; _tmp17_++) {
		g_variant_builder_add_value (&_tmp16_, g_variant_new_string (*_tmp15_));
		_tmp15_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp16_));
	result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_free), NULL);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_boxes_search_provider_get_metas (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	gchar** ids = NULL;
	int ids_length1 = 0;
	GVariant* _tmp18_;
	gchar** _tmp19_;
	int _tmp19__length;
	int _tmp19__size;
	int _tmp19__length1;
	GVariantIter _tmp20_;
	GVariant* _tmp21_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp18_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp19_ = g_new (gchar*, 5);
	_tmp19__length = 0;
	_tmp19__size = 4;
	_tmp19__length1 = 0;
	g_variant_iter_init (&_tmp20_, _tmp18_);
	for (; (_tmp21_ = g_variant_iter_next_value (&_tmp20_)) != NULL; _tmp19__length1++) {
		if (_tmp19__size == _tmp19__length) {
			_tmp19__size = 2 * _tmp19__size;
			_tmp19_ = g_renew (gchar*, _tmp19_, _tmp19__size + 1);
		}
		_tmp19_[_tmp19__length++] = g_variant_dup_string (_tmp21_, NULL);
		g_variant_unref (_tmp21_);
	}
	ids_length1 = _tmp19__length1;
	_tmp19_[_tmp19__length] = NULL;
	ids = _tmp19_;
	g_variant_unref (_tmp18_);
	boxes_search_provider_get_metas (self, ids, ids_length1, (GAsyncReadyCallback) _dbus_boxes_search_provider_get_metas_ready, invocation);
	ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL);
}


static void _dbus_boxes_search_provider_get_metas_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	GHashTable** result;
	int result_length1 = 0;
	GHashTable** _tmp22_;
	GVariantBuilder _tmp23_;
	int _tmp24_;
	invocation = _user_data_;
	result = boxes_search_provider_get_metas_finish ((BoxesSearchProvider*) source_object, _res_, &result_length1);
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_tmp22_ = result;
	g_variant_builder_init (&_tmp23_, G_VARIANT_TYPE ("aa{sv}"));
	for (_tmp24_ = 0; _tmp24_ < result_length1; _tmp24_++) {
		GVariantBuilder _tmp25_;
		GHashTableIter _tmp26_;
		gpointer _tmp27_;
		gpointer _tmp28_;
		g_hash_table_iter_init (&_tmp26_, *_tmp22_);
		g_variant_builder_init (&_tmp25_, G_VARIANT_TYPE ("a{sv}"));
		while (g_hash_table_iter_next (&_tmp26_, &_tmp27_, &_tmp28_)) {
			gchar* _key;
			GVariant* _value;
			_key = (gchar*) _tmp27_;
			_value = (GVariant*) _tmp28_;
			g_variant_builder_add (&_tmp25_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
		}
		g_variant_builder_add_value (&_tmp23_, g_variant_builder_end (&_tmp25_));
		_tmp22_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp23_));
	result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_hash_table_unref), NULL);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_boxes_search_provider_GetResultMetas (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	gchar** ids = NULL;
	int ids_length1 = 0;
	GVariant* _tmp29_;
	gchar** _tmp30_;
	int _tmp30__length;
	int _tmp30__size;
	int _tmp30__length1;
	GVariantIter _tmp31_;
	GVariant* _tmp32_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp29_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp30_ = g_new (gchar*, 5);
	_tmp30__length = 0;
	_tmp30__size = 4;
	_tmp30__length1 = 0;
	g_variant_iter_init (&_tmp31_, _tmp29_);
	for (; (_tmp32_ = g_variant_iter_next_value (&_tmp31_)) != NULL; _tmp30__length1++) {
		if (_tmp30__size == _tmp30__length) {
			_tmp30__size = 2 * _tmp30__size;
			_tmp30_ = g_renew (gchar*, _tmp30_, _tmp30__size + 1);
		}
		_tmp30_[_tmp30__length++] = g_variant_dup_string (_tmp32_, NULL);
		g_variant_unref (_tmp32_);
	}
	ids_length1 = _tmp30__length1;
	_tmp30_[_tmp30__length] = NULL;
	ids = _tmp30_;
	g_variant_unref (_tmp29_);
	boxes_search_provider_GetResultMetas (self, ids, ids_length1, (GAsyncReadyCallback) _dbus_boxes_search_provider_GetResultMetas_ready, invocation);
	ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL);
}


static void _dbus_boxes_search_provider_GetResultMetas_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	GHashTable** result;
	int result_length1 = 0;
	GHashTable** _tmp33_;
	GVariantBuilder _tmp34_;
	int _tmp35_;
	invocation = _user_data_;
	result = boxes_search_provider_GetResultMetas_finish ((BoxesSearchProvider*) source_object, _res_, &result_length1);
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_tmp33_ = result;
	g_variant_builder_init (&_tmp34_, G_VARIANT_TYPE ("aa{sv}"));
	for (_tmp35_ = 0; _tmp35_ < result_length1; _tmp35_++) {
		GVariantBuilder _tmp36_;
		GHashTableIter _tmp37_;
		gpointer _tmp38_;
		gpointer _tmp39_;
		g_hash_table_iter_init (&_tmp37_, *_tmp33_);
		g_variant_builder_init (&_tmp36_, G_VARIANT_TYPE ("a{sv}"));
		while (g_hash_table_iter_next (&_tmp37_, &_tmp38_, &_tmp39_)) {
			gchar* _key;
			GVariant* _value;
			_key = (gchar*) _tmp38_;
			_value = (GVariant*) _tmp39_;
			g_variant_builder_add (&_tmp36_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
		}
		g_variant_builder_add_value (&_tmp34_, g_variant_builder_end (&_tmp36_));
		_tmp33_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp34_));
	result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_hash_table_unref), NULL);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_boxes_search_provider_ActivateResult (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* search_id = NULL;
	GVariant* _tmp40_;
	gchar** terms = NULL;
	int terms_length1 = 0;
	GVariant* _tmp41_;
	gchar** _tmp42_;
	int _tmp42__length;
	int _tmp42__size;
	int _tmp42__length1;
	GVariantIter _tmp43_;
	GVariant* _tmp44_;
	guint32 timestamp = 0U;
	GVariant* _tmp45_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp40_ = g_variant_iter_next_value (&_arguments_iter);
	search_id = g_variant_dup_string (_tmp40_, NULL);
	g_variant_unref (_tmp40_);
	_tmp41_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp42_ = g_new (gchar*, 5);
	_tmp42__length = 0;
	_tmp42__size = 4;
	_tmp42__length1 = 0;
	g_variant_iter_init (&_tmp43_, _tmp41_);
	for (; (_tmp44_ = g_variant_iter_next_value (&_tmp43_)) != NULL; _tmp42__length1++) {
		if (_tmp42__size == _tmp42__length) {
			_tmp42__size = 2 * _tmp42__size;
			_tmp42_ = g_renew (gchar*, _tmp42_, _tmp42__size + 1);
		}
		_tmp42_[_tmp42__length++] = g_variant_dup_string (_tmp44_, NULL);
		g_variant_unref (_tmp44_);
	}
	terms_length1 = _tmp42__length1;
	_tmp42_[_tmp42__length] = NULL;
	terms = _tmp42_;
	g_variant_unref (_tmp41_);
	_tmp45_ = g_variant_iter_next_value (&_arguments_iter);
	timestamp = g_variant_get_uint32 (_tmp45_);
	g_variant_unref (_tmp45_);
	boxes_search_provider_ActivateResult (self, search_id, terms, terms_length1, timestamp);
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_g_free0 (search_id);
	terms = (_vala_array_free (terms, terms_length1, (GDestroyNotify) g_free), NULL);
}


static void _dbus_boxes_search_provider_LaunchSearch (BoxesSearchProvider* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar** terms = NULL;
	int terms_length1 = 0;
	GVariant* _tmp46_;
	gchar** _tmp47_;
	int _tmp47__length;
	int _tmp47__size;
	int _tmp47__length1;
	GVariantIter _tmp48_;
	GVariant* _tmp49_;
	guint32 timestamp = 0U;
	GVariant* _tmp50_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp46_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp47_ = g_new (gchar*, 5);
	_tmp47__length = 0;
	_tmp47__size = 4;
	_tmp47__length1 = 0;
	g_variant_iter_init (&_tmp48_, _tmp46_);
	for (; (_tmp49_ = g_variant_iter_next_value (&_tmp48_)) != NULL; _tmp47__length1++) {
		if (_tmp47__size == _tmp47__length) {
			_tmp47__size = 2 * _tmp47__size;
			_tmp47_ = g_renew (gchar*, _tmp47_, _tmp47__size + 1);
		}
		_tmp47_[_tmp47__length++] = g_variant_dup_string (_tmp49_, NULL);
		g_variant_unref (_tmp49_);
	}
	terms_length1 = _tmp47__length1;
	_tmp47_[_tmp47__length] = NULL;
	terms = _tmp47_;
	g_variant_unref (_tmp46_);
	_tmp50_ = g_variant_iter_next_value (&_arguments_iter);
	timestamp = g_variant_get_uint32 (_tmp50_);
	g_variant_unref (_tmp50_);
	boxes_search_provider_LaunchSearch (self, terms, terms_length1, timestamp);
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	terms = (_vala_array_free (terms, terms_length1, (GDestroyNotify) g_free), NULL);
}


static void boxes_search_provider_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "GetInitialResultSet") == 0) {
		_dbus_boxes_search_provider_GetInitialResultSet (object, parameters, invocation);
	} else if (strcmp (method_name, "GetSubsearchResultSet") == 0) {
		_dbus_boxes_search_provider_GetSubsearchResultSet (object, parameters, invocation);
	} else if (strcmp (method_name, "GetMetas") == 0) {
		_dbus_boxes_search_provider_get_metas (object, parameters, invocation);
	} else if (strcmp (method_name, "GetResultMetas") == 0) {
		_dbus_boxes_search_provider_GetResultMetas (object, parameters, invocation);
	} else if (strcmp (method_name, "ActivateResult") == 0) {
		_dbus_boxes_search_provider_ActivateResult (object, parameters, invocation);
	} else if (strcmp (method_name, "LaunchSearch") == 0) {
		_dbus_boxes_search_provider_LaunchSearch (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}


static GVariant* _dbus_boxes_search_provider_get_loaded (BoxesSearchProvider* self) {
	gboolean result;
	GVariant* _reply;
	result = boxes_search_provider_get_loaded (self);
	_reply = g_variant_new_boolean (result);
	return _reply;
}


static GVariant* boxes_search_provider_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (property_name, "Loaded") == 0) {
		return _dbus_boxes_search_provider_get_loaded (object);
	}
	return NULL;
}


static void _dbus_boxes_search_provider_set_loaded (BoxesSearchProvider* self, GVariant* _value) {
	gboolean value = FALSE;
	value = g_variant_get_boolean (_value);
	boxes_search_provider_set_loaded (self, value);
}


static gboolean boxes_search_provider_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (property_name, "Loaded") == 0) {
		_dbus_boxes_search_provider_set_loaded (object, value);
		return TRUE;
	}
	return FALSE;
}


guint boxes_search_provider_register_object (gpointer object, GDBusConnection* connection, const gchar* path, GError** error) {
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_boxes_search_provider_dbus_interface_info), &_boxes_search_provider_dbus_interface_vtable, data, _boxes_search_provider_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}


static void _boxes_search_provider_unregister_object (gpointer user_data) {
	gpointer* data;
	data = user_data;
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}


BoxesSearchProviderApp* boxes_search_provider_app_construct (GType object_type) {
	BoxesSearchProviderApp * self = NULL;
#line 180 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self = (BoxesSearchProviderApp*) g_object_new (object_type, "application-id", "org.gnome.Boxes.SearchProvider", "flags", G_APPLICATION_IS_SERVICE, "inactivity-timeout", 10000, NULL);
#line 179 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return self;
#line 3910 "gnome-boxes-search-provider.c"
}


BoxesSearchProviderApp* boxes_search_provider_app_new (void) {
#line 179 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return boxes_search_provider_app_construct (BOXES_TYPE_SEARCH_PROVIDER_APP);
#line 3917 "gnome-boxes-search-provider.c"
}


static gboolean boxes_search_provider_app_real_dbus_register (GApplication* base, GDBusConnection* connection, const gchar* object_path, GError** error) {
	BoxesSearchProviderApp * self;
	gboolean result = FALSE;
	GError * _inner_error_ = NULL;
#line 185 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self = (BoxesSearchProviderApp*) base;
#line 185 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (connection != NULL, FALSE);
#line 185 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (object_path != NULL, FALSE);
#line 3931 "gnome-boxes-search-provider.c"
	{
		GDBusConnection* _tmp0_;
		const gchar* _tmp1_;
		BoxesSearchProvider* _tmp2_;
		BoxesSearchProvider* _tmp3_;
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp0_ = connection;
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp1_ = object_path;
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp2_ = boxes_search_provider_new (self);
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp3_ = _tmp2_;
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		boxes_search_provider_register_object (_tmp3_, _tmp0_, _tmp1_, &_inner_error_);
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_object_unref0 (_tmp3_);
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3951 "gnome-boxes-search-provider.c"
			gboolean _tmp4_ = FALSE;
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			if (_inner_error_->domain == G_IO_ERROR) {
#line 3955 "gnome-boxes-search-provider.c"
				goto __catch3_g_io_error;
			}
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_clear_error (&_inner_error_);
#line 187 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
			return _tmp4_;
#line 3964 "gnome-boxes-search-provider.c"
		}
	}
	goto __finally3;
	__catch3_g_io_error:
	{
		GError* _error_ = NULL;
		FILE* _tmp5_;
		GError* _tmp6_;
		const gchar* _tmp7_;
#line 186 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_error_ = _inner_error_;
#line 186 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_inner_error_ = NULL;
#line 189 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp5_ = stderr;
#line 189 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp6_ = _error_;
#line 189 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp7_ = _tmp6_->message;
#line 189 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		fprintf (_tmp5_, "Could not register service: %s", _tmp7_);
#line 190 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_application_quit ((GApplication*) self);
#line 186 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_error_free0 (_error_);
#line 3990 "gnome-boxes-search-provider.c"
	}
	__finally3:
#line 186 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3995 "gnome-boxes-search-provider.c"
		gboolean _tmp8_ = FALSE;
#line 186 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.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 186 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_clear_error (&_inner_error_);
#line 186 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return _tmp8_;
#line 4003 "gnome-boxes-search-provider.c"
	}
#line 192 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = TRUE;
#line 192 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 4009 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_app_real_startup (GApplication* base) {
	BoxesSearchProviderApp * self;
	const gchar* _tmp0_;
#line 195 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self = (BoxesSearchProviderApp*) base;
#line 196 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = g_getenv ("BOXES_SEARCH_PROVIDER_PERSIST");
#line 196 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_tmp0_ != NULL) {
#line 197 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_application_hold ((GApplication*) self);
#line 4024 "gnome-boxes-search-provider.c"
	}
#line 198 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_APPLICATION_CLASS (boxes_search_provider_app_parent_class)->startup (G_TYPE_CHECK_INSTANCE_CAST (self, g_application_get_type (), GApplication));
#line 4028 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_app_class_init (BoxesSearchProviderAppClass * klass) {
#line 178 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_app_parent_class = g_type_class_peek_parent (klass);
#line 178 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	((GApplicationClass *) klass)->dbus_register = (gboolean (*) (GApplication *, GDBusConnection*, const gchar*, GError**)) boxes_search_provider_app_real_dbus_register;
#line 178 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	((GApplicationClass *) klass)->startup = (void (*) (GApplication *)) boxes_search_provider_app_real_startup;
#line 4039 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_app_instance_init (BoxesSearchProviderApp * self) {
}


GType boxes_search_provider_app_get_type (void) {
	static volatile gsize boxes_search_provider_app_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_search_provider_app_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesSearchProviderAppClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_search_provider_app_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesSearchProviderApp), 0, (GInstanceInitFunc) boxes_search_provider_app_instance_init, NULL };
		GType boxes_search_provider_app_type_id;
		boxes_search_provider_app_type_id = g_type_register_static (g_application_get_type (), "BoxesSearchProviderApp", &g_define_type_info, 0);
		g_once_init_leave (&boxes_search_provider_app_type_id__volatile, boxes_search_provider_app_type_id);
	}
	return boxes_search_provider_app_type_id__volatile;
}


gint _vala_main (void) {
	gint result = 0;
	BoxesSearchProviderApp* _tmp0_;
	BoxesSearchProviderApp* _tmp1_;
	gint _tmp2_;
	gint _tmp3_;
#line 203 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = boxes_search_provider_app_new ();
#line 203 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = _tmp0_;
#line 203 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = g_application_run ((GApplication*) _tmp1_, 0, NULL);
#line 203 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = _tmp2_;
#line 203 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_tmp1_);
#line 203 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _tmp3_;
#line 203 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 4079 "gnome-boxes-search-provider.c"
}


int main (int argc, char ** argv) {
#line 202 "/home/fborges/checkout/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return _vala_main ();
#line 4086 "gnome-boxes-search-provider.c"
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



