/* i-launch-option.c generated by valac 0.56.19, the Vala compiler
 * generated from i-launch-option.vala, do not modify */

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

static GType proton_plus_widgets_games_launch_options_editor_ilaunch_option_get_type_once (void);

static GType
proton_plus_widgets_games_launch_options_editor_launch_line_type_get_type_once (void)
{
	static const GEnumValue values[] = {{PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT", "environment"}, {PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_WRAPPER, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_WRAPPER", "wrapper"}, {PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_WRAPPER_ARGUMENT, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_WRAPPER_ARGUMENT", "wrapper-argument"}, {PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_COMMAND, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_COMMAND", "command"}, {PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ARGUMENT, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ARGUMENT", "argument"}, {PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ADDITIONAL, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ADDITIONAL", "additional"}, {0, NULL, NULL}};
	GType proton_plus_widgets_games_launch_options_editor_launch_line_type_type_id;
	proton_plus_widgets_games_launch_options_editor_launch_line_type_type_id = g_enum_register_static ("ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType", values);
	return proton_plus_widgets_games_launch_options_editor_launch_line_type_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_launch_line_type_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_launch_line_type_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_launch_line_type_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_launch_line_type_type_id;
		proton_plus_widgets_games_launch_options_editor_launch_line_type_type_id = proton_plus_widgets_games_launch_options_editor_launch_line_type_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_launch_line_type_type_id__once, proton_plus_widgets_games_launch_options_editor_launch_line_type_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_launch_line_type_type_id__once;
}

void
proton_plus_widgets_games_launch_options_editor_ilaunch_option_add_child (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* self,
                                                                          ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* child)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_ILAUNCH_OPTION_GET_INTERFACE (self);
	if (_iface_->add_child) {
		_iface_->add_child (self, child);
	}
}

void
proton_plus_widgets_games_launch_options_editor_ilaunch_option_parse_tokens (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* self,
                                                                             gchar** tokens,
                                                                             gint tokens_length1,
                                                                             gboolean* consumed,
                                                                             gint consumed_length1)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_ILAUNCH_OPTION_GET_INTERFACE (self);
	if (_iface_->parse_tokens) {
		_iface_->parse_tokens (self, tokens, tokens_length1, consumed, consumed_length1);
	}
}

void
proton_plus_widgets_games_launch_options_editor_ilaunch_option_clear (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_ILAUNCH_OPTION_GET_INTERFACE (self);
	if (_iface_->clear) {
		_iface_->clear (self);
	}
}

void
proton_plus_widgets_games_launch_options_editor_ilaunch_option_append_command_segments (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* self,
                                                                                        GeeLinkedList* segments)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_ILAUNCH_OPTION_GET_INTERFACE (self);
	if (_iface_->append_command_segments) {
		_iface_->append_command_segments (self, segments);
	}
}

gboolean
proton_plus_widgets_games_launch_options_editor_ilaunch_option_is_active (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface* _iface_;
	g_return_val_if_fail (self != NULL, FALSE);
	_iface_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_ILAUNCH_OPTION_GET_INTERFACE (self);
	if (_iface_->is_active) {
		return _iface_->is_active (self);
	}
	return FALSE;
}

ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType
proton_plus_widgets_games_launch_options_editor_ilaunch_option_get_line_type (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_ILAUNCH_OPTION_GET_INTERFACE (self);
	if (_iface_->get_line_type) {
		return _iface_->get_line_type (self);
	}
	return 0;
}

void
proton_plus_widgets_games_launch_options_editor_ilaunch_option_set_line_type (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* self,
                                                                              ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_ILAUNCH_OPTION_GET_INTERFACE (self);
	if (_iface_->set_line_type) {
		_iface_->set_line_type (self, value);
	}
}

gboolean
proton_plus_widgets_games_launch_options_editor_ilaunch_option_get_is_advanced (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface* _iface_;
	g_return_val_if_fail (self != NULL, FALSE);
	_iface_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_ILAUNCH_OPTION_GET_INTERFACE (self);
	if (_iface_->get_is_advanced) {
		return _iface_->get_is_advanced (self);
	}
	return FALSE;
}

void
proton_plus_widgets_games_launch_options_editor_ilaunch_option_set_is_advanced (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* self,
                                                                                gboolean value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_ILAUNCH_OPTION_GET_INTERFACE (self);
	if (_iface_->set_is_advanced) {
		_iface_->set_is_advanced (self, value);
	}
}

static void
proton_plus_widgets_games_launch_options_editor_ilaunch_option_default_init (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface * iface,
                                                                             gpointer iface_data)
{
	g_object_interface_install_property (iface, g_param_spec_enum ("line-type", "line-type", "line-type", PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_LINE_TYPE, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_interface_install_property (iface, g_param_spec_boolean ("is-advanced", "is-advanced", "is-advanced", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static GType
proton_plus_widgets_games_launch_options_editor_ilaunch_option_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOptionIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_launch_options_editor_ilaunch_option_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id;
	proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id = g_type_register_static (G_TYPE_INTERFACE, "ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id, G_TYPE_OBJECT);
	return proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_ilaunch_option_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id;
		proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id = proton_plus_widgets_games_launch_options_editor_ilaunch_option_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id__once, proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_ilaunch_option_type_id__once;
}

