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

#include "protonplus_core.h"
#include <glib-object.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <stdlib.h>
#include <string.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

enum  {
	PROTON_PLUS_MODELS_TOOLS_STEAM_TINKER_LAUNCH_0_PROPERTY,
	PROTON_PLUS_MODELS_TOOLS_STEAM_TINKER_LAUNCH_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_tools_steam_tinker_launch_properties[PROTON_PLUS_MODELS_TOOLS_STEAM_TINKER_LAUNCH_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

static gpointer proton_plus_models_tools_steam_tinker_launch_parent_class = NULL;

VALA_EXTERN void proton_plus_models_tool_set_identity (ProtonPlusModelsTool* self,
                                           const gchar* provider_id,
                                           const gchar* source_id);
static GType proton_plus_models_tools_steam_tinker_launch_get_type_once (void);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

ProtonPlusModelsToolsSteamTinkerLaunch*
proton_plus_models_tools_steam_tinker_launch_construct (GType object_type,
                                                        ProtonPlusModelsGroup* group)
{
	ProtonPlusModelsToolsSteamTinkerLaunch * self = NULL;
	ProtonPlusModelsRelease* release = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	ProtonPlusModelsAssetsAsset* _tmp4_;
	ProtonPlusModelsAssetsAsset* _tmp5_;
	gint64 _tmp6_;
	ProtonPlusModelsRelease* _tmp7_;
	ProtonPlusModelsRelease* _tmp8_;
	ProtonPlusModelsReleaseCatalog* _tmp9_;
	ProtonPlusModelsReleaseCatalog* _tmp10_;
	g_return_val_if_fail (group != NULL, NULL);
	self = (ProtonPlusModelsToolsSteamTinkerLaunch*) g_object_new (object_type, "group", group, "title", "Steam Tinker Launch", "repository-url", "https://github.com/sonic2kk/steamtinkerlaunch", "description", _ ("Steam tool for easy, graphical configuration of your other compatibili" \
"ty tools for both Windows games and native Linux games."), NULL);
	proton_plus_models_tool_set_identity ((ProtonPlusModelsTool*) self, "steam-tinker-launch", "github");
	_tmp0_ = proton_plus_models_tool_get_title ((ProtonPlusModelsTool*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = proton_plus_models_tool_get_description ((ProtonPlusModelsTool*) self);
	_tmp3_ = _tmp2_;
	_tmp4_ = proton_plus_models_assets_asset_new ("", "", (gint64) 0, "");
	_tmp5_ = _tmp4_;
	_tmp6_ = (gint64) 0;
	_tmp7_ = proton_plus_models_release_new (_tmp1_, _tmp3_, "", _tmp5_, "", &_tmp6_, "steam-tinker-launch", "steam-tinker-launch", PROTON_PLUS_MODELS_RELEASE_KIND_STEAM_TINKER_LAUNCH, "");
	_tmp8_ = _tmp7_;
	_g_object_unref0 (_tmp5_);
	release = _tmp8_;
	_tmp9_ = proton_plus_models_release_catalog_new_with_static_release (release);
	_tmp10_ = _tmp9_;
	proton_plus_models_tool_initialize_release_catalog ((ProtonPlusModelsTool*) self, _tmp10_);
	_g_object_unref0 (_tmp10_);
	_g_object_unref0 (release);
	return self;
}

ProtonPlusModelsToolsSteamTinkerLaunch*
proton_plus_models_tools_steam_tinker_launch_new (ProtonPlusModelsGroup* group)
{
	return proton_plus_models_tools_steam_tinker_launch_construct (PROTON_PLUS_MODELS_TOOLS_TYPE_STEAM_TINKER_LAUNCH, group);
}

static void
proton_plus_models_tools_steam_tinker_launch_class_init (ProtonPlusModelsToolsSteamTinkerLaunchClass * klass,
                                                         gpointer klass_data)
{
	proton_plus_models_tools_steam_tinker_launch_parent_class = g_type_class_peek_parent (klass);
}

static void
proton_plus_models_tools_steam_tinker_launch_instance_init (ProtonPlusModelsToolsSteamTinkerLaunch * self,
                                                            gpointer klass)
{
}

static GType
proton_plus_models_tools_steam_tinker_launch_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsToolsSteamTinkerLaunchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_tools_steam_tinker_launch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsToolsSteamTinkerLaunch), 0, (GInstanceInitFunc) proton_plus_models_tools_steam_tinker_launch_instance_init, NULL };
	GType proton_plus_models_tools_steam_tinker_launch_type_id;
	proton_plus_models_tools_steam_tinker_launch_type_id = g_type_register_static (PROTON_PLUS_MODELS_TYPE_TOOL, "ProtonPlusModelsToolsSteamTinkerLaunch", &g_define_type_info, 0);
	return proton_plus_models_tools_steam_tinker_launch_type_id;
}

GType
proton_plus_models_tools_steam_tinker_launch_get_type (void)
{
	static volatile gsize proton_plus_models_tools_steam_tinker_launch_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_tools_steam_tinker_launch_type_id__once)) {
		GType proton_plus_models_tools_steam_tinker_launch_type_id;
		proton_plus_models_tools_steam_tinker_launch_type_id = proton_plus_models_tools_steam_tinker_launch_get_type_once ();
		g_once_init_leave (&proton_plus_models_tools_steam_tinker_launch_type_id__once, proton_plus_models_tools_steam_tinker_launch_type_id);
	}
	return proton_plus_models_tools_steam_tinker_launch_type_id__once;
}

static inline gpointer
_vala_memdup2 (gconstpointer mem,
               gsize byte_size)
{
	gpointer new_mem;
	if (mem && byte_size != 0) {
		new_mem = g_malloc (byte_size);
		memcpy (new_mem, mem, byte_size);
	} else {
		new_mem = NULL;
	}
	return new_mem;
}

