
/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */

#include "polkitenumtypes.h"
#include "polkitauthorityfeatures.h"
#include "polkitcheckauthorizationflags.h"
#include "polkiterror.h"
#include "polkitimplicitauthorization.h"

#define C_ENUM(v) ((gint) v)
#define C_FLAGS(v) ((guint) v)

/* enumerations from "polkitauthorityfeatures.h" */

GType
polkit_authority_features_get_type (void)
{
static gsize gtype_id = 0;
static const GFlagsValue values[] = {
    { C_FLAGS(POLKIT_AUTHORITY_FEATURES_NONE), "POLKIT_AUTHORITY_FEATURES_NONE", "none" },
    { C_FLAGS(POLKIT_AUTHORITY_FEATURES_TEMPORARY_AUTHORIZATION), "POLKIT_AUTHORITY_FEATURES_TEMPORARY_AUTHORIZATION", "temporary-authorization" },
{ 0, NULL, NULL }
        };
        if (g_once_init_enter (&gtype_id)) {
            GType new_type = g_flags_register_static (g_intern_static_string ("PolkitAuthorityFeatures"), values);
            g_once_init_leave (&gtype_id, new_type);
        }
        return (GType) gtype_id;
        }

/* enumerations from "polkitcheckauthorizationflags.h" */

GType
polkit_check_authorization_flags_get_type (void)
{
static gsize gtype_id = 0;
static const GFlagsValue values[] = {
    { C_FLAGS(POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE), "POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE", "none" },
    { C_FLAGS(POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION), "POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION", "allow-user-interaction" },
{ 0, NULL, NULL }
        };
        if (g_once_init_enter (&gtype_id)) {
            GType new_type = g_flags_register_static (g_intern_static_string ("PolkitCheckAuthorizationFlags"), values);
            g_once_init_leave (&gtype_id, new_type);
        }
        return (GType) gtype_id;
        }

/* enumerations from "polkiterror.h" */

GType
polkit_error_get_type (void)
{
static gsize gtype_id = 0;
static const GEnumValue values[] = {
    { C_ENUM(POLKIT_ERROR_FAILED), "POLKIT_ERROR_FAILED", "failed" },
    { C_ENUM(POLKIT_ERROR_CANCELLED), "POLKIT_ERROR_CANCELLED", "cancelled" },
    { C_ENUM(POLKIT_ERROR_NOT_SUPPORTED), "POLKIT_ERROR_NOT_SUPPORTED", "not-supported" },
    { C_ENUM(POLKIT_ERROR_NOT_AUTHORIZED), "POLKIT_ERROR_NOT_AUTHORIZED", "not-authorized" },
{ 0, NULL, NULL }
        };
        if (g_once_init_enter (&gtype_id)) {
            GType new_type = g_enum_register_static (g_intern_static_string ("PolkitError"), values);
            g_once_init_leave (&gtype_id, new_type);
        }
        return (GType) gtype_id;
        }

/* enumerations from "polkitimplicitauthorization.h" */

GType
polkit_implicit_authorization_get_type (void)
{
static gsize gtype_id = 0;
static const GEnumValue values[] = {
    { C_ENUM(POLKIT_IMPLICIT_AUTHORIZATION_UNKNOWN), "POLKIT_IMPLICIT_AUTHORIZATION_UNKNOWN", "unknown" },
    { C_ENUM(POLKIT_IMPLICIT_AUTHORIZATION_NOT_AUTHORIZED), "POLKIT_IMPLICIT_AUTHORIZATION_NOT_AUTHORIZED", "not-authorized" },
    { C_ENUM(POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED), "POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED", "authentication-required" },
    { C_ENUM(POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED), "POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED", "administrator-authentication-required" },
    { C_ENUM(POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED_RETAINED), "POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED_RETAINED", "authentication-required-retained" },
    { C_ENUM(POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED_RETAINED), "POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED_RETAINED", "administrator-authentication-required-retained" },
    { C_ENUM(POLKIT_IMPLICIT_AUTHORIZATION_AUTHORIZED), "POLKIT_IMPLICIT_AUTHORIZATION_AUTHORIZED", "authorized" },
{ 0, NULL, NULL }
        };
        if (g_once_init_enter (&gtype_id)) {
            GType new_type = g_enum_register_static (g_intern_static_string ("PolkitImplicitAuthorization"), values);
            g_once_init_leave (&gtype_id, new_type);
        }
        return (GType) gtype_id;
        }

/* Generated data ends here */

