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

#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib.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_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;
typedef struct _ProtonPlusModelsSimpleRunnerPrivate ProtonPlusModelsSimpleRunnerPrivate;
enum  {
	PROTON_PLUS_MODELS_SIMPLE_RUNNER_0_PROPERTY,
	PROTON_PLUS_MODELS_SIMPLE_RUNNER_DISPLAY_TITLE_PROPERTY,
	PROTON_PLUS_MODELS_SIMPLE_RUNNER_INTERNAL_TITLE_PROPERTY,
	PROTON_PLUS_MODELS_SIMPLE_RUNNER_PATH_PROPERTY,
	PROTON_PLUS_MODELS_SIMPLE_RUNNER_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_simple_runner_properties[PROTON_PLUS_MODELS_SIMPLE_RUNNER_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ProtonPlusModelsSimpleRunner {
	GObject parent_instance;
	ProtonPlusModelsSimpleRunnerPrivate * priv;
};

struct _ProtonPlusModelsSimpleRunnerClass {
	GObjectClass parent_class;
};

struct _ProtonPlusModelsSimpleRunnerPrivate {
	gchar* _display_title;
	gchar* _internal_title;
	gchar* _path;
};

static gint ProtonPlusModelsSimpleRunner_private_offset;
static gpointer proton_plus_models_simple_runner_parent_class = NULL;

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 ProtonPlusModelsSimpleRunner* proton_plus_models_simple_runner_new (const gchar* display_title,
                                                                    const gchar* internal_title);
VALA_EXTERN ProtonPlusModelsSimpleRunner* proton_plus_models_simple_runner_construct (GType object_type,
                                                                          const gchar* display_title,
                                                                          const gchar* internal_title);
VALA_EXTERN void proton_plus_models_simple_runner_set_display_title (ProtonPlusModelsSimpleRunner* self,
                                                         const gchar* value);
VALA_EXTERN void proton_plus_models_simple_runner_set_internal_title (ProtonPlusModelsSimpleRunner* self,
                                                          const gchar* value);
VALA_EXTERN ProtonPlusModelsSimpleRunner* proton_plus_models_simple_runner_new_with_path (const gchar* display_title,
                                                                              const gchar* internal_title,
                                                                              const gchar* path);
VALA_EXTERN ProtonPlusModelsSimpleRunner* proton_plus_models_simple_runner_construct_with_path (GType object_type,
                                                                                    const gchar* display_title,
                                                                                    const gchar* internal_title,
                                                                                    const gchar* path);
VALA_EXTERN void proton_plus_models_simple_runner_set_path (ProtonPlusModelsSimpleRunner* self,
                                                const gchar* value);
VALA_EXTERN ProtonPlusModelsSimpleRunner* proton_plus_models_simple_runner_new_from_path (const gchar* path,
                                                                              GError** error);
VALA_EXTERN ProtonPlusModelsSimpleRunner* proton_plus_models_simple_runner_construct_from_path (GType object_type,
                                                                                    const gchar* path,
                                                                                    GError** error);
VALA_EXTERN gchar* proton_plus_utils_filesystem_get_file_content (const gchar* path,
                                                      gboolean use_uri);
VALA_EXTERN const gchar* proton_plus_models_simple_runner_get_display_title (ProtonPlusModelsSimpleRunner* self);
VALA_EXTERN const gchar* proton_plus_models_simple_runner_get_internal_title (ProtonPlusModelsSimpleRunner* self);
VALA_EXTERN const gchar* proton_plus_models_simple_runner_get_path (ProtonPlusModelsSimpleRunner* self);
static void proton_plus_models_simple_runner_finalize (GObject * obj);
static GType proton_plus_models_simple_runner_get_type_once (void);
static void _vala_proton_plus_models_simple_runner_get_property (GObject * object,
                                                          guint property_id,
                                                          GValue * value,
                                                          GParamSpec * pspec);
static void _vala_proton_plus_models_simple_runner_set_property (GObject * object,
                                                          guint property_id,
                                                          const GValue * value,
                                                          GParamSpec * pspec);

static inline gpointer
proton_plus_models_simple_runner_get_instance_private (ProtonPlusModelsSimpleRunner* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusModelsSimpleRunner_private_offset);
}

ProtonPlusModelsSimpleRunner*
proton_plus_models_simple_runner_construct (GType object_type,
                                            const gchar* display_title,
                                            const gchar* internal_title)
{
	ProtonPlusModelsSimpleRunner * self = NULL;
	g_return_val_if_fail (display_title != NULL, NULL);
	g_return_val_if_fail (internal_title != NULL, NULL);
	self = (ProtonPlusModelsSimpleRunner*) g_object_new (object_type, NULL);
	proton_plus_models_simple_runner_set_display_title (self, display_title);
	proton_plus_models_simple_runner_set_internal_title (self, internal_title);
	return self;
}

ProtonPlusModelsSimpleRunner*
proton_plus_models_simple_runner_new (const gchar* display_title,
                                      const gchar* internal_title)
{
	return proton_plus_models_simple_runner_construct (PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, display_title, internal_title);
}

ProtonPlusModelsSimpleRunner*
proton_plus_models_simple_runner_construct_with_path (GType object_type,
                                                      const gchar* display_title,
                                                      const gchar* internal_title,
                                                      const gchar* path)
{
	ProtonPlusModelsSimpleRunner * self = NULL;
	g_return_val_if_fail (display_title != NULL, NULL);
	g_return_val_if_fail (internal_title != NULL, NULL);
	g_return_val_if_fail (path != NULL, NULL);
	self = (ProtonPlusModelsSimpleRunner*) g_object_new (object_type, NULL);
	proton_plus_models_simple_runner_set_display_title (self, display_title);
	proton_plus_models_simple_runner_set_internal_title (self, internal_title);
	proton_plus_models_simple_runner_set_path (self, path);
	return self;
}

ProtonPlusModelsSimpleRunner*
proton_plus_models_simple_runner_new_with_path (const gchar* display_title,
                                                const gchar* internal_title,
                                                const gchar* path)
{
	return proton_plus_models_simple_runner_construct_with_path (PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, display_title, internal_title, path);
}

static gint
string_index_of (const gchar* self,
                 const gchar* needle,
                 gint start_index)
{
	gchar* _result_ = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	g_return_val_if_fail (needle != NULL, -1);
	_tmp0_ = strstr (((gchar*) self) + start_index, (gchar*) needle);
	_result_ = _tmp0_;
	_tmp1_ = _result_;
	if (_tmp1_ != NULL) {
		gchar* _tmp2_;
		_tmp2_ = _result_;
		result = (gint) (_tmp2_ - ((gchar*) self));
		return result;
	} else {
		result = -1;
		return result;
	}
}

static glong
string_strnlen (gchar* str,
                glong maxlen)
{
	gchar* end = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	glong result;
	_tmp0_ = memchr (str, 0, (gsize) maxlen);
	end = _tmp0_;
	_tmp1_ = end;
	if (_tmp1_ == NULL) {
		result = maxlen;
		return result;
	} else {
		gchar* _tmp2_;
		_tmp2_ = end;
		result = (glong) (_tmp2_ - str);
		return result;
	}
}

static gchar*
string_substring (const gchar* self,
                  glong offset,
                  glong len)
{
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	gchar* _tmp3_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	if (offset >= ((glong) 0)) {
		_tmp0_ = len >= ((glong) 0);
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		string_length = string_strnlen ((gchar*) self, offset + len);
	} else {
		gint _tmp1_;
		gint _tmp2_;
		_tmp1_ = strlen (self);
		_tmp2_ = _tmp1_;
		string_length = (glong) _tmp2_;
	}
	if (offset < ((glong) 0)) {
		offset = string_length + offset;
		g_return_val_if_fail (offset >= ((glong) 0), NULL);
	} else {
		g_return_val_if_fail (offset <= string_length, NULL);
	}
	if (len < ((glong) 0)) {
		len = string_length - offset;
	}
	g_return_val_if_fail ((offset + len) <= string_length, NULL);
	_tmp3_ = g_strndup (((gchar*) self) + offset, (gsize) len);
	result = _tmp3_;
	return result;
}

ProtonPlusModelsSimpleRunner*
proton_plus_models_simple_runner_construct_from_path (GType object_type,
                                                      const gchar* path,
                                                      GError** error)
{
	ProtonPlusModelsSimpleRunner * self = NULL;
	gchar* content = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* start_text = NULL;
	gchar* _tmp4_;
	gchar* end_text = NULL;
	gchar* _tmp5_;
	gint start_pos = 0;
	gint end_pos = 0;
	gchar* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	gint _tmp10_;
	gint _tmp11_;
	gchar* _tmp13_;
	const gchar* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	const gchar* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	gint _tmp24_;
	gint _tmp25_;
	gchar* _tmp27_;
	const gchar* _tmp28_;
	const gchar* _tmp29_;
	const gchar* _tmp30_;
	gint _tmp31_;
	gint _tmp32_;
	gchar* _tmp34_;
	const gchar* _tmp35_;
	const gchar* _tmp36_;
	const gchar* _tmp38_;
	gchar* _tmp39_;
	gchar* _tmp40_;
	GError* _inner_error0_ = NULL;
	g_return_val_if_fail (path != NULL, NULL);
	self = (ProtonPlusModelsSimpleRunner*) g_object_new (object_type, NULL);
	proton_plus_models_simple_runner_set_path (self, path);
	_tmp0_ = g_strdup_printf ("%s/compatibilitytool.vdf", path);
	_tmp1_ = _tmp0_;
	_tmp2_ = proton_plus_utils_filesystem_get_file_content (_tmp1_, FALSE);
	_tmp3_ = _tmp2_;
	_g_free0 (_tmp1_);
	content = _tmp3_;
	_tmp4_ = g_strdup ("");
	start_text = _tmp4_;
	_tmp5_ = g_strdup ("");
	end_text = _tmp5_;
	start_pos = 0;
	end_pos = 0;
	_tmp6_ = g_strdup ("display_name\" \"");
	_g_free0 (start_text);
	start_text = _tmp6_;
	_tmp7_ = content;
	_tmp8_ = start_text;
	_tmp9_ = start_text;
	_tmp10_ = strlen (_tmp9_);
	_tmp11_ = _tmp10_;
	start_pos = string_index_of (_tmp7_, _tmp8_, 0) + _tmp11_;
	if (start_pos == -1) {
		GError* _tmp12_;
		_tmp12_ = g_error_new (g_quark_from_string ("simple-runner"), 0, "Error parsing the file");
		_inner_error0_ = _tmp12_;
		g_propagate_error (error, _inner_error0_);
		_g_free0 (end_text);
		_g_free0 (start_text);
		_g_free0 (content);
		_g_object_unref0 (self);
		return NULL;
	}
	_tmp13_ = g_strdup ("\"");
	_g_free0 (end_text);
	end_text = _tmp13_;
	_tmp14_ = content;
	_tmp15_ = end_text;
	end_pos = string_index_of (_tmp14_, _tmp15_, start_pos);
	if (end_pos == -1) {
		GError* _tmp16_;
		_tmp16_ = g_error_new (g_quark_from_string ("simple-runner"), 0, "Error parsing the file");
		_inner_error0_ = _tmp16_;
		g_propagate_error (error, _inner_error0_);
		_g_free0 (end_text);
		_g_free0 (start_text);
		_g_free0 (content);
		_g_object_unref0 (self);
		return NULL;
	}
	_tmp17_ = content;
	_tmp18_ = string_substring (_tmp17_, (glong) start_pos, (glong) (end_pos - start_pos));
	_tmp19_ = _tmp18_;
	proton_plus_models_simple_runner_set_display_title (self, _tmp19_);
	_g_free0 (_tmp19_);
	_tmp20_ = g_strdup ("compat_tools\"");
	_g_free0 (start_text);
	start_text = _tmp20_;
	_tmp21_ = content;
	_tmp22_ = start_text;
	_tmp23_ = start_text;
	_tmp24_ = strlen (_tmp23_);
	_tmp25_ = _tmp24_;
	start_pos = string_index_of (_tmp21_, _tmp22_, 0) + _tmp25_;
	if (start_pos == -1) {
		GError* _tmp26_;
		_tmp26_ = g_error_new (g_quark_from_string ("simple-runner"), 0, "Error parsing the file");
		_inner_error0_ = _tmp26_;
		g_propagate_error (error, _inner_error0_);
		_g_free0 (end_text);
		_g_free0 (start_text);
		_g_free0 (content);
		_g_object_unref0 (self);
		return NULL;
	}
	_tmp27_ = g_strdup ("\"");
	_g_free0 (start_text);
	start_text = _tmp27_;
	_tmp28_ = content;
	_tmp29_ = start_text;
	_tmp30_ = start_text;
	_tmp31_ = strlen (_tmp30_);
	_tmp32_ = _tmp31_;
	start_pos = string_index_of (_tmp28_, _tmp29_, start_pos) + _tmp32_;
	if (start_pos == -1) {
		GError* _tmp33_;
		_tmp33_ = g_error_new (g_quark_from_string ("simple-runner"), 0, "Error parsing the file");
		_inner_error0_ = _tmp33_;
		g_propagate_error (error, _inner_error0_);
		_g_free0 (end_text);
		_g_free0 (start_text);
		_g_free0 (content);
		_g_object_unref0 (self);
		return NULL;
	}
	_tmp34_ = g_strdup ("\" // Internal name of this tool");
	_g_free0 (end_text);
	end_text = _tmp34_;
	_tmp35_ = content;
	_tmp36_ = end_text;
	end_pos = string_index_of (_tmp35_, _tmp36_, start_pos);
	if (end_pos == -1) {
		GError* _tmp37_;
		_tmp37_ = g_error_new (g_quark_from_string ("simple-runner"), 0, "Error parsing the file");
		_inner_error0_ = _tmp37_;
		g_propagate_error (error, _inner_error0_);
		_g_free0 (end_text);
		_g_free0 (start_text);
		_g_free0 (content);
		_g_object_unref0 (self);
		return NULL;
	}
	_tmp38_ = content;
	_tmp39_ = string_substring (_tmp38_, (glong) start_pos, (glong) (end_pos - start_pos));
	_tmp40_ = _tmp39_;
	proton_plus_models_simple_runner_set_internal_title (self, _tmp40_);
	_g_free0 (_tmp40_);
	_g_free0 (end_text);
	_g_free0 (start_text);
	_g_free0 (content);
	return self;
}

ProtonPlusModelsSimpleRunner*
proton_plus_models_simple_runner_new_from_path (const gchar* path,
                                                GError** error)
{
	return proton_plus_models_simple_runner_construct_from_path (PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, path, error);
}

const gchar*
proton_plus_models_simple_runner_get_display_title (ProtonPlusModelsSimpleRunner* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_display_title;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_simple_runner_set_display_title (ProtonPlusModelsSimpleRunner* self,
                                                    const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_simple_runner_get_display_title (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_display_title);
		self->priv->_display_title = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_simple_runner_properties[PROTON_PLUS_MODELS_SIMPLE_RUNNER_DISPLAY_TITLE_PROPERTY]);
	}
}

const gchar*
proton_plus_models_simple_runner_get_internal_title (ProtonPlusModelsSimpleRunner* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_internal_title;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_simple_runner_set_internal_title (ProtonPlusModelsSimpleRunner* self,
                                                     const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_simple_runner_get_internal_title (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_internal_title);
		self->priv->_internal_title = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_simple_runner_properties[PROTON_PLUS_MODELS_SIMPLE_RUNNER_INTERNAL_TITLE_PROPERTY]);
	}
}

const gchar*
proton_plus_models_simple_runner_get_path (ProtonPlusModelsSimpleRunner* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_path;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_simple_runner_set_path (ProtonPlusModelsSimpleRunner* self,
                                           const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_simple_runner_get_path (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_path);
		self->priv->_path = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_simple_runner_properties[PROTON_PLUS_MODELS_SIMPLE_RUNNER_PATH_PROPERTY]);
	}
}

static void
proton_plus_models_simple_runner_class_init (ProtonPlusModelsSimpleRunnerClass * klass,
                                             gpointer klass_data)
{
	proton_plus_models_simple_runner_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusModelsSimpleRunner_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_models_simple_runner_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_models_simple_runner_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_models_simple_runner_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_SIMPLE_RUNNER_DISPLAY_TITLE_PROPERTY, proton_plus_models_simple_runner_properties[PROTON_PLUS_MODELS_SIMPLE_RUNNER_DISPLAY_TITLE_PROPERTY] = g_param_spec_string ("display-title", "display-title", "display-title", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_SIMPLE_RUNNER_INTERNAL_TITLE_PROPERTY, proton_plus_models_simple_runner_properties[PROTON_PLUS_MODELS_SIMPLE_RUNNER_INTERNAL_TITLE_PROPERTY] = g_param_spec_string ("internal-title", "internal-title", "internal-title", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_SIMPLE_RUNNER_PATH_PROPERTY, proton_plus_models_simple_runner_properties[PROTON_PLUS_MODELS_SIMPLE_RUNNER_PATH_PROPERTY] = g_param_spec_string ("path", "path", "path", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_models_simple_runner_instance_init (ProtonPlusModelsSimpleRunner * self,
                                                gpointer klass)
{
	self->priv = proton_plus_models_simple_runner_get_instance_private (self);
}

static void
proton_plus_models_simple_runner_finalize (GObject * obj)
{
	ProtonPlusModelsSimpleRunner * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunner);
	_g_free0 (self->priv->_display_title);
	_g_free0 (self->priv->_internal_title);
	_g_free0 (self->priv->_path);
	G_OBJECT_CLASS (proton_plus_models_simple_runner_parent_class)->finalize (obj);
}

static GType
proton_plus_models_simple_runner_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsSimpleRunnerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_simple_runner_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsSimpleRunner), 0, (GInstanceInitFunc) proton_plus_models_simple_runner_instance_init, NULL };
	GType proton_plus_models_simple_runner_type_id;
	proton_plus_models_simple_runner_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusModelsSimpleRunner", &g_define_type_info, 0);
	ProtonPlusModelsSimpleRunner_private_offset = g_type_add_instance_private (proton_plus_models_simple_runner_type_id, sizeof (ProtonPlusModelsSimpleRunnerPrivate));
	return proton_plus_models_simple_runner_type_id;
}

GType
proton_plus_models_simple_runner_get_type (void)
{
	static volatile gsize proton_plus_models_simple_runner_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_simple_runner_type_id__once)) {
		GType proton_plus_models_simple_runner_type_id;
		proton_plus_models_simple_runner_type_id = proton_plus_models_simple_runner_get_type_once ();
		g_once_init_leave (&proton_plus_models_simple_runner_type_id__once, proton_plus_models_simple_runner_type_id);
	}
	return proton_plus_models_simple_runner_type_id__once;
}

static void
_vala_proton_plus_models_simple_runner_get_property (GObject * object,
                                                     guint property_id,
                                                     GValue * value,
                                                     GParamSpec * pspec)
{
	ProtonPlusModelsSimpleRunner * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunner);
	switch (property_id) {
		case PROTON_PLUS_MODELS_SIMPLE_RUNNER_DISPLAY_TITLE_PROPERTY:
		g_value_set_string (value, proton_plus_models_simple_runner_get_display_title (self));
		break;
		case PROTON_PLUS_MODELS_SIMPLE_RUNNER_INTERNAL_TITLE_PROPERTY:
		g_value_set_string (value, proton_plus_models_simple_runner_get_internal_title (self));
		break;
		case PROTON_PLUS_MODELS_SIMPLE_RUNNER_PATH_PROPERTY:
		g_value_set_string (value, proton_plus_models_simple_runner_get_path (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_models_simple_runner_set_property (GObject * object,
                                                     guint property_id,
                                                     const GValue * value,
                                                     GParamSpec * pspec)
{
	ProtonPlusModelsSimpleRunner * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunner);
	switch (property_id) {
		case PROTON_PLUS_MODELS_SIMPLE_RUNNER_DISPLAY_TITLE_PROPERTY:
		proton_plus_models_simple_runner_set_display_title (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_MODELS_SIMPLE_RUNNER_INTERNAL_TITLE_PROPERTY:
		proton_plus_models_simple_runner_set_internal_title (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_MODELS_SIMPLE_RUNNER_PATH_PROPERTY:
		proton_plus_models_simple_runner_set_path (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

