/* history.c generated by valac 0.56.19, the Vala compiler
 * generated from history.vala, do not modify */

#include <glib-object.h>
#include <gio/gio.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define PROTON_PLUS_MODELS_TYPE_BASE_RELEASE (proton_plus_models_base_release_get_type ())
#define PROTON_PLUS_MODELS_BASE_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseRelease))
#define PROTON_PLUS_MODELS_BASE_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseReleaseClass))
#define PROTON_PLUS_MODELS_IS_BASE_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE))
#define PROTON_PLUS_MODELS_IS_BASE_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE))
#define PROTON_PLUS_MODELS_BASE_RELEASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseReleaseClass))

typedef struct _ProtonPlusModelsBaseRelease ProtonPlusModelsBaseRelease;
typedef struct _ProtonPlusModelsBaseReleaseClass ProtonPlusModelsBaseReleaseClass;
typedef struct _ProtonPlusModelsBaseReleasePrivate ProtonPlusModelsBaseReleasePrivate;

#define PROTON_PLUS_MODELS_TYPE_PARAMETERS (proton_plus_models_parameters_get_type ())
#define PROTON_PLUS_MODELS_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_PARAMETERS, ProtonPlusModelsParameters))
#define PROTON_PLUS_MODELS_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_PARAMETERS, ProtonPlusModelsParametersClass))
#define PROTON_PLUS_MODELS_IS_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_PARAMETERS))
#define PROTON_PLUS_MODELS_IS_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_PARAMETERS))
#define PROTON_PLUS_MODELS_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_PARAMETERS, ProtonPlusModelsParametersClass))

typedef struct _ProtonPlusModelsParameters ProtonPlusModelsParameters;
typedef struct _ProtonPlusModelsParametersClass ProtonPlusModelsParametersClass;

#define PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY (proton_plus_models_releases_history_get_type ())
#define PROTON_PLUS_MODELS_RELEASES_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY, ProtonPlusModelsReleasesHistory))
#define PROTON_PLUS_MODELS_RELEASES_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY, ProtonPlusModelsReleasesHistoryClass))
#define PROTON_PLUS_MODELS_RELEASES_IS_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY))
#define PROTON_PLUS_MODELS_RELEASES_IS_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY))
#define PROTON_PLUS_MODELS_RELEASES_HISTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY, ProtonPlusModelsReleasesHistoryClass))

typedef struct _ProtonPlusModelsReleasesHistory ProtonPlusModelsReleasesHistory;
typedef struct _ProtonPlusModelsReleasesHistoryClass ProtonPlusModelsReleasesHistoryClass;
typedef struct _ProtonPlusModelsReleasesHistoryPrivate ProtonPlusModelsReleasesHistoryPrivate;
enum  {
	PROTON_PLUS_MODELS_RELEASES_HISTORY_0_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_HISTORY_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_releases_history_properties[PROTON_PLUS_MODELS_RELEASES_HISTORY_NUM_PROPERTIES];

#define PROTON_PLUS_MODELS_TYPE_LAUNCHER (proton_plus_models_launcher_get_type ())
#define PROTON_PLUS_MODELS_LAUNCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_LAUNCHER, ProtonPlusModelsLauncher))
#define PROTON_PLUS_MODELS_LAUNCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_LAUNCHER, ProtonPlusModelsLauncherClass))
#define PROTON_PLUS_MODELS_IS_LAUNCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_LAUNCHER))
#define PROTON_PLUS_MODELS_IS_LAUNCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_LAUNCHER))
#define PROTON_PLUS_MODELS_LAUNCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_LAUNCHER, ProtonPlusModelsLauncherClass))

typedef struct _ProtonPlusModelsLauncher ProtonPlusModelsLauncher;
typedef struct _ProtonPlusModelsLauncherClass ProtonPlusModelsLauncherClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _ProtonPlusModelsLauncherPrivate ProtonPlusModelsLauncherPrivate;

#define PROTON_PLUS_MODELS_TYPE_GAME (proton_plus_models_game_get_type ())
#define PROTON_PLUS_MODELS_GAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_GAME, ProtonPlusModelsGame))
#define PROTON_PLUS_MODELS_GAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_GAME, ProtonPlusModelsGameClass))
#define PROTON_PLUS_MODELS_IS_GAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_GAME))
#define PROTON_PLUS_MODELS_IS_GAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_GAME))
#define PROTON_PLUS_MODELS_GAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_GAME, ProtonPlusModelsGameClass))

typedef struct _ProtonPlusModelsGame ProtonPlusModelsGame;
typedef struct _ProtonPlusModelsGameClass ProtonPlusModelsGameClass;

#define PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER (proton_plus_models_simple_runner_get_type ())
#define PROTON_PLUS_MODELS_SIMPLE_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunner))
#define PROTON_PLUS_MODELS_SIMPLE_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunnerClass))
#define PROTON_PLUS_MODELS_IS_SIMPLE_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER))
#define PROTON_PLUS_MODELS_IS_SIMPLE_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER))
#define PROTON_PLUS_MODELS_SIMPLE_RUNNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunnerClass))

typedef struct _ProtonPlusModelsSimpleRunner ProtonPlusModelsSimpleRunner;
typedef struct _ProtonPlusModelsSimpleRunnerClass ProtonPlusModelsSimpleRunnerClass;

#define PROTON_PLUS_MODELS_TYPE_GROUP (proton_plus_models_group_get_type ())
#define PROTON_PLUS_MODELS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_GROUP, ProtonPlusModelsGroup))
#define PROTON_PLUS_MODELS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_GROUP, ProtonPlusModelsGroupClass))
#define PROTON_PLUS_MODELS_IS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_GROUP))
#define PROTON_PLUS_MODELS_IS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_GROUP))
#define PROTON_PLUS_MODELS_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_GROUP, ProtonPlusModelsGroupClass))

typedef struct _ProtonPlusModelsGroup ProtonPlusModelsGroup;
typedef struct _ProtonPlusModelsGroupClass ProtonPlusModelsGroupClass;
typedef enum  {
	PROTON_PLUS_MODELS_LAUNCHER_INSTALLATION_TYPES_SYSTEM,
	PROTON_PLUS_MODELS_LAUNCHER_INSTALLATION_TYPES_FLATPAK,
	PROTON_PLUS_MODELS_LAUNCHER_INSTALLATION_TYPES_SNAP
} ProtonPlusModelsLauncherInstallationTypes;

#define PROTON_PLUS_MODELS_LAUNCHER_TYPE_INSTALLATION_TYPES (proton_plus_models_launcher_installation_types_get_type ())
#define _g_free0(var) (var = (g_free (var), NULL))

#define PROTON_PLUS_MODELS_TYPE_RUNNER (proton_plus_models_runner_get_type ())
#define PROTON_PLUS_MODELS_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunner))
#define PROTON_PLUS_MODELS_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunnerClass))
#define PROTON_PLUS_MODELS_IS_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_RUNNER))
#define PROTON_PLUS_MODELS_IS_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_RUNNER))
#define PROTON_PLUS_MODELS_RUNNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunnerClass))

typedef struct _ProtonPlusModelsRunner ProtonPlusModelsRunner;
typedef struct _ProtonPlusModelsRunnerClass ProtonPlusModelsRunnerClass;

#define PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY_RUNNER (proton_plus_models_releases_history_runner_get_type ())
#define PROTON_PLUS_MODELS_RELEASES_HISTORY_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY_RUNNER, ProtonPlusModelsReleasesHistoryRunner))
#define PROTON_PLUS_MODELS_RELEASES_HISTORY_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY_RUNNER, ProtonPlusModelsReleasesHistoryRunnerClass))
#define PROTON_PLUS_MODELS_RELEASES_IS_HISTORY_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY_RUNNER))
#define PROTON_PLUS_MODELS_RELEASES_IS_HISTORY_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY_RUNNER))
#define PROTON_PLUS_MODELS_RELEASES_HISTORY_RUNNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY_RUNNER, ProtonPlusModelsReleasesHistoryRunnerClass))

typedef struct _ProtonPlusModelsReleasesHistoryRunner ProtonPlusModelsReleasesHistoryRunner;
typedef struct _ProtonPlusModelsReleasesHistoryRunnerClass ProtonPlusModelsReleasesHistoryRunnerClass;
typedef struct _ProtonPlusModelsReleasesHistoryInstallData ProtonPlusModelsReleasesHistoryInstallData;
typedef struct _ProtonPlusModelsReleasesHistoryStartInstallData ProtonPlusModelsReleasesHistoryStartInstallData;
typedef struct _ProtonPlusModelsReleasesHistoryRemoveData ProtonPlusModelsReleasesHistoryRemoveData;
typedef struct _ProtonPlusModelsRunnerPrivate ProtonPlusModelsRunnerPrivate;

#define PROTON_PLUS_MODELS_TYPE_RELEASE (proton_plus_models_release_get_type ())
#define PROTON_PLUS_MODELS_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsRelease))
#define PROTON_PLUS_MODELS_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsReleaseClass))
#define PROTON_PLUS_MODELS_IS_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE))
#define PROTON_PLUS_MODELS_IS_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_RELEASE))
#define PROTON_PLUS_MODELS_RELEASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsReleaseClass))

typedef struct _ProtonPlusModelsRelease ProtonPlusModelsRelease;
typedef struct _ProtonPlusModelsReleaseClass ProtonPlusModelsReleaseClass;
typedef enum  {
	PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR,
	PROTON_PLUS_RETURN_CODE_RELEASES_LOADED,
	PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE,
	PROTON_PLUS_RETURN_CODE_RUNNERS_UPDATED,
	PROTON_PLUS_RETURN_CODE_RUNNER_UPDATED,
	PROTON_PLUS_RETURN_CODE_VALID_REQUEST,
	PROTON_PLUS_RETURN_CODE_CONNECTION_ISSUE,
	PROTON_PLUS_RETURN_CODE_CONNECTION_REFUSED,
	PROTON_PLUS_RETURN_CODE_CONNECTION_UNKNOWN,
	PROTON_PLUS_RETURN_CODE_API_LIMIT_REACHED,
	PROTON_PLUS_RETURN_CODE_INVALID_ACCESS_TOKEN
} ProtonPlusReturnCode;

#define PROTON_PLUS_TYPE_RETURN_CODE (proton_plus_return_code_get_type ())
typedef struct _ProtonPlusModelsReleasesHistoryRunnerPrivate ProtonPlusModelsReleasesHistoryRunnerPrivate;
enum  {
	PROTON_PLUS_MODELS_RELEASES_HISTORY_RUNNER_0_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_HISTORY_RUNNER_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_releases_history_runner_properties[PROTON_PLUS_MODELS_RELEASES_HISTORY_RUNNER_NUM_PROPERTIES];
typedef struct _ProtonPlusModelsReleasesHistoryRunnerLoadData ProtonPlusModelsReleasesHistoryRunnerLoadData;

struct _ProtonPlusModelsBaseRelease {
	GObject parent_instance;
	ProtonPlusModelsBaseReleasePrivate * priv;
};

struct _ProtonPlusModelsBaseReleaseClass {
	GObjectClass parent_class;
	void (*install) (ProtonPlusModelsBaseRelease* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*install_finish) (ProtonPlusModelsBaseRelease* self, GAsyncResult* _res_);
	void (*_start_install) (ProtonPlusModelsBaseRelease* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*_start_install_finish) (ProtonPlusModelsBaseRelease* self, GAsyncResult* _res_);
	void (*remove) (ProtonPlusModelsBaseRelease* self, ProtonPlusModelsParameters* parameters, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*remove_finish) (ProtonPlusModelsBaseRelease* self, GAsyncResult* _res_);
	void (*refresh_state) (ProtonPlusModelsBaseRelease* self);
};

struct _ProtonPlusModelsReleasesHistory {
	ProtonPlusModelsBaseRelease parent_instance;
	ProtonPlusModelsReleasesHistoryPrivate * priv;
};

struct _ProtonPlusModelsReleasesHistoryClass {
	ProtonPlusModelsBaseReleaseClass parent_class;
};

struct _ProtonPlusModelsLauncher {
	GObject parent_instance;
	ProtonPlusModelsLauncherPrivate * priv;
	gchar* title;
	gchar* icon_path;
	gchar* directory;
	gboolean installed;
	gboolean has_library_support;
	GList* games;
	GeeArrayList* compatibility_tools;
	ProtonPlusModelsGroup** groups;
	gint groups_length1;
	ProtonPlusModelsLauncherInstallationTypes installation_type;
};

struct _ProtonPlusModelsLauncherClass {
	GObjectClass parent_class;
	void (*load_game_library) (ProtonPlusModelsLauncher* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*load_game_library_finish) (ProtonPlusModelsLauncher* self, GAsyncResult* _res_);
	gint (*get_compatibility_tool_usage_count) (ProtonPlusModelsLauncher* self, const gchar* compatibility_tool_name);
};

struct _ProtonPlusModelsReleasesHistoryInstallData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesHistory* self;
	gboolean result;
};

struct _ProtonPlusModelsReleasesHistoryStartInstallData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesHistory* self;
	gboolean result;
};

struct _ProtonPlusModelsReleasesHistoryRemoveData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesHistory* self;
	ProtonPlusModelsParameters* parameters;
	gboolean result;
};

struct _ProtonPlusModelsRunner {
	GObject parent_instance;
	ProtonPlusModelsRunnerPrivate * priv;
	GList* releases;
};

struct _ProtonPlusModelsRunnerClass {
	GObjectClass parent_class;
	void (*load) (ProtonPlusModelsRunner* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	ProtonPlusReturnCode (*load_finish) (ProtonPlusModelsRunner* self, GAsyncResult* _res_, GList** releases);
};

struct _ProtonPlusModelsReleasesHistoryRunner {
	ProtonPlusModelsRunner parent_instance;
	ProtonPlusModelsReleasesHistoryRunnerPrivate * priv;
};

struct _ProtonPlusModelsReleasesHistoryRunnerClass {
	ProtonPlusModelsRunnerClass parent_class;
};

struct _ProtonPlusModelsReleasesHistoryRunnerLoadData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesHistoryRunner* self;
	GList* releases;
	ProtonPlusReturnCode result;
};

static gpointer proton_plus_models_releases_history_parent_class = NULL;
static gpointer proton_plus_models_releases_history_runner_parent_class = NULL;

VALA_EXTERN GType proton_plus_models_base_release_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsBaseRelease, g_object_unref)
VALA_EXTERN GType proton_plus_models_parameters_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsParameters, g_object_unref)
VALA_EXTERN GType proton_plus_models_releases_history_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsReleasesHistory, g_object_unref)
VALA_EXTERN void proton_plus_models_base_release_install (ProtonPlusModelsBaseRelease* self,
                                              GAsyncReadyCallback _callback_,
                                              gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_models_base_release_install_finish (ProtonPlusModelsBaseRelease* self,
                                                         GAsyncResult* _res_);
VALA_EXTERN void _proton_plus_models_base_release_start_install (ProtonPlusModelsBaseRelease* self,
                                                     GAsyncReadyCallback _callback_,
                                                     gpointer _user_data_);
VALA_EXTERN gboolean _proton_plus_models_base_release_start_install_finish (ProtonPlusModelsBaseRelease* self,
                                                                GAsyncResult* _res_);
VALA_EXTERN void proton_plus_models_base_release_remove (ProtonPlusModelsBaseRelease* self,
                                             ProtonPlusModelsParameters* parameters,
                                             GAsyncReadyCallback _callback_,
                                             gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_models_base_release_remove_finish (ProtonPlusModelsBaseRelease* self,
                                                        GAsyncResult* _res_);
VALA_EXTERN void proton_plus_models_base_release_refresh_state (ProtonPlusModelsBaseRelease* self);
VALA_EXTERN ProtonPlusModelsReleasesHistory* proton_plus_models_releases_history_new (const gchar* title,
                                                                          const gchar* displayed_title,
                                                                          const gchar* icon_path,
                                                                          gboolean is_finished,
                                                                          gboolean install_success,
                                                                          gboolean canceled,
                                                                          const gchar* error_message);
VALA_EXTERN ProtonPlusModelsReleasesHistory* proton_plus_models_releases_history_construct (GType object_type,
                                                                                const gchar* title,
                                                                                const gchar* displayed_title,
                                                                                const gchar* icon_path,
                                                                                gboolean is_finished,
                                                                                gboolean install_success,
                                                                                gboolean canceled,
                                                                                const gchar* error_message);
VALA_EXTERN ProtonPlusModelsBaseRelease* proton_plus_models_base_release_construct (GType object_type);
VALA_EXTERN void proton_plus_models_base_release_set_title (ProtonPlusModelsBaseRelease* self,
                                                const gchar* value);
VALA_EXTERN void proton_plus_models_base_release_set_displayed_title (ProtonPlusModelsBaseRelease* self,
                                                          const gchar* value);
VALA_EXTERN void proton_plus_models_base_release_set_is_finished (ProtonPlusModelsBaseRelease* self,
                                                      gboolean value);
VALA_EXTERN void proton_plus_models_base_release_set_install_success (ProtonPlusModelsBaseRelease* self,
                                                          gboolean value);
VALA_EXTERN void proton_plus_models_base_release_set_canceled (ProtonPlusModelsBaseRelease* self,
                                                   gboolean value);
VALA_EXTERN void proton_plus_models_base_release_set_error_message (ProtonPlusModelsBaseRelease* self,
                                                        const gchar* value);
VALA_EXTERN GType proton_plus_models_launcher_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsLauncher, g_object_unref)
VALA_EXTERN GType proton_plus_models_game_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsGame, g_object_unref)
VALA_EXTERN GType proton_plus_models_simple_runner_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsSimpleRunner, g_object_unref)
VALA_EXTERN GType proton_plus_models_group_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsGroup, g_object_unref)
VALA_EXTERN GType proton_plus_models_launcher_installation_types_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void proton_plus_models_group_set_launcher (ProtonPlusModelsGroup* self,
                                            ProtonPlusModelsLauncher* value);
VALA_EXTERN GType proton_plus_models_runner_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsRunner, g_object_unref)
VALA_EXTERN GType proton_plus_models_releases_history_runner_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsReleasesHistoryRunner, g_object_unref)
VALA_EXTERN void proton_plus_models_runner_set_group (ProtonPlusModelsRunner* self,
                                          ProtonPlusModelsGroup* value);
VALA_EXTERN void proton_plus_models_base_release_set_runner (ProtonPlusModelsBaseRelease* self,
                                                 ProtonPlusModelsRunner* value);
static void proton_plus_models_releases_history_real_install_data_free (gpointer _data);
static void proton_plus_models_releases_history_real_install (ProtonPlusModelsBaseRelease* base,
                                                       GAsyncReadyCallback _callback_,
                                                       gpointer _user_data_);
static gboolean proton_plus_models_releases_history_real_install_co (ProtonPlusModelsReleasesHistoryInstallData* _data_);
static void proton_plus_models_releases_history_real__start_install_data_free (gpointer _data);
static void proton_plus_models_releases_history_real__start_install (ProtonPlusModelsBaseRelease* base,
                                                              GAsyncReadyCallback _callback_,
                                                              gpointer _user_data_);
static gboolean proton_plus_models_releases_history_real__start_install_co (ProtonPlusModelsReleasesHistoryStartInstallData* _data_);
static void proton_plus_models_releases_history_real_remove_data_free (gpointer _data);
static void proton_plus_models_releases_history_real_remove (ProtonPlusModelsBaseRelease* base,
                                                      ProtonPlusModelsParameters* parameters,
                                                      GAsyncReadyCallback _callback_,
                                                      gpointer _user_data_);
static gboolean proton_plus_models_releases_history_real_remove_co (ProtonPlusModelsReleasesHistoryRemoveData* _data_);
static void proton_plus_models_releases_history_real_refresh_state (ProtonPlusModelsBaseRelease* base);
static GType proton_plus_models_releases_history_get_type_once (void);
VALA_EXTERN GType proton_plus_models_release_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsRelease, g_object_unref)
VALA_EXTERN GType proton_plus_return_code_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void proton_plus_models_runner_load (ProtonPlusModelsRunner* self,
                                     GAsyncReadyCallback _callback_,
                                     gpointer _user_data_);
VALA_EXTERN ProtonPlusReturnCode proton_plus_models_runner_load_finish (ProtonPlusModelsRunner* self,
                                                            GAsyncResult* _res_,
                                                            GList** releases);
static void proton_plus_models_releases_history_runner_real_load_data_free (gpointer _data);
static void proton_plus_models_releases_history_runner_real_load (ProtonPlusModelsRunner* base,
                                                           GAsyncReadyCallback _callback_,
                                                           gpointer _user_data_);
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
static gboolean proton_plus_models_releases_history_runner_real_load_co (ProtonPlusModelsReleasesHistoryRunnerLoadData* _data_);
VALA_EXTERN ProtonPlusModelsReleasesHistoryRunner* proton_plus_models_releases_history_runner_new (void);
VALA_EXTERN ProtonPlusModelsReleasesHistoryRunner* proton_plus_models_releases_history_runner_construct (GType object_type);
VALA_EXTERN ProtonPlusModelsRunner* proton_plus_models_runner_construct (GType object_type);
static GType proton_plus_models_releases_history_runner_get_type_once (void);

ProtonPlusModelsReleasesHistory*
proton_plus_models_releases_history_construct (GType object_type,
                                               const gchar* title,
                                               const gchar* displayed_title,
                                               const gchar* icon_path,
                                               gboolean is_finished,
                                               gboolean install_success,
                                               gboolean canceled,
                                               const gchar* error_message)
{
	ProtonPlusModelsReleasesHistory * self = NULL;
	ProtonPlusModelsLauncher* launcher = NULL;
	GObject* _tmp0_;
	GObject* _tmp1_;
	ProtonPlusModelsLauncher* _tmp2_;
	gchar* _tmp3_;
	ProtonPlusModelsGroup* group = NULL;
	GObject* _tmp4_;
	GObject* _tmp5_;
	ProtonPlusModelsGroup* _tmp6_;
	ProtonPlusModelsReleasesHistoryRunner* runner = NULL;
	GObject* _tmp7_;
	GObject* _tmp8_;
	ProtonPlusModelsReleasesHistoryRunner* _tmp9_;
	g_return_val_if_fail (title != NULL, NULL);
	g_return_val_if_fail (icon_path != NULL, NULL);
	self = (ProtonPlusModelsReleasesHistory*) proton_plus_models_base_release_construct (object_type);
	proton_plus_models_base_release_set_title ((ProtonPlusModelsBaseRelease*) self, title);
	proton_plus_models_base_release_set_displayed_title ((ProtonPlusModelsBaseRelease*) self, displayed_title);
	proton_plus_models_base_release_set_is_finished ((ProtonPlusModelsBaseRelease*) self, is_finished);
	proton_plus_models_base_release_set_install_success ((ProtonPlusModelsBaseRelease*) self, install_success);
	proton_plus_models_base_release_set_canceled ((ProtonPlusModelsBaseRelease*) self, canceled);
	proton_plus_models_base_release_set_error_message ((ProtonPlusModelsBaseRelease*) self, error_message);
	_tmp0_ = g_object_new (PROTON_PLUS_MODELS_TYPE_LAUNCHER, NULL);
	_tmp1_ = G_IS_INITIALLY_UNOWNED (_tmp0_) ? g_object_ref_sink (_tmp0_) : _tmp0_;
	_tmp2_ = PROTON_PLUS_MODELS_IS_LAUNCHER (_tmp1_) ? ((ProtonPlusModelsLauncher*) _tmp1_) : NULL;
	if (_tmp2_ == NULL) {
		_g_object_unref0 (_tmp1_);
	}
	launcher = _tmp2_;
	_tmp3_ = g_strdup (icon_path);
	_g_free0 (launcher->icon_path);
	launcher->icon_path = _tmp3_;
	_tmp4_ = g_object_new (PROTON_PLUS_MODELS_TYPE_GROUP, NULL);
	_tmp5_ = G_IS_INITIALLY_UNOWNED (_tmp4_) ? g_object_ref_sink (_tmp4_) : _tmp4_;
	_tmp6_ = PROTON_PLUS_MODELS_IS_GROUP (_tmp5_) ? ((ProtonPlusModelsGroup*) _tmp5_) : NULL;
	if (_tmp6_ == NULL) {
		_g_object_unref0 (_tmp5_);
	}
	group = _tmp6_;
	proton_plus_models_group_set_launcher (group, launcher);
	_tmp7_ = g_object_new (PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY_RUNNER, NULL);
	_tmp8_ = G_IS_INITIALLY_UNOWNED (_tmp7_) ? g_object_ref_sink (_tmp7_) : _tmp7_;
	_tmp9_ = PROTON_PLUS_MODELS_RELEASES_IS_HISTORY_RUNNER (_tmp8_) ? ((ProtonPlusModelsReleasesHistoryRunner*) _tmp8_) : NULL;
	if (_tmp9_ == NULL) {
		_g_object_unref0 (_tmp8_);
	}
	runner = _tmp9_;
	proton_plus_models_runner_set_group ((ProtonPlusModelsRunner*) runner, group);
	proton_plus_models_base_release_set_runner ((ProtonPlusModelsBaseRelease*) self, (ProtonPlusModelsRunner*) runner);
	_g_object_unref0 (runner);
	_g_object_unref0 (group);
	_g_object_unref0 (launcher);
	return self;
}

ProtonPlusModelsReleasesHistory*
proton_plus_models_releases_history_new (const gchar* title,
                                         const gchar* displayed_title,
                                         const gchar* icon_path,
                                         gboolean is_finished,
                                         gboolean install_success,
                                         gboolean canceled,
                                         const gchar* error_message)
{
	return proton_plus_models_releases_history_construct (PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY, title, displayed_title, icon_path, is_finished, install_success, canceled, error_message);
}

static void
proton_plus_models_releases_history_real_install_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesHistoryInstallData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesHistoryInstallData, _data_);
}

static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}

static void
proton_plus_models_releases_history_real_install (ProtonPlusModelsBaseRelease* base,
                                                  GAsyncReadyCallback _callback_,
                                                  gpointer _user_data_)
{
	ProtonPlusModelsReleasesHistory * self;
	ProtonPlusModelsReleasesHistoryInstallData* _data_;
	ProtonPlusModelsReleasesHistory* _tmp0_;
	self = (ProtonPlusModelsReleasesHistory*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesHistoryInstallData);
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, proton_plus_models_releases_history_real_install_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	proton_plus_models_releases_history_real_install_co (_data_);
}

static gboolean
proton_plus_models_releases_history_install_finish (ProtonPlusModelsBaseRelease* base,
                                                    GAsyncResult* _res_)
{
	gboolean result;
	ProtonPlusModelsReleasesHistoryInstallData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	return result;
}

static gboolean
proton_plus_models_releases_history_real_install_co (ProtonPlusModelsReleasesHistoryInstallData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->result = FALSE;
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static void
proton_plus_models_releases_history_real__start_install_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesHistoryStartInstallData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesHistoryStartInstallData, _data_);
}

static void
proton_plus_models_releases_history_real__start_install (ProtonPlusModelsBaseRelease* base,
                                                         GAsyncReadyCallback _callback_,
                                                         gpointer _user_data_)
{
	ProtonPlusModelsReleasesHistory * self;
	ProtonPlusModelsReleasesHistoryStartInstallData* _data_;
	ProtonPlusModelsReleasesHistory* _tmp0_;
	self = (ProtonPlusModelsReleasesHistory*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesHistoryStartInstallData);
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, proton_plus_models_releases_history_real__start_install_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	proton_plus_models_releases_history_real__start_install_co (_data_);
}

static gboolean
_proton_plus_models_releases_history_start_install_finish (ProtonPlusModelsBaseRelease* base,
                                                           GAsyncResult* _res_)
{
	gboolean result;
	ProtonPlusModelsReleasesHistoryStartInstallData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	return result;
}

static gboolean
proton_plus_models_releases_history_real__start_install_co (ProtonPlusModelsReleasesHistoryStartInstallData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->result = FALSE;
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static void
proton_plus_models_releases_history_real_remove_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesHistoryRemoveData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->parameters);
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesHistoryRemoveData, _data_);
}

static void
proton_plus_models_releases_history_real_remove (ProtonPlusModelsBaseRelease* base,
                                                 ProtonPlusModelsParameters* parameters,
                                                 GAsyncReadyCallback _callback_,
                                                 gpointer _user_data_)
{
	ProtonPlusModelsReleasesHistory * self;
	ProtonPlusModelsReleasesHistoryRemoveData* _data_;
	ProtonPlusModelsReleasesHistory* _tmp0_;
	ProtonPlusModelsParameters* _tmp1_;
	g_return_if_fail (parameters != NULL);
	self = (ProtonPlusModelsReleasesHistory*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesHistoryRemoveData);
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, proton_plus_models_releases_history_real_remove_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = _g_object_ref0 (parameters);
	_g_object_unref0 (_data_->parameters);
	_data_->parameters = _tmp1_;
	proton_plus_models_releases_history_real_remove_co (_data_);
}

static gboolean
proton_plus_models_releases_history_remove_finish (ProtonPlusModelsBaseRelease* base,
                                                   GAsyncResult* _res_)
{
	gboolean result;
	ProtonPlusModelsReleasesHistoryRemoveData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	return result;
}

static gboolean
proton_plus_models_releases_history_real_remove_co (ProtonPlusModelsReleasesHistoryRemoveData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->result = FALSE;
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static void
proton_plus_models_releases_history_real_refresh_state (ProtonPlusModelsBaseRelease* base)
{
	ProtonPlusModelsReleasesHistory * self;
	self = (ProtonPlusModelsReleasesHistory*) base;
}

static void
proton_plus_models_releases_history_class_init (ProtonPlusModelsReleasesHistoryClass * klass,
                                                gpointer klass_data)
{
	proton_plus_models_releases_history_parent_class = g_type_class_peek_parent (klass);
	((ProtonPlusModelsBaseReleaseClass *) klass)->install = (void (*) (ProtonPlusModelsBaseRelease*, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_history_real_install;
	((ProtonPlusModelsBaseReleaseClass *) klass)->install_finish = (gboolean (*) (ProtonPlusModelsBaseRelease*, GAsyncResult*)) proton_plus_models_releases_history_install_finish;
	((ProtonPlusModelsBaseReleaseClass *) klass)->_start_install = (void (*) (ProtonPlusModelsBaseRelease*, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_history_real__start_install;
	((ProtonPlusModelsBaseReleaseClass *) klass)->_start_install_finish = (gboolean (*) (ProtonPlusModelsBaseRelease*, GAsyncResult*)) _proton_plus_models_releases_history_start_install_finish;
	((ProtonPlusModelsBaseReleaseClass *) klass)->remove = (void (*) (ProtonPlusModelsBaseRelease*, ProtonPlusModelsParameters*, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_history_real_remove;
	((ProtonPlusModelsBaseReleaseClass *) klass)->remove_finish = (gboolean (*) (ProtonPlusModelsBaseRelease*, GAsyncResult*)) proton_plus_models_releases_history_remove_finish;
	((ProtonPlusModelsBaseReleaseClass *) klass)->refresh_state = (void (*) (ProtonPlusModelsBaseRelease*)) proton_plus_models_releases_history_real_refresh_state;
}

static void
proton_plus_models_releases_history_instance_init (ProtonPlusModelsReleasesHistory * self,
                                                   gpointer klass)
{
}

static GType
proton_plus_models_releases_history_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsReleasesHistoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_releases_history_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsReleasesHistory), 0, (GInstanceInitFunc) proton_plus_models_releases_history_instance_init, NULL };
	GType proton_plus_models_releases_history_type_id;
	proton_plus_models_releases_history_type_id = g_type_register_static (PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, "ProtonPlusModelsReleasesHistory", &g_define_type_info, 0);
	return proton_plus_models_releases_history_type_id;
}

GType
proton_plus_models_releases_history_get_type (void)
{
	static volatile gsize proton_plus_models_releases_history_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_releases_history_type_id__once)) {
		GType proton_plus_models_releases_history_type_id;
		proton_plus_models_releases_history_type_id = proton_plus_models_releases_history_get_type_once ();
		g_once_init_leave (&proton_plus_models_releases_history_type_id__once, proton_plus_models_releases_history_type_id);
	}
	return proton_plus_models_releases_history_type_id__once;
}

static void
proton_plus_models_releases_history_runner_real_load_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesHistoryRunnerLoadData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesHistoryRunnerLoadData, _data_);
}

static void
proton_plus_models_releases_history_runner_real_load (ProtonPlusModelsRunner* base,
                                                      GAsyncReadyCallback _callback_,
                                                      gpointer _user_data_)
{
	ProtonPlusModelsReleasesHistoryRunner * self;
	ProtonPlusModelsReleasesHistoryRunnerLoadData* _data_;
	ProtonPlusModelsReleasesHistoryRunner* _tmp0_;
	self = (ProtonPlusModelsReleasesHistoryRunner*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesHistoryRunnerLoadData);
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, proton_plus_models_releases_history_runner_real_load_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	proton_plus_models_releases_history_runner_real_load_co (_data_);
}

static void
_g_object_unref0_ (gpointer var)
{
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
}

static inline void
_g_list_free__g_object_unref0_ (GList* self)
{
	g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
}

static ProtonPlusReturnCode
proton_plus_models_releases_history_runner_load_finish (ProtonPlusModelsRunner* base,
                                                        GAsyncResult* _res_,
                                                        GList** releases)
{
	ProtonPlusReturnCode result;
	ProtonPlusModelsReleasesHistoryRunnerLoadData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	if (releases) {
		*releases = _data_->releases;
	} else {
		(_data_->releases == NULL) ? NULL : (_data_->releases = (_g_list_free__g_object_unref0_ (_data_->releases), NULL));
	}
	_data_->releases = NULL;
	result = _data_->result;
	return result;
}

static gboolean
proton_plus_models_releases_history_runner_real_load_co (ProtonPlusModelsReleasesHistoryRunnerLoadData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	(_data_->releases == NULL) ? NULL : (_data_->releases = (_g_list_free__g_object_unref0_ (_data_->releases), NULL));
	_data_->releases = NULL;
	_data_->result = PROTON_PLUS_RETURN_CODE_VALID_REQUEST;
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

ProtonPlusModelsReleasesHistoryRunner*
proton_plus_models_releases_history_runner_construct (GType object_type)
{
	ProtonPlusModelsReleasesHistoryRunner * self = NULL;
	self = (ProtonPlusModelsReleasesHistoryRunner*) proton_plus_models_runner_construct (object_type);
	return self;
}

ProtonPlusModelsReleasesHistoryRunner*
proton_plus_models_releases_history_runner_new (void)
{
	return proton_plus_models_releases_history_runner_construct (PROTON_PLUS_MODELS_RELEASES_TYPE_HISTORY_RUNNER);
}

static void
proton_plus_models_releases_history_runner_class_init (ProtonPlusModelsReleasesHistoryRunnerClass * klass,
                                                       gpointer klass_data)
{
	proton_plus_models_releases_history_runner_parent_class = g_type_class_peek_parent (klass);
	((ProtonPlusModelsRunnerClass *) klass)->load = (void (*) (ProtonPlusModelsRunner*, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_history_runner_real_load;
	((ProtonPlusModelsRunnerClass *) klass)->load_finish = (ProtonPlusReturnCode (*) (ProtonPlusModelsRunner*, GAsyncResult*, GList**)) proton_plus_models_releases_history_runner_load_finish;
}

static void
proton_plus_models_releases_history_runner_instance_init (ProtonPlusModelsReleasesHistoryRunner * self,
                                                          gpointer klass)
{
}

static GType
proton_plus_models_releases_history_runner_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsReleasesHistoryRunnerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_releases_history_runner_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsReleasesHistoryRunner), 0, (GInstanceInitFunc) proton_plus_models_releases_history_runner_instance_init, NULL };
	GType proton_plus_models_releases_history_runner_type_id;
	proton_plus_models_releases_history_runner_type_id = g_type_register_static (PROTON_PLUS_MODELS_TYPE_RUNNER, "ProtonPlusModelsReleasesHistoryRunner", &g_define_type_info, 0);
	return proton_plus_models_releases_history_runner_type_id;
}

GType
proton_plus_models_releases_history_runner_get_type (void)
{
	static volatile gsize proton_plus_models_releases_history_runner_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_releases_history_runner_type_id__once)) {
		GType proton_plus_models_releases_history_runner_type_id;
		proton_plus_models_releases_history_runner_type_id = proton_plus_models_releases_history_runner_get_type_once ();
		g_once_init_leave (&proton_plus_models_releases_history_runner_type_id__once, proton_plus_models_releases_history_runner_type_id);
	}
	return proton_plus_models_releases_history_runner_type_id__once;
}

