/* gnome-boxes-search-provider.c generated by valac 0.20.1.16-ff48-dirty, 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;
#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;

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_;
	GSimpleAsyncResult* _async_result;
	BoxesSearchProvider* self;
	Block1Data* _data1_;
	gboolean _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	gulong wait;
	gulong _tmp4_;
	gulong _tmp5_;
	gboolean _tmp6_;
	GFile* dir;
	gchar* _tmp7_;
	gchar* _tmp8_;
	GFile* _tmp9_;
	GFile* _tmp10_;
	GFile* _tmp11_;
};

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

struct _BoxesSearchProviderSearchData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	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_;
	gboolean _tmp28_;
	gint _tmp29_;
	gint _tmp30_;
	GPtrArray* _tmp31_;
	gint _tmp32_;
	gint _tmp33_;
	gchar** _tmp34_;
	gint _tmp34__length1;
	gint _tmp35_;
	GPtrArray* _tmp36_;
	gint _tmp37_;
	gconstpointer _tmp38_;
	gconstpointer _tmp39_;
	gchar* _tmp40_;
	gchar* _tmp41_;
	BoxesSearchProviderApp* _tmp42_;
	gchar** _tmp43_;
	gint _tmp43__length1;
};

struct _boxes_search_provider_GetInitialResultSetData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	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_;
	GSimpleAsyncResult* _async_result;
	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_;
	GSimpleAsyncResult* _async_result;
	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_;
	GError* _error_;
	GFileInfo* _tmp44_;
	GFileIcon* icon;
	GFile* _tmp45_;
	GFileIcon* _tmp46_;
	GHashTable* _tmp47_;
	gchar* _tmp48_;
	GFileIcon* _tmp49_;
	gchar* _tmp50_;
	gchar* _tmp51_;
	GVariant* _tmp52_;
	GHashTable* _tmp53_;
	gchar* _tmp54_;
	GThemedIcon* _tmp55_;
	GThemedIcon* _tmp56_;
	gchar* _tmp57_;
	gchar* _tmp58_;
	GVariant* _tmp59_;
	BoxesSearchProviderApp* _tmp60_;
	GHashTable** _tmp61_;
	gint _tmp61__length1;
	guint _tmp62_;
	GHashTable** _tmp63_;
	gint _tmp63__length1;
	GHashTable** _tmp64_;
	gint _tmp64__length1;
	GError * _inner_error_;
};

struct _boxes_search_provider_GetResultMetasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	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))
enum  {
	BOXES_SEARCH_PROVIDER_DUMMY_PROPERTY,
	BOXES_SEARCH_PROVIDER_LOADED
};
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 ___lambda2_ (Block1Data* _data1_);
static void ____lambda2__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static gboolean __lambda3_ (BoxesSearchProvider* self, const gchar* filename, GError** error);
static gboolean ___lambda3__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 ___lambda0__gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
static gint __lambda4_ (BoxesBoxConfig* a, BoxesBoxConfig* b);
static gint ___lambda4__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);
enum  {
	BOXES_SEARCH_PROVIDER_APP_DUMMY_PROPERTY
};
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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return self ? g_object_ref (self) : NULL;
#line 491 "gnome-boxes-search-provider.c"
}


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


static void _g_object_unref0_ (gpointer var) {
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 505 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (app != NULL, NULL);
#line 11 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self = (BoxesSearchProvider*) g_object_new (object_type, NULL);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = app;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (self->priv->app);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self->priv->app = _tmp1_;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = g_str_hash;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = g_str_equal;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp4_ = g_hash_table_new_full (_tmp2_, _tmp3_, _g_free0_, _g_object_unref0_);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_hash_table_unref0 (self->priv->boxes);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self->priv->boxes = _tmp4_;
#line 11 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return self;
#line 540 "gnome-boxes-search-provider.c"
}


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


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


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


static void boxes_search_provider_load (BoxesSearchProvider* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesSearchProviderLoadData* _data_;
	BoxesSearchProvider* _tmp0_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (BoxesSearchProviderLoadData);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_search_provider_load);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_search_provider_load_data_free);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_load_co (_data_);
#line 621 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_load_finish (BoxesSearchProvider* self, GAsyncResult* _res_) {
	BoxesSearchProviderLoadData* _data_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 629 "gnome-boxes-search-provider.c"
}


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


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


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


static void ____lambda2__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	___lambda2_ (self);
#line 673 "gnome-boxes-search-provider.c"
}


static gboolean __lambda3_ (BoxesSearchProvider* self, const gchar* filename, GError** error) {
	gboolean result = FALSE;
	BoxesCollectionSource* source = NULL;
	const gchar* _tmp0_;
	BoxesCollectionSource* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	gint _tmp4_ = 0;
	gchar** _tmp5_ = NULL;
	GError * _inner_error_ = NULL;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (filename != NULL, FALSE);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = filename;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = boxes_collection_source_new_with_file (_tmp0_, &_inner_error_);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	source = _tmp1_;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_inner_error_ != NULL) {
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_propagate_error (error, _inner_error_);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return FALSE;
#line 701 "gnome-boxes-search-provider.c"
	}
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = boxes_collection_source_get_enabled (source);
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = _tmp2_;
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (!_tmp3_) {
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		result = FALSE;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_object_unref0 (source);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return result;
#line 715 "gnome-boxes-search-provider.c"
	}
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp5_ = boxes_iconfig_get_groups ((BoxesIConfig*) source, "display", &_tmp4_);
#line 719 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		group_collection = _tmp5_;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		group_collection_length1 = _tmp4_;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		for (group_it = 0; group_it < _tmp4_; group_it = group_it + 1) {
#line 731 "gnome-boxes-search-provider.c"
			gchar* _tmp6_;
			gchar* group = NULL;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_tmp6_ = g_strdup (group_collection[group_it]);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			group = _tmp6_;
#line 738 "gnome-boxes-search-provider.c"
			{
				BoxesBoxConfig* box = NULL;
				const gchar* _tmp7_;
				BoxesBoxConfig* _tmp8_;
				BoxesBoxConfig* _tmp9_;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_tmp7_ = group;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_tmp8_ = boxes_box_config_new_with_group (source, _tmp7_);
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				box = _tmp8_;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_tmp9_ = box;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				boxes_search_provider_add_box (self, _tmp9_);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_object_unref0 (box);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (group);
#line 758 "gnome-boxes-search-provider.c"
			}
		}
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		group_collection = (_vala_array_free (group_collection, group_collection_length1, (GDestroyNotify) g_free), NULL);
#line 763 "gnome-boxes-search-provider.c"
	}
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = FALSE;
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (source);
#line 49 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 771 "gnome-boxes-search-provider.c"
}


static gboolean ___lambda3__boxes_foreach_filename_from_dir_func (const gchar* filename, gpointer self, GError** error) {
	gboolean result;
	result = __lambda3_ (self, filename, error);
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 780 "gnome-boxes-search-provider.c"
}


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


static gboolean boxes_search_provider_load_co (BoxesSearchProviderLoadData* _data_) {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 803 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 807 "gnome-boxes-search-provider.c"
		goto _state_1;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 2:
#line 811 "gnome-boxes-search-provider.c"
		goto _state_2;
		default:
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 816 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_data1_ = g_slice_new0 (Block1Data);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_data1_->_ref_count_ = 1;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_data1_->self = g_object_ref (_data_->self);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_data1_->_async_data_ = _data_;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	while (TRUE) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_tmp1_ = _data_->self->priv->_loaded;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (!_data_->_tmp1_) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_tmp2_ = _data_->self->priv->loading;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_tmp0_ = _data_->_tmp2_;
#line 837 "gnome-boxes-search-provider.c"
		} else {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_tmp0_ = FALSE;
#line 841 "gnome-boxes-search-provider.c"
		}
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_tmp3_ = _data_->_tmp0_;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (!_data_->_tmp3_) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			break;
#line 849 "gnome-boxes-search-provider.c"
		}
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_tmp4_ = 0UL;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_tmp4_ = g_signal_connect_data ((GObject*) _data_->self, "notify::loaded", (GCallback) ____lambda2__g_object_notify, block1_data_ref (_data_->_data1_), (GClosureNotify) block1_data_unref, 0);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->wait = _data_->_tmp4_;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_state_ = 1;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return FALSE;
#line 861 "gnome-boxes-search-provider.c"
		_state_1:
		;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_tmp5_ = _data_->wait;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_signal_handler_disconnect ((GObject*) _data_->self, _data_->_tmp5_);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_tmp6_ = _data_->self->priv->_loaded;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (_data_->_tmp6_) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			block1_data_unref (_data_->_data1_);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_data1_ = NULL;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			if (_data_->_state_ == 0) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 880 "gnome-boxes-search-provider.c"
			} else {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 884 "gnome-boxes-search-provider.c"
			}
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_object_unref (_data_->_async_result);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			return FALSE;
#line 890 "gnome-boxes-search-provider.c"
		}
	}
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self->priv->loading = TRUE;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp7_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp7_ = boxes_get_user_pkgconfig_source (NULL);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp8_ = _data_->_tmp7_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp9_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp9_ = g_file_new_for_path (_data_->_tmp8_);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp10_ = _data_->_tmp9_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_data_->_tmp8_);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->dir = _data_->_tmp10_;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp11_ = _data_->dir;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_state_ = 2;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_foreach_filename_from_dir (_data_->_tmp11_, ___lambda3__boxes_foreach_filename_from_dir_func, _data_->self, boxes_search_provider_load_ready, _data_);
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 919 "gnome-boxes-search-provider.c"
	_state_2:
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_foreach_filename_from_dir_finish (_data_->_res_);
#line 52 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_set_loaded (_data_->self, TRUE);
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self->priv->loading = FALSE;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->dir);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	block1_data_unref (_data_->_data1_);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_data1_ = NULL;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 937 "gnome-boxes-search-provider.c"
	} else {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 941 "gnome-boxes-search-provider.c"
	}
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 947 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_search_data_free (gpointer _data) {
	BoxesSearchProviderSearchData* _data_;
	_data_ = _data;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = (_vala_array_free (_data_->terms, _data_->terms_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = (_vala_array_free (_data_->result, _data_->result_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (BoxesSearchProviderSearchData, _data_);
#line 962 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (BoxesSearchProviderSearchData);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_search_provider_search);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_search_provider_search_data_free);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = (_vala_array_free (_data_->terms, _data_->terms_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = terms;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms_length1 = terms_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_search_co (_data_);
#line 987 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _data_->result;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	*result_length1 = _data_->result_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = NULL;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1004 "gnome-boxes-search-provider.c"
}


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


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	return _data2_;
#line 1027 "gnome-boxes-search-provider.c"
}


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 1036 "gnome-boxes-search-provider.c"
		GPtrArray * self;
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
		self = _data2_->self;
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
		_g_ptr_array_unref0 (self);
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
		g_slice_free (Block2Data, _data2_);
#line 1044 "gnome-boxes-search-provider.c"
	}
}


static gint __lambda0_ (Block2Data* _data2_, gconstpointer** a, gconstpointer** b) {
	GPtrArray * self;
	gint result = 0;
	GCompareFunc _tmp0_;
	gconstpointer** _tmp1_;
	gconstpointer** _tmp2_;
	gint _tmp3_ = 0;
#line 4097 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	self = _data2_->self;
#line 4098 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp0_ = _data2_->compare_func;
#line 4098 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp1_ = a;
#line 4098 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp2_ = b;
#line 4098 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp3_ = _tmp0_ ((gconstpointer**) (*_tmp1_), (gconstpointer**) (*_tmp2_));
#line 4098 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	result = _tmp3_;
#line 4098 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	return result;
#line 1070 "gnome-boxes-search-provider.c"
}


static gint ___lambda0__gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
	gint result;
	result = __lambda0_ (self, a, b);
#line 4097 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	return result;
#line 1079 "gnome-boxes-search-provider.c"
}


static void vala_g_ptr_array_sort (GPtrArray* self, GCompareFunc compare_func) {
	Block2Data* _data2_;
	GCompareFunc _tmp0_;
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	g_return_if_fail (self != NULL);
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_data2_ = g_slice_new0 (Block2Data);
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_data2_->_ref_count_ = 1;
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_data2_->self = g_ptr_array_ref (self);
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp0_ = compare_func;
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_data2_->compare_func = _tmp0_;
#line 4097 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	g_ptr_array_sort_with_data (self, ___lambda0__gcompare_data_func, _data2_);
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	block2_data_unref (_data2_);
#line 4096 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_data2_ = NULL;
#line 1104 "gnome-boxes-search-provider.c"
}


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


static gint ___lambda4__gcompare_func (gconstpointer a, gconstpointer b) {
	gint result;
	result = __lambda4_ (a, b);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1136 "gnome-boxes-search-provider.c"
}


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


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


static gboolean boxes_search_provider_search_co (BoxesSearchProviderSearchData* _data_) {
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 1172 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 1176 "gnome-boxes-search-provider.c"
		goto _state_1;
		default:
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 1181 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0_ = _data_->self->priv->app;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_hold ((GApplication*) _data_->_tmp0_);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1_ = _data_->terms;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1__length1 = _data_->terms_length1;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp2_ = NULL;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp2_ = g_strjoinv (" ", _data_->_tmp1_);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = NULL;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = boxes_canonicalize_for_search (_data_->_tmp3_);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp7_ = NULL;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp7_ = _data_->_tmp6_ = g_strsplit (_data_->_tmp5_, " ", 0);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp8_ = _data_->_tmp7_;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp8__length1 = _vala_array_length (_data_->_tmp6_);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_data_->_tmp5_);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_data_->_tmp3_);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->normalized_terms = _data_->_tmp8_;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->normalized_terms_length1 = _data_->_tmp8__length1;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_normalized_terms_size_ = _data_->normalized_terms_length1;
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp9_ = g_ptr_array_new_with_free_func (_g_object_unref0_);
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->matches = _data_->_tmp9_;
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp10_ = _data_->terms;
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp10__length1 = _data_->terms_length1;
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp11_ = NULL;
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp11_ = g_strjoinv (", ", _data_->_tmp10_);
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_debug ("gnome-boxes-search-provider.vala:61: search (%s)", _data_->_tmp12_);
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_data_->_tmp12_);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp13_ = _data_->self->priv->_loaded;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (!_data_->_tmp13_) {
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_state_ = 1;
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		boxes_search_provider_load (_data_->self, boxes_search_provider_search_ready, _data_);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return FALSE;
#line 1250 "gnome-boxes-search-provider.c"
		_state_1:
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		boxes_search_provider_load_finish (_data_->self, _data_->_res_);
#line 1254 "gnome-boxes-search-provider.c"
	}
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp14_ = _data_->self->priv->boxes;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp15_ = NULL;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp15_ = g_hash_table_get_values (_data_->_tmp14_);
#line 1262 "gnome-boxes-search-provider.c"
	{
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->box_collection = _data_->_tmp15_;
#line 65 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->box = (BoxesBoxConfig*) _data_->box_it->data;
#line 1270 "gnome-boxes-search-provider.c"
			{
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp16_ = _data_->box;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp17_ = _data_->normalized_terms;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp17__length1 = _data_->normalized_terms_length1;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp18_ = FALSE;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp18_ = boxes_box_config_contains_strings (_data_->_tmp16_, _data_->_tmp17_, _data_->_tmp17__length1);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (_data_->_tmp18_) {
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp19_ = _data_->matches;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp20_ = _data_->box;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp21_ = _g_object_ref0 (_data_->_tmp20_);
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_ptr_array_add (_data_->_tmp19_, _data_->_tmp21_);
#line 1292 "gnome-boxes-search-provider.c"
				}
			}
		}
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_list_free0 (_data_->box_collection);
#line 1298 "gnome-boxes-search-provider.c"
	}
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp22_ = _data_->matches;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	vala_g_ptr_array_sort (_data_->_tmp22_, ___lambda4__gcompare_func);
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp23_ = _data_->matches;
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp24_ = g_ptr_array_get_length (_data_->_tmp23_);
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp25_ = _data_->_tmp24_;
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp26_ = NULL;
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp26_ = g_new0 (gchar*, _data_->_tmp25_ + 1);
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->results = _data_->_tmp26_;
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->results_length1 = _data_->_tmp25_;
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_results_size_ = _data_->results_length1;
#line 1320 "gnome-boxes-search-provider.c"
	{
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->i = 0;
#line 1324 "gnome-boxes-search-provider.c"
		{
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_tmp27_ = TRUE;
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			while (TRUE) {
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp28_ = _data_->_tmp27_;
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (!_data_->_tmp28_) {
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp29_ = _data_->i;
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->i = _data_->_tmp29_ + 1;
#line 1338 "gnome-boxes-search-provider.c"
				}
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp27_ = FALSE;
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp30_ = _data_->i;
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp31_ = _data_->matches;
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp32_ = g_ptr_array_get_length (_data_->_tmp31_);
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp33_ = _data_->_tmp32_;
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (!(_data_->_tmp30_ < _data_->_tmp33_)) {
#line 72 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					break;
#line 1354 "gnome-boxes-search-provider.c"
				}
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp34_ = _data_->results;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp34__length1 = _data_->results_length1;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp35_ = _data_->i;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp36_ = _data_->matches;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp37_ = _data_->i;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp38_ = NULL;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp38_ = g_ptr_array_index (_data_->_tmp36_, (guint) _data_->_tmp37_);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp39_ = NULL;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp39_ = g_object_get_data ((GObject*) ((BoxesBoxConfig*) _data_->_tmp38_), "search-id");
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp40_ = g_strdup ((const gchar*) _data_->_tmp39_);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (_data_->_tmp34_[_data_->_tmp35_]);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp34_[_data_->_tmp35_] = _data_->_tmp40_;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp41_ = _data_->_tmp34_[_data_->_tmp35_];
#line 1382 "gnome-boxes-search-provider.c"
			}
		}
	}
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp42_ = _data_->self->priv->app;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_release ((GApplication*) _data_->_tmp42_);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp43_ = _data_->results;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp43__length1 = _data_->results_length1;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result_length1 = _data_->_tmp43__length1;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = _data_->_tmp43_;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_ptr_array_unref0 (_data_->matches);
#line 76 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = (_vala_array_free (_data_->terms, _data_->terms_length1, (GDestroyNotify) g_free), NULL);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1408 "gnome-boxes-search-provider.c"
	} else {
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1412 "gnome-boxes-search-provider.c"
	}
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->results = (_vala_array_free (_data_->results, _data_->results_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_ptr_array_unref0 (_data_->matches);
#line 56 "/extra-data/checkout/gnome/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 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = (_vala_array_free (_data_->terms, _data_->terms_length1, (GDestroyNotify) g_free), NULL);
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1430 "gnome-boxes-search-provider.c"
	} else {
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1434 "gnome-boxes-search-provider.c"
	}
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 1440 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_GetInitialResultSet_data_free (gpointer _data) {
	boxes_search_provider_GetInitialResultSetData* _data_;
	_data_ = _data;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = (_vala_array_free (_data_->result, _data_->result_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (boxes_search_provider_GetInitialResultSetData, _data_);
#line 1453 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (boxes_search_provider_GetInitialResultSetData);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_search_provider_GetInitialResultSet);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_search_provider_GetInitialResultSet_data_free);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = terms;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1__length1 = terms_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms = _tmp1_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->terms_length1 = _tmp1__length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetInitialResultSet_co (_data_);
#line 1482 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _data_->result;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	*result_length1 = _data_->result_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = NULL;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1499 "gnome-boxes-search-provider.c"
}


static gchar** _vala_array_dup1 (gchar** self, int length) {
	gchar** result;
	int i;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = g_new0 (gchar*, length + 1);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	for (i = 0; i < length; i++) {
#line 1510 "gnome-boxes-search-provider.c"
		gchar* _tmp0_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp0_ = g_strdup (self[i]);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		result[i] = _tmp0_;
#line 1516 "gnome-boxes-search-provider.c"
	}
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1520 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = _user_data_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_source_object_ = source_object;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_res_ = _res_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetInitialResultSet_co (_data_);
#line 1534 "gnome-boxes-search-provider.c"
}


static gboolean boxes_search_provider_GetInitialResultSet_co (boxes_search_provider_GetInitialResultSetData* _data_) {
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 1543 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 1547 "gnome-boxes-search-provider.c"
		goto _state_1;
		default:
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 1552 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0_ = _data_->terms;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0__length1 = _data_->terms_length1;
#line 80 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1__length1 = _data_->_tmp0__length1;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp2_ = 0;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_state_ = 1;
#line 80 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 1571 "gnome-boxes-search-provider.c"
	_state_1:
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = NULL;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = boxes_search_provider_search_finish (_data_->self, _data_->_res_, &_data_->_tmp2_);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4__length1 = _data_->_tmp2_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result_length1 = _data_->_tmp4__length1;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = _data_->_tmp4_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1589 "gnome-boxes-search-provider.c"
	} else {
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1593 "gnome-boxes-search-provider.c"
	}
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1603 "gnome-boxes-search-provider.c"
	} else {
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1607 "gnome-boxes-search-provider.c"
	}
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 1613 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_GetSubsearchResultSet_data_free (gpointer _data) {
	boxes_search_provider_GetSubsearchResultSetData* _data_;
	_data_ = _data;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = (_vala_array_free (_data_->result, _data_->result_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (boxes_search_provider_GetSubsearchResultSetData, _data_);
#line 1626 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (boxes_search_provider_GetSubsearchResultSetData);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_search_provider_GetSubsearchResultSet);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_search_provider_GetSubsearchResultSet_data_free);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = previous_results;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1__length1 = previous_results_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->previous_results = _tmp1_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->previous_results_length1 = _tmp1__length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = new_terms;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2__length1 = new_terms_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->new_terms = _tmp2_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->new_terms_length1 = _tmp2__length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetSubsearchResultSet_co (_data_);
#line 1665 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _data_->result;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	*result_length1 = _data_->result_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = NULL;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1682 "gnome-boxes-search-provider.c"
}


static gchar** _vala_array_dup2 (gchar** self, int length) {
	gchar** result;
	int i;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = g_new0 (gchar*, length + 1);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	for (i = 0; i < length; i++) {
#line 1693 "gnome-boxes-search-provider.c"
		gchar* _tmp0_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp0_ = g_strdup (self[i]);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		result[i] = _tmp0_;
#line 1699 "gnome-boxes-search-provider.c"
	}
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1703 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = _user_data_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_source_object_ = source_object;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_res_ = _res_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetSubsearchResultSet_co (_data_);
#line 1717 "gnome-boxes-search-provider.c"
}


static gboolean boxes_search_provider_GetSubsearchResultSet_co (boxes_search_provider_GetSubsearchResultSetData* _data_) {
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 1726 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 1730 "gnome-boxes-search-provider.c"
		goto _state_1;
		default:
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 1735 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0_ = _data_->new_terms;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0__length1 = _data_->new_terms_length1;
#line 85 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1__length1 = _data_->_tmp0__length1;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp2_ = 0;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_state_ = 1;
#line 85 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 1754 "gnome-boxes-search-provider.c"
	_state_1:
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = NULL;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = boxes_search_provider_search_finish (_data_->self, _data_->_res_, &_data_->_tmp2_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4__length1 = _data_->_tmp2_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result_length1 = _data_->_tmp4__length1;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = _data_->_tmp4_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1772 "gnome-boxes-search-provider.c"
	} else {
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1776 "gnome-boxes-search-provider.c"
	}
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1786 "gnome-boxes-search-provider.c"
	} else {
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1790 "gnome-boxes-search-provider.c"
	}
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 1796 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_get_metas_data_free (gpointer _data) {
	BoxesSearchProviderGetMetasData* _data_;
	_data_ = _data;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = (_vala_array_free (_data_->ids, _data_->ids_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (BoxesSearchProviderGetMetasData, _data_);
#line 1811 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (BoxesSearchProviderGetMetasData);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_search_provider_get_metas);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_search_provider_get_metas_data_free);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = (_vala_array_free (_data_->ids, _data_->ids_length1, (GDestroyNotify) g_free), NULL);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = ids;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids_length1 = ids_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_get_metas_co (_data_);
#line 1836 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _data_->result;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	*result_length1 = _data_->result_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = NULL;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 1853 "gnome-boxes-search-provider.c"
}


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


static gpointer _g_hash_table_ref0 (gpointer self) {
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return self ? g_hash_table_ref (self) : NULL;
#line 1867 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = _user_data_;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_source_object_ = source_object;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_res_ = _res_;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_get_metas_co (_data_);
#line 1881 "gnome-boxes-search-provider.c"
}


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


static gboolean boxes_search_provider_get_metas_co (BoxesSearchProviderGetMetasData* _data_) {
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 1911 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 1915 "gnome-boxes-search-provider.c"
		goto _state_1;
		default:
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 1920 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0_ = _data_->ids;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0__length1 = _data_->ids_length1;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1_ = NULL;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1_ = g_new0 (GHashTable*, _data_->_tmp0__length1 + 1);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->metas = _data_->_tmp1_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->metas_length1 = _data_->_tmp0__length1;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_metas_size_ = _data_->metas_length1;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp2_ = _data_->self->priv->app;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_hold ((GApplication*) _data_->_tmp2_);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = _data_->ids;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3__length1 = _data_->ids_length1;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = NULL;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = g_strjoinv (", ", _data_->_tmp3_);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_debug ("gnome-boxes-search-provider.vala:92: GetResultMetas (%s)", _data_->_tmp5_);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_data_->_tmp5_);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->n = (guint) 0;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp6_ = _data_->ids;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp6__length1 = _data_->ids_length1;
#line 1961 "gnome-boxes-search-provider.c"
	{
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->id_collection_length1 = 0;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->_id_collection_size_ = 0;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->id_collection = _data_->_tmp6_;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_data_->id_collection_length1 = _data_->_tmp6__length1;
#line 94 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->_tmp7_ = g_strdup (_data_->id_collection[_data_->id_it]);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_data_->id = _data_->_tmp7_;
#line 1977 "gnome-boxes-search-provider.c"
			{
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp8_ = _data_->self->priv->boxes;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp9_ = _data_->id;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp10_ = NULL;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp10_ = g_hash_table_lookup (_data_->_tmp8_, _data_->_tmp9_);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp11_ = _g_object_ref0 ((BoxesBoxConfig*) _data_->_tmp10_);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->box = _data_->_tmp11_;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp12_ = _data_->box;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (_data_->_tmp12_ == NULL) {
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->box);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_free0 (_data_->id);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					continue;
#line 2001 "gnome-boxes-search-provider.c"
				}
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp13_ = g_str_hash;
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp14_ = g_str_equal;
#line 99 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->meta = _data_->_tmp15_;
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp16_ = _data_->metas;
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp16__length1 = _data_->metas_length1;
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp17_ = _data_->n;
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp18_ = _data_->meta;
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp19_ = _g_hash_table_ref0 (_data_->_tmp18_);
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_hash_table_unref0 (_data_->_tmp16_[_data_->_tmp17_]);
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp16_[_data_->_tmp17_] = _data_->_tmp19_;
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp20_ = _data_->_tmp16_[_data_->_tmp17_];
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp21_ = _data_->n;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->n = _data_->_tmp21_ + 1;
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp22_ = _data_->meta;
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp23_ = g_strdup ("id");
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp24_ = _data_->id;
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp25_ = g_variant_new_string (_data_->_tmp24_);
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				g_variant_ref_sink (_data_->_tmp25_);
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				g_hash_table_insert (_data_->_tmp22_, _data_->_tmp23_, _data_->_tmp25_);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp26_ = _data_->meta;
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp27_ = g_strdup ("name");
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp28_ = _data_->box;
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp29_ = boxes_box_config_get_last_seen_name (_data_->_tmp28_);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp30_ = _data_->_tmp29_;
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp31_ = _data_->_tmp30_;
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp32_ = g_variant_new_string (_data_->_tmp31_);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				g_variant_ref_sink (_data_->_tmp32_);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				g_hash_table_insert (_data_->_tmp26_, _data_->_tmp27_, _data_->_tmp32_);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (_data_->_tmp31_);
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp33_ = _data_->box;
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp34_ = boxes_box_config_get_uuid (_data_->_tmp33_);
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp35_ = _data_->_tmp34_;
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp36_ = _data_->_tmp35_;
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp37_ = NULL;
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp37_ = boxes_get_screenshot_filename (_data_->_tmp36_);
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp38_ = _data_->_tmp37_;
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp39_ = NULL;
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp39_ = g_file_new_for_path (_data_->_tmp38_);
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp40_ = _data_->_tmp39_;
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (_data_->_tmp38_);
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (_data_->_tmp36_);
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->file = _data_->_tmp40_;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->info = NULL;
#line 2091 "gnome-boxes-search-provider.c"
				{
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp42_ = _data_->file;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_state_ = 1;
#line 109 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					return FALSE;
#line 2101 "gnome-boxes-search-provider.c"
					_state_1:
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp43_ = NULL;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp43_ = g_file_query_info_finish (_data_->_tmp42_, _data_->_res_, &_data_->_inner_error_);
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp41_ = _data_->_tmp43_;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					if (_data_->_inner_error_ != NULL) {
#line 2111 "gnome-boxes-search-provider.c"
						goto __catch0_g_error;
					}
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->info);
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->info = _data_->_tmp41_;
#line 2118 "gnome-boxes-search-provider.c"
				}
				goto __finally0;
				__catch0_g_error:
				{
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_error_ = _data_->_inner_error_;
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_inner_error_ = NULL;
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_error_free0 (_data_->_error_);
#line 2129 "gnome-boxes-search-provider.c"
				}
				__finally0:
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (_data_->_inner_error_ != NULL) {
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->info);
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->file);
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_hash_table_unref0 (_data_->meta);
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->box);
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_free0 (_data_->id);
#line 108 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->ids = (_vala_array_free (_data_->ids, _data_->ids_length1, (GDestroyNotify) g_free), NULL);
#line 108 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_clear_error (&_data_->_inner_error_);
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					return FALSE;
#line 2154 "gnome-boxes-search-provider.c"
				}
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_data_->_tmp44_ = _data_->info;
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				if (_data_->_tmp44_ != NULL) {
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp45_ = _data_->file;
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp46_ = (GFileIcon*) g_file_icon_new (_data_->_tmp45_);
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->icon = _data_->_tmp46_;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp47_ = _data_->meta;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp48_ = g_strdup ("gicon");
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp49_ = _data_->icon;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp50_ = NULL;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp50_ = g_icon_to_string ((GIcon*) _data_->_tmp49_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp51_ = _data_->_tmp50_;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp52_ = g_variant_new_string (_data_->_tmp51_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_variant_ref_sink (_data_->_tmp52_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_hash_table_insert (_data_->_tmp47_, _data_->_tmp48_, _data_->_tmp52_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_free0 (_data_->_tmp51_);
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->icon);
#line 2188 "gnome-boxes-search-provider.c"
				} else {
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp53_ = _data_->meta;
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp54_ = g_strdup ("gicon");
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp55_ = (GThemedIcon*) g_themed_icon_new ("gnome-boxes");
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp56_ = _data_->_tmp55_;
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp57_ = NULL;
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp57_ = g_icon_to_string ((GIcon*) _data_->_tmp56_);
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp58_ = _data_->_tmp57_;
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_data_->_tmp59_ = g_variant_new_string (_data_->_tmp58_);
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_variant_ref_sink (_data_->_tmp59_);
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					g_hash_table_insert (_data_->_tmp53_, _data_->_tmp54_, _data_->_tmp59_);
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_free0 (_data_->_tmp58_);
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_object_unref0 (_data_->_tmp56_);
#line 2214 "gnome-boxes-search-provider.c"
				}
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_object_unref0 (_data_->info);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_object_unref0 (_data_->file);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_hash_table_unref0 (_data_->meta);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_object_unref0 (_data_->box);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_g_free0 (_data_->id);
#line 2226 "gnome-boxes-search-provider.c"
			}
		}
	}
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp60_ = _data_->self->priv->app;
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_release ((GApplication*) _data_->_tmp60_);
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp61_ = _data_->metas;
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp61__length1 = _data_->metas_length1;
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp62_ = _data_->n;
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp63_ = ((_data_->_tmp61_ + 0) != NULL) ? _vala_array_dup3 (_data_->_tmp61_ + 0, ((gint) _data_->_tmp62_) - 0) : ((gpointer) (_data_->_tmp61_ + 0));
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp63__length1 = ((gint) _data_->_tmp62_) - 0;
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp64_ = _data_->_tmp63_;
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp64__length1 = _data_->_tmp63__length1;
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result_length1 = _data_->_tmp64__length1;
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = _data_->_tmp64_;
#line 121 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = (_vala_array_free (_data_->ids, _data_->ids_length1, (GDestroyNotify) g_free), NULL);
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2260 "gnome-boxes-search-provider.c"
	} else {
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2264 "gnome-boxes-search-provider.c"
	}
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 88 "/extra-data/checkout/gnome/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 88 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = (_vala_array_free (_data_->ids, _data_->ids_length1, (GDestroyNotify) g_free), NULL);
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2278 "gnome-boxes-search-provider.c"
	} else {
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2282 "gnome-boxes-search-provider.c"
	}
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 2288 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_GetResultMetas_data_free (gpointer _data) {
	boxes_search_provider_GetResultMetasData* _data_;
	_data_ = _data;
#line 4 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_slice_free (boxes_search_provider_GetResultMetasData, _data_);
#line 2301 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_slice_new0 (boxes_search_provider_GetResultMetasData);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_search_provider_GetResultMetas);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_search_provider_GetResultMetas_data_free);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->self = _tmp0_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = ids;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1__length1 = ids_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids = _tmp1_;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->ids_length1 = _tmp1__length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetResultMetas_co (_data_);
#line 2330 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _data_->result;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	*result_length1 = _data_->result_length1;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = NULL;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 2347 "gnome-boxes-search-provider.c"
}


static gchar** _vala_array_dup4 (gchar** self, int length) {
	gchar** result;
	int i;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = g_new0 (gchar*, length + 1);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	for (i = 0; i < length; i++) {
#line 2358 "gnome-boxes-search-provider.c"
		gchar* _tmp0_;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp0_ = g_strdup (self[i]);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		result[i] = _tmp0_;
#line 2364 "gnome-boxes-search-provider.c"
	}
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 2368 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_ = _user_data_;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_source_object_ = source_object;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_res_ = _res_;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_GetResultMetas_co (_data_);
#line 2382 "gnome-boxes-search-provider.c"
}


static gboolean boxes_search_provider_GetResultMetas_co (boxes_search_provider_GetResultMetasData* _data_) {
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (_data_->_state_) {
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 0:
#line 2391 "gnome-boxes-search-provider.c"
		goto _state_0;
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case 1:
#line 2395 "gnome-boxes-search-provider.c"
		goto _state_1;
		default:
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_assert_not_reached ();
#line 2400 "gnome-boxes-search-provider.c"
	}
	_state_0:
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0_ = _data_->ids;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp0__length1 = _data_->ids_length1;
#line 127 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp1__length1 = _data_->_tmp0__length1;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp2_ = 0;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_state_ = 1;
#line 127 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 2419 "gnome-boxes-search-provider.c"
	_state_1:
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = NULL;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp3_ = boxes_search_provider_get_metas_finish (_data_->self, _data_->_res_, &_data_->_tmp2_);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->_tmp4__length1 = _data_->_tmp2_;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result_length1 = _data_->_tmp4__length1;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_data_->result = _data_->_tmp4_;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2437 "gnome-boxes-search-provider.c"
	} else {
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2441 "gnome-boxes-search-provider.c"
	}
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_data_->_state_ == 0) {
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2451 "gnome-boxes-search-provider.c"
	} else {
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2455 "gnome-boxes-search-provider.c"
	}
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_unref (_data_->_async_result);
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return FALSE;
#line 2461 "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_ = NULL;
	BoxesBoxConfig* _tmp5_;
	BoxesBoxConfig* _tmp6_;
	gchar* uuid = NULL;
	BoxesBoxConfig* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	BoxesSearchProviderApp* _tmp25_;
	GError * _inner_error_ = NULL;
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_if_fail (self != NULL);
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_if_fail (search_id != NULL);
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = self->priv->app;
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_hold ((GApplication*) _tmp0_);
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = search_id;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_debug ("gnome-boxes-search-provider.vala:133: ActivateResult (%s)", _tmp1_);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = self->priv->boxes;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = search_id;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp4_ = g_hash_table_lookup (_tmp2_, _tmp3_);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp5_ = _g_object_ref0 ((BoxesBoxConfig*) _tmp4_);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	box = _tmp5_;
#line 136 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp6_ = box;
#line 136 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_tmp6_ == NULL) {
#line 2506 "gnome-boxes-search-provider.c"
		const gchar* _tmp7_;
		gchar* _tmp8_;
		gchar* _tmp9_;
		BoxesSearchProviderApp* _tmp10_;
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp7_ = search_id;
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp8_ = g_strconcat ("Can't find id: ", _tmp7_, NULL);
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp9_ = _tmp8_;
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_warning ("gnome-boxes-search-provider.vala:137: %s", _tmp9_);
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_free0 (_tmp9_);
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp10_ = self->priv->app;
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_application_release ((GApplication*) _tmp10_);
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_object_unref0 (box);
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return;
#line 2529 "gnome-boxes-search-provider.c"
	}
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp11_ = box;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp12_ = boxes_box_config_get_uuid (_tmp11_);
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp13_ = _tmp12_;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	uuid = _tmp13_;
#line 2539 "gnome-boxes-search-provider.c"
	{
		gchar* cmd = NULL;
		const gchar* _tmp14_;
		gchar* _tmp15_;
		gboolean _tmp16_ = FALSE;
		const gchar* _tmp17_;
		gboolean _tmp18_ = FALSE;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp14_ = uuid;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp15_ = g_strconcat ("gnome-boxes --open-uuid ", _tmp14_, NULL);
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		cmd = _tmp15_;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp17_ = cmd;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp18_ = g_spawn_command_line_async (_tmp17_, &_inner_error_);
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp16_ = _tmp18_;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (_inner_error_ != NULL) {
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_g_free0 (cmd);
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			if (_inner_error_->domain == G_SPAWN_ERROR) {
#line 2565 "gnome-boxes-search-provider.c"
				goto __catch1_g_spawn_error;
			}
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_g_free0 (cmd);
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_g_free0 (uuid);
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_g_object_unref0 (box);
#line 145 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_clear_error (&_inner_error_);
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			return;
#line 2580 "gnome-boxes-search-provider.c"
		}
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (!_tmp16_) {
#line 2584 "gnome-boxes-search-provider.c"
			FILE* _tmp19_;
			const gchar* _tmp20_;
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_tmp19_ = stderr;
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_tmp20_ = uuid;
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			fprintf (_tmp19_, "Failed to launch Boxes with uuid '%s'\n", _tmp20_);
#line 2593 "gnome-boxes-search-provider.c"
		}
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_free0 (cmd);
#line 2597 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_error_ = _inner_error_;
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_inner_error_ = NULL;
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp21_ = stderr;
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp22_ = uuid;
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		fprintf (_tmp21_, "Failed to launch Boxes with uuid '%s'\n", _tmp22_);
#line 149 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp23_ = _error_;
#line 149 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp24_ = _tmp23_->message;
#line 149 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_warning ("gnome-boxes-search-provider.vala:149: %s", _tmp24_);
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_error_free0 (_error_);
#line 2625 "gnome-boxes-search-provider.c"
	}
	__finally1:
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_inner_error_ != NULL) {
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_free0 (uuid);
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_object_unref0 (box);
#line 143 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_clear_error (&_inner_error_);
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return;
#line 2640 "gnome-boxes-search-provider.c"
	}
#line 152 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp25_ = self->priv->app;
#line 152 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_release ((GApplication*) _tmp25_);
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (uuid);
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (box);
#line 2650 "gnome-boxes-search-provider.c"
}


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


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


static void _vala_array_add3 (gchar*** array, int* length, int* size, gchar* value) {
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if ((*length) == (*size)) {
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 2695 "gnome-boxes-search-provider.c"
	}
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(*array)[(*length)++] = value;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	(*array)[*length] = NULL;
#line 2701 "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_ = NULL;
	gchar* _tmp3_;
	BoxesSearchProviderApp* _tmp21_;
	GError * _inner_error_ = NULL;
#line 155 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_if_fail (self != NULL);
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = self->priv->app;
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_hold ((GApplication*) _tmp0_);
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = terms;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1__length1 = terms_length1;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = g_strjoinv (", ", _tmp1_);
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = _tmp2_;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_debug ("gnome-boxes-search-provider.vala:158: LaunchSearch (%s)", _tmp3_);
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_free0 (_tmp3_);
#line 2731 "gnome-boxes-search-provider.c"
	{
		gchar** args = NULL;
		gchar** _tmp4_ = NULL;
		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_ = FALSE;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp4_ = g_new0 (gchar*, 0 + 1);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		args = _tmp4_;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		args_length1 = 0;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_args_size_ = args_length1;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp5_ = args;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp5__length1 = args_length1;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp6_ = g_strdup ("gnome-boxes");
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_vala_array_add1 (&args, &args_length1, &_args_size_, _tmp6_);
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp7_ = terms;
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp7__length1 = terms_length1;
#line 2766 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			term_collection = _tmp7_;
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			term_collection_length1 = _tmp7__length1;
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			for (term_it = 0; term_it < _tmp7__length1; term_it = term_it + 1) {
#line 2778 "gnome-boxes-search-provider.c"
				gchar* _tmp8_;
				gchar* term = NULL;
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				_tmp8_ = g_strdup (term_collection[term_it]);
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
				term = _tmp8_;
#line 2785 "gnome-boxes-search-provider.c"
				{
					gchar** _tmp9_;
					gint _tmp9__length1;
					gchar* _tmp10_;
					gchar** _tmp11_;
					gint _tmp11__length1;
					const gchar* _tmp12_;
					gchar* _tmp13_;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp9_ = args;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp9__length1 = args_length1;
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp10_ = g_strdup ("--search");
#line 164 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_vala_array_add2 (&args, &args_length1, &_args_size_, _tmp10_);
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp11_ = args;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp11__length1 = args_length1;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp12_ = term;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_tmp13_ = g_strdup (_tmp12_);
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_vala_array_add3 (&args, &args_length1, &_args_size_, _tmp13_);
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
					_g_free0 (term);
#line 2814 "gnome-boxes-search-provider.c"
				}
			}
		}
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp15_ = args;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp15__length1 = args_length1;
#line 167 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp14_ = _tmp16_;
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (_inner_error_ != NULL) {
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			if (_inner_error_->domain == G_SPAWN_ERROR) {
#line 2832 "gnome-boxes-search-provider.c"
				goto __catch2_g_spawn_error;
			}
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 167 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_clear_error (&_inner_error_);
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			return;
#line 2843 "gnome-boxes-search-provider.c"
		}
#line 167 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (!_tmp14_) {
#line 2847 "gnome-boxes-search-provider.c"
			FILE* _tmp17_;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			_tmp17_ = stderr;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			fprintf (_tmp17_, "Failed to launch Boxes for search\n");
#line 2853 "gnome-boxes-search-provider.c"
		}
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 2857 "gnome-boxes-search-provider.c"
	}
	goto __finally2;
	__catch2_g_spawn_error:
	{
		GError* _error_ = NULL;
		FILE* _tmp18_;
		GError* _tmp19_;
		const gchar* _tmp20_;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_error_ = _inner_error_;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_inner_error_ = NULL;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp18_ = stderr;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		fprintf (_tmp18_, "Failed to launch Boxes for search\n");
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp19_ = _error_;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp20_ = _tmp19_->message;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_warning ("gnome-boxes-search-provider.vala:171: %s", _tmp20_);
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_error_free0 (_error_);
#line 2882 "gnome-boxes-search-provider.c"
	}
	__finally2:
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_inner_error_ != NULL) {
#line 160 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_clear_error (&_inner_error_);
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return;
#line 2893 "gnome-boxes-search-provider.c"
	}
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp21_ = self->priv->app;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_application_release ((GApplication*) _tmp21_);
#line 2899 "gnome-boxes-search-provider.c"
}


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


void boxes_search_provider_set_loaded (BoxesSearchProvider* self, gboolean value) {
	gboolean _tmp0_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_if_fail (self != NULL);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = value;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self->priv->_loaded = _tmp0_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_notify ((GObject *) self, "loaded");
#line 2928 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_class_init (BoxesSearchProviderClass * klass) {
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_parent_class = g_type_class_peek_parent (klass);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_type_class_add_private (klass, sizeof (BoxesSearchProviderPrivate));
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_search_provider_get_property;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_search_provider_set_property;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_search_provider_finalize;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), 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 2945 "gnome-boxes-search-provider.c"
}


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


static void boxes_search_provider_finalize (GObject* obj) {
	BoxesSearchProvider * self;
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_SEARCH_PROVIDER, BoxesSearchProvider);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (self->priv->app);
#line 8 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_hash_table_unref0 (self->priv->boxes);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_OBJECT_CLASS (boxes_search_provider_parent_class)->finalize (obj);
#line 2966 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (property_id) {
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case BOXES_SEARCH_PROVIDER_LOADED:
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_value_set_boolean (value, boxes_search_provider_get_loaded (self));
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		break;
#line 2994 "gnome-boxes-search-provider.c"
		default:
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		break;
#line 3000 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	switch (property_id) {
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		case BOXES_SEARCH_PROVIDER_LOADED:
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		boxes_search_provider_set_loaded (self, g_value_get_boolean (value));
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		break;
#line 3016 "gnome-boxes-search-provider.c"
		default:
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		break;
#line 3022 "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;
	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;
	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;
	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;
	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;
	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_free0 (search_id);
	terms = (_vala_array_free (terms, terms_length1, (GDestroyNotify) g_free), NULL);
	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_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;
	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);
	terms = (_vala_array_free (terms, terms_length1, (GDestroyNotify) g_free), NULL);
	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 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 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return self;
#line 3548 "gnome-boxes-search-provider.c"
}


BoxesSearchProviderApp* boxes_search_provider_app_new (void) {
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return boxes_search_provider_app_construct (BOXES_TYPE_SEARCH_PROVIDER_APP);
#line 3555 "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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self = (BoxesSearchProviderApp*) base;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (connection != NULL, FALSE);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_return_val_if_fail (object_path != NULL, FALSE);
#line 3569 "gnome-boxes-search-provider.c"
	{
		GDBusConnection* _tmp0_;
		const gchar* _tmp1_;
		BoxesSearchProvider* _tmp2_;
		BoxesSearchProvider* _tmp3_;
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp0_ = connection;
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp1_ = object_path;
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp2_ = boxes_search_provider_new (self);
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp3_ = _tmp2_;
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		boxes_search_provider_register_object (_tmp3_, _tmp0_, _tmp1_, &_inner_error_);
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_object_unref0 (_tmp3_);
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		if (_inner_error_ != NULL) {
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			if (_inner_error_->domain == G_IO_ERROR) {
#line 3591 "gnome-boxes-search-provider.c"
				goto __catch3_g_io_error;
			}
#line 187 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			g_clear_error (&_inner_error_);
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
			return FALSE;
#line 3600 "gnome-boxes-search-provider.c"
		}
	}
	goto __finally3;
	__catch3_g_io_error:
	{
		GError* _error_ = NULL;
		FILE* _tmp4_;
		GError* _tmp5_;
		const gchar* _tmp6_;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_error_ = _inner_error_;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_inner_error_ = NULL;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp4_ = stderr;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp5_ = _error_;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_tmp6_ = _tmp5_->message;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		fprintf (_tmp4_, "Could not register service: %s", _tmp6_);
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_application_quit ((GApplication*) self);
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		_g_error_free0 (_error_);
#line 3626 "gnome-boxes-search-provider.c"
	}
	__finally3:
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_inner_error_ != NULL) {
#line 186 "/extra-data/checkout/gnome/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 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_clear_error (&_inner_error_);
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		return FALSE;
#line 3637 "gnome-boxes-search-provider.c"
	}
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = TRUE;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 3643 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_app_real_startup (GApplication* base) {
	BoxesSearchProviderApp * self;
	const gchar* _tmp0_ = NULL;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	self = (BoxesSearchProviderApp*) base;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = g_getenv ("BOXES_SEARCH_PROVIDER_PERSIST");
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	if (_tmp0_ != NULL) {
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
		g_application_hold ((GApplication*) self);
#line 3658 "gnome-boxes-search-provider.c"
	}
#line 198 "/extra-data/checkout/gnome/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 3662 "gnome-boxes-search-provider.c"
}


static void boxes_search_provider_app_class_init (BoxesSearchProviderAppClass * klass) {
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	boxes_search_provider_app_parent_class = g_type_class_peek_parent (klass);
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_APPLICATION_CLASS (klass)->dbus_register = boxes_search_provider_app_real_dbus_register;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	G_APPLICATION_CLASS (klass)->startup = boxes_search_provider_app_real_startup;
#line 3673 "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_ = 0;
	gint _tmp3_;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp0_ = boxes_search_provider_app_new ();
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp1_ = _tmp0_;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp2_ = g_application_run ((GApplication*) _tmp1_, 0, NULL);
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_tmp3_ = _tmp2_;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	_g_object_unref0 (_tmp1_);
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	result = _tmp3_;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return result;
#line 3713 "gnome-boxes-search-provider.c"
}


int main (int argc, char ** argv) {
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	g_type_init ();
#line 202 "/extra-data/checkout/gnome/gnome-boxes/src/gnome-boxes-search-provider.vala"
	return _vala_main ();
#line 3722 "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;
}



