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

#include "protonplus_core.h"
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <glib/gi18n-lib.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_return_code_get_type_once (void)
{
	static const GEnumValue values[] = {{PROTON_PLUS_RETURN_CODE_REQUEST_FAILED, "PROTON_PLUS_RETURN_CODE_REQUEST_FAILED", "request-failed"}, {PROTON_PLUS_RETURN_CODE_INVALID_DATA, "PROTON_PLUS_RETURN_CODE_INVALID_DATA", "invalid-data"}, {PROTON_PLUS_RETURN_CODE_DOWNLOAD_FAILED, "PROTON_PLUS_RETURN_CODE_DOWNLOAD_FAILED", "download-failed"}, {PROTON_PLUS_RETURN_CODE_FILESYSTEM_ERROR, "PROTON_PLUS_RETURN_CODE_FILESYSTEM_ERROR", "filesystem-error"}, {PROTON_PLUS_RETURN_CODE_OPERATION_IN_PROGRESS, "PROTON_PLUS_RETURN_CODE_OPERATION_IN_PROGRESS", "operation-in-progress"}, {PROTON_PLUS_RETURN_CODE_RUNNER_ALREADY_INSTALLED, "PROTON_PLUS_RETURN_CODE_RUNNER_ALREADY_INSTALLED", "runner-already-installed"}, {PROTON_PLUS_RETURN_CODE_RUNNER_NOT_INSTALLED, "PROTON_PLUS_RETURN_CODE_RUNNER_NOT_INSTALLED", "runner-not-installed"}, {PROTON_PLUS_RETURN_CODE_INVALID_CONFIGURATION, "PROTON_PLUS_RETURN_CODE_INVALID_CONFIGURATION", "invalid-configuration"}, {PROTON_PLUS_RETURN_CODE_UNSUPPORTED_OPERATION, "PROTON_PLUS_RETURN_CODE_UNSUPPORTED_OPERATION", "unsupported-operation"}, {PROTON_PLUS_RETURN_CODE_RELEASES_LOADED, "PROTON_PLUS_RETURN_CODE_RELEASES_LOADED", "releases-loaded"}, {PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE, "PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE", "nothing-to-update"}, {PROTON_PLUS_RETURN_CODE_RUNNERS_IN_USE, "PROTON_PLUS_RETURN_CODE_RUNNERS_IN_USE", "runners-in-use"}, {PROTON_PLUS_RETURN_CODE_RUNNERS_UPDATED, "PROTON_PLUS_RETURN_CODE_RUNNERS_UPDATED", "runners-updated"}, {PROTON_PLUS_RETURN_CODE_RUNNER_UPDATED, "PROTON_PLUS_RETURN_CODE_RUNNER_UPDATED", "runner-updated"}, {PROTON_PLUS_RETURN_CODE_RUNNER_INSTALLED, "PROTON_PLUS_RETURN_CODE_RUNNER_INSTALLED", "runner-installed"}, {PROTON_PLUS_RETURN_CODE_RUNNER_REMOVED, "PROTON_PLUS_RETURN_CODE_RUNNER_REMOVED", "runner-removed"}, {PROTON_PLUS_RETURN_CODE_VALID_REQUEST, "PROTON_PLUS_RETURN_CODE_VALID_REQUEST", "valid-request"}, {PROTON_PLUS_RETURN_CODE_CONNECTION_ISSUE, "PROTON_PLUS_RETURN_CODE_CONNECTION_ISSUE", "connection-issue"}, {PROTON_PLUS_RETURN_CODE_CONNECTION_REFUSED, "PROTON_PLUS_RETURN_CODE_CONNECTION_REFUSED", "connection-refused"}, {PROTON_PLUS_RETURN_CODE_CONNECTION_UNKNOWN, "PROTON_PLUS_RETURN_CODE_CONNECTION_UNKNOWN", "connection-unknown"}, {PROTON_PLUS_RETURN_CODE_API_LIMIT_REACHED, "PROTON_PLUS_RETURN_CODE_API_LIMIT_REACHED", "api-limit-reached"}, {PROTON_PLUS_RETURN_CODE_INVALID_ACCESS_TOKEN, "PROTON_PLUS_RETURN_CODE_INVALID_ACCESS_TOKEN", "invalid-access-token"}, {PROTON_PLUS_RETURN_CODE_TLS_HANDSHAKE_ERROR, "PROTON_PLUS_RETURN_CODE_TLS_HANDSHAKE_ERROR", "tls-handshake-error"}, {PROTON_PLUS_RETURN_CODE_UNSUPPORTED_EXTENSION, "PROTON_PLUS_RETURN_CODE_UNSUPPORTED_EXTENSION", "unsupported-extension"}, {PROTON_PLUS_RETURN_CODE_EXTRACTION_FAILED, "PROTON_PLUS_RETURN_CODE_EXTRACTION_FAILED", "extraction-failed"}, {PROTON_PLUS_RETURN_CODE_INCOMPATIBLE_VARIANT, "PROTON_PLUS_RETURN_CODE_INCOMPATIBLE_VARIANT", "incompatible-variant"}, {0, NULL, NULL}};
	GType proton_plus_return_code_type_id;
	proton_plus_return_code_type_id = g_enum_register_static ("ProtonPlusReturnCode", values);
	return proton_plus_return_code_type_id;
}

GType
proton_plus_return_code_get_type (void)
{
	static volatile gsize proton_plus_return_code_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_return_code_type_id__once)) {
		GType proton_plus_return_code_type_id;
		proton_plus_return_code_type_id = proton_plus_return_code_get_type_once ();
		g_once_init_leave (&proton_plus_return_code_type_id__once, proton_plus_return_code_type_id);
	}
	return proton_plus_return_code_type_id__once;
}

gchar*
proton_plus_get_return_code_message (ProtonPlusReturnCode code)
{
	gchar* result;
	switch (code) {
		case PROTON_PLUS_RETURN_CODE_REQUEST_FAILED:
		{
			gchar* _tmp0_;
			_tmp0_ = g_strdup (_ ("The request could not be completed."));
			result = _tmp0_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_INVALID_DATA:
		{
			gchar* _tmp1_;
			_tmp1_ = g_strdup (_ ("The required data is invalid or incomplete."));
			result = _tmp1_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_DOWNLOAD_FAILED:
		{
			gchar* _tmp2_;
			_tmp2_ = g_strdup (_ ("The download failed."));
			result = _tmp2_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_FILESYSTEM_ERROR:
		{
			gchar* _tmp3_;
			_tmp3_ = g_strdup (_ ("A filesystem operation failed."));
			result = _tmp3_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_OPERATION_IN_PROGRESS:
		{
			gchar* _tmp4_;
			_tmp4_ = g_strdup (_ ("This compatibility tool is already being processed."));
			result = _tmp4_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_RUNNER_ALREADY_INSTALLED:
		{
			gchar* _tmp5_;
			_tmp5_ = g_strdup (_ ("This compatibility tool is already installed."));
			result = _tmp5_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_RUNNER_NOT_INSTALLED:
		{
			gchar* _tmp6_;
			_tmp6_ = g_strdup (_ ("This compatibility tool is not installed."));
			result = _tmp6_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_INVALID_CONFIGURATION:
		{
			gchar* _tmp7_;
			_tmp7_ = g_strdup (_ ("This compatibility tool is not configured correctly."));
			result = _tmp7_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_UNSUPPORTED_OPERATION:
		{
			gchar* _tmp8_;
			_tmp8_ = g_strdup (_ ("This operation is not supported for this compatibility tool."));
			result = _tmp8_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_CONNECTION_ISSUE:
		case PROTON_PLUS_RETURN_CODE_CONNECTION_REFUSED:
		case PROTON_PLUS_RETURN_CODE_CONNECTION_UNKNOWN:
		{
			gchar* _tmp9_;
			_tmp9_ = g_strdup (_ ("Unable to reach the API."));
			result = _tmp9_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_API_LIMIT_REACHED:
		{
			gchar* _tmp10_;
			_tmp10_ = g_strdup (_ ("API limit reached."));
			result = _tmp10_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_INVALID_ACCESS_TOKEN:
		{
			gchar* _tmp11_;
			_tmp11_ = g_strdup (_ ("Invalid access token."));
			result = _tmp11_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_TLS_HANDSHAKE_ERROR:
		{
			gchar* _tmp12_;
			_tmp12_ = g_strdup (_ ("A secure connection could not be established."));
			result = _tmp12_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_UNSUPPORTED_EXTENSION:
		{
			gchar* _tmp13_;
			_tmp13_ = g_strdup (_ ("This archive format is not supported."));
			result = _tmp13_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_EXTRACTION_FAILED:
		{
			gchar* _tmp14_;
			_tmp14_ = g_strdup (_ ("The archive could not be extracted."));
			result = _tmp14_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_INCOMPATIBLE_VARIANT:
		{
			gchar* _tmp15_;
			_tmp15_ = g_strdup (_ ("The selected variant is not compatible with this system."));
			result = _tmp15_;
			return result;
		}
		case PROTON_PLUS_RETURN_CODE_RUNNERS_IN_USE:
		{
			gchar* _tmp16_;
			_tmp16_ = g_strdup (_ ("A compatibility tool is currently in use. Close the running game and t" \
"ry again."));
			result = _tmp16_;
			return result;
		}
		default:
		{
			gchar* _tmp17_;
			_tmp17_ = g_strdup (_ ("The operation could not be completed."));
			result = _tmp17_;
			return result;
		}
	}
}

