
/* 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 "ovirt-enum-types.h"
#include "govirt.h"
#include "ovirt-api.h"
#include "ovirt-cdrom.h"
#include "ovirt-cluster.h"
#include "ovirt-collection.h"
#include "ovirt-data-center.h"
#include "ovirt-disk.h"
#include "ovirt-error.h"
#include "ovirt-host.h"
#include "ovirt-options.h"
#include "ovirt-proxy.h"
#include "ovirt-resource.h"
#include "ovirt-rest-call-error.h"
#include "ovirt-storage-domain.h"
#include "ovirt-types.h"
#include "ovirt-vm-display.h"
#include "ovirt-vm.h"
#include "ovirt-vm-pool.h"

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

/* enumerations from "ovirt-disk.h" */

GType
ovirt_disk_content_type_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (OVIRT_DISK_CONTENT_TYPE_DATA), "OVIRT_DISK_CONTENT_TYPE_DATA", "data" },
        { C_ENUM (OVIRT_DISK_CONTENT_TYPE_HOSTED_ENGINE), "OVIRT_DISK_CONTENT_TYPE_HOSTED_ENGINE", "hosted-engine" },
        { C_ENUM (OVIRT_DISK_CONTENT_TYPE_HOSTED_ENGINE_CONFIGURATION), "OVIRT_DISK_CONTENT_TYPE_HOSTED_ENGINE_CONFIGURATION", "hosted-engine-configuration" },
        { C_ENUM (OVIRT_DISK_CONTENT_TYPE_HOSTED_ENGINE_METADATA), "OVIRT_DISK_CONTENT_TYPE_HOSTED_ENGINE_METADATA", "hosted-engine-metadata" },
        { C_ENUM (OVIRT_DISK_CONTENT_TYPE_HOSTED_ENGINE_SANLOCK), "OVIRT_DISK_CONTENT_TYPE_HOSTED_ENGINE_SANLOCK", "hosted-engine-sanlock" },
        { C_ENUM (OVIRT_DISK_CONTENT_TYPE_ISO), "OVIRT_DISK_CONTENT_TYPE_ISO", "iso" },
        { C_ENUM (OVIRT_DISK_CONTENT_TYPE_MEMORY_DUMP_VOLUME), "OVIRT_DISK_CONTENT_TYPE_MEMORY_DUMP_VOLUME", "memory-dump-volume" },
        { C_ENUM (OVIRT_DISK_CONTENT_TYPE_METADATA_VOLUME), "OVIRT_DISK_CONTENT_TYPE_METADATA_VOLUME", "metadata-volume" },
        { C_ENUM (OVIRT_DISK_CONTENT_TYPE_OVF_STORE), "OVIRT_DISK_CONTENT_TYPE_OVF_STORE", "ovf-store" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("OvirtDiskContentType"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "ovirt-error.h" */

GType
ovirt_error_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (OVIRT_ERROR_FAILED), "OVIRT_ERROR_FAILED", "failed" },
        { C_ENUM (OVIRT_ERROR_PARSING_FAILED), "OVIRT_ERROR_PARSING_FAILED", "parsing-failed" },
        { C_ENUM (OVIRT_ERROR_NOT_SUPPORTED), "OVIRT_ERROR_NOT_SUPPORTED", "not-supported" },
        { C_ENUM (OVIRT_ERROR_ACTION_FAILED), "OVIRT_ERROR_ACTION_FAILED", "action-failed" },
        { C_ENUM (OVIRT_ERROR_BAD_URI), "OVIRT_ERROR_BAD_URI", "bad-uri" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("OvirtError"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "ovirt-rest-call-error.h" */

GType
ovirt_rest_call_error_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (OVIRT_REST_CALL_ERROR_XML), "OVIRT_REST_CALL_ERROR_XML", "xml" },
        { C_ENUM (OVIRT_REST_CALL_ERROR_CANCELLED), "OVIRT_REST_CALL_ERROR_CANCELLED", "cancelled" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("OvirtRestCallError"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "ovirt-storage-domain.h" */

GType
ovirt_storage_domain_format_version_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (OVIRT_STORAGE_DOMAIN_FORMAT_VERSION_V1), "OVIRT_STORAGE_DOMAIN_FORMAT_VERSION_V1", "v1" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_FORMAT_VERSION_V2), "OVIRT_STORAGE_DOMAIN_FORMAT_VERSION_V2", "v2" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_FORMAT_VERSION_V3), "OVIRT_STORAGE_DOMAIN_FORMAT_VERSION_V3", "v3" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_FORMAT_VERSION_V4), "OVIRT_STORAGE_DOMAIN_FORMAT_VERSION_V4", "v4" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_FORMAT_VERSION_V5), "OVIRT_STORAGE_DOMAIN_FORMAT_VERSION_V5", "v5" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("OvirtStorageDomainFormatVersion"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
ovirt_storage_domain_state_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STATE_ACTIVE), "OVIRT_STORAGE_DOMAIN_STATE_ACTIVE", "active" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STATE_INACTIVE), "OVIRT_STORAGE_DOMAIN_STATE_INACTIVE", "inactive" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STATE_LOCKED), "OVIRT_STORAGE_DOMAIN_STATE_LOCKED", "locked" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STATE_MIXED), "OVIRT_STORAGE_DOMAIN_STATE_MIXED", "mixed" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STATE_UNATTACHED), "OVIRT_STORAGE_DOMAIN_STATE_UNATTACHED", "unattached" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STATE_MAINTENANCE), "OVIRT_STORAGE_DOMAIN_STATE_MAINTENANCE", "maintenance" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STATE_UNKNOWN), "OVIRT_STORAGE_DOMAIN_STATE_UNKNOWN", "unknown" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("OvirtStorageDomainState"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
ovirt_storage_domain_type_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (OVIRT_STORAGE_DOMAIN_TYPE_DATA), "OVIRT_STORAGE_DOMAIN_TYPE_DATA", "data" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_TYPE_ISO), "OVIRT_STORAGE_DOMAIN_TYPE_ISO", "iso" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_TYPE_EXPORT), "OVIRT_STORAGE_DOMAIN_TYPE_EXPORT", "export" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_TYPE_IMAGE), "OVIRT_STORAGE_DOMAIN_TYPE_IMAGE", "image" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("OvirtStorageDomainType"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
ovirt_storage_domain_storage_type_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_CINDER), "OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_CINDER", "cinder" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_FCP), "OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_FCP", "fcp" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_GLANCE), "OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_GLANCE", "glance" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_GLUSTERFS), "OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_GLUSTERFS", "glusterfs" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_ISCSI), "OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_ISCSI", "iscsi" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_LOCALFS), "OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_LOCALFS", "localfs" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_MANAGED_BLOCK_STORAGE), "OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_MANAGED_BLOCK_STORAGE", "managed-block-storage" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_NFS), "OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_NFS", "nfs" },
        { C_ENUM (OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_POSIXFS), "OVIRT_STORAGE_DOMAIN_STORAGE_TYPE_POSIXFS", "posixfs" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("OvirtStorageDomainStorageType"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "ovirt-vm-display.h" */

GType
ovirt_vm_display_type_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (OVIRT_VM_DISPLAY_SPICE), "OVIRT_VM_DISPLAY_SPICE", "spice" },
        { C_ENUM (OVIRT_VM_DISPLAY_VNC), "OVIRT_VM_DISPLAY_VNC", "vnc" },
        { C_ENUM (OVIRT_VM_DISPLAY_INVALID), "OVIRT_VM_DISPLAY_INVALID", "invalid" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("OvirtVmDisplayType"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "ovirt-vm.h" */

GType
ovirt_vm_state_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (OVIRT_VM_STATE_DOWN), "OVIRT_VM_STATE_DOWN", "down" },
        { C_ENUM (OVIRT_VM_STATE_UP), "OVIRT_VM_STATE_UP", "up" },
        { C_ENUM (OVIRT_VM_STATE_REBOOTING), "OVIRT_VM_STATE_REBOOTING", "rebooting" },
        { C_ENUM (OVIRT_VM_STATE_POWERING_UP), "OVIRT_VM_STATE_POWERING_UP", "powering_up" },
        { C_ENUM (OVIRT_VM_STATE_POWERED_DOWN), "OVIRT_VM_STATE_POWERED_DOWN", "powered_down" },
        { C_ENUM (OVIRT_VM_STATE_PAUSED), "OVIRT_VM_STATE_PAUSED", "paused" },
        { C_ENUM (OVIRT_VM_STATE_MIGRATING), "OVIRT_VM_STATE_MIGRATING", "migrating" },
        { C_ENUM (OVIRT_VM_STATE_UNKNOWN), "OVIRT_VM_STATE_UNKNOWN", "unknown" },
        { C_ENUM (OVIRT_VM_STATE_NOT_RESPONDING), "OVIRT_VM_STATE_NOT_RESPONDING", "not_responding" },
        { C_ENUM (OVIRT_VM_STATE_WAIT_FOR_LAUNCH), "OVIRT_VM_STATE_WAIT_FOR_LAUNCH", "wait_for_launch" },
        { C_ENUM (OVIRT_VM_STATE_REBOOT_IN_PROGRESS), "OVIRT_VM_STATE_REBOOT_IN_PROGRESS", "reboot_in_progress" },
        { C_ENUM (OVIRT_VM_STATE_SAVING_STATE), "OVIRT_VM_STATE_SAVING_STATE", "saving_state" },
        { C_ENUM (OVIRT_VM_STATE_RESTORING_STATE), "OVIRT_VM_STATE_RESTORING_STATE", "restoring_state" },
        { C_ENUM (OVIRT_VM_STATE_SUSPENDED), "OVIRT_VM_STATE_SUSPENDED", "suspended" },
        { C_ENUM (OVIRT_VM_STATE_IMAGE_LOCKED), "OVIRT_VM_STATE_IMAGE_LOCKED", "image_locked" },
        { C_ENUM (OVIRT_VM_STATE_POWERING_DOWN), "OVIRT_VM_STATE_POWERING_DOWN", "powering_down" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("OvirtVmState"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* Generated data ends here */

