1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-10 02:21:18 +00:00
Purism-Calls/tests/mock/lfb/lfb-enums.c

50 lines
1.8 KiB
C
Raw Normal View History

/* 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 "lfb-enums.h"
#include "lfb-event.h"
#define C_ENUM(v) ((gint) v)
#define C_FLAGS(v) ((guint) v)
/* enumerations from "lfb-event.h" */
GType
lfb_event_state_get_type (void)
{
static gsize gtype_id = 0;
static const GEnumValue values[] = {
{ C_ENUM(LFB_EVENT_STATE_ERRORED), "LFB_EVENT_STATE_ERRORED", "errored" },
{ C_ENUM(LFB_EVENT_STATE_NONE), "LFB_EVENT_STATE_NONE", "none" },
{ C_ENUM(LFB_EVENT_STATE_RUNNING), "LFB_EVENT_STATE_RUNNING", "running" },
{ C_ENUM(LFB_EVENT_STATE_ENDED), "LFB_EVENT_STATE_ENDED", "ended" },
{ 0, NULL, NULL }
};
if (g_once_init_enter (&gtype_id)) {
GType new_type = g_enum_register_static (g_intern_static_string ("LfbEventState"), values);
g_once_init_leave (&gtype_id, new_type);
}
return (GType) gtype_id;
}
GType
lfb_event_end_reason_get_type (void)
{
static gsize gtype_id = 0;
static const GEnumValue values[] = {
{ C_ENUM(LFB_EVENT_END_REASON_NOT_FOUND), "LFB_EVENT_END_REASON_NOT_FOUND", "not-found" },
{ C_ENUM(LFB_EVENT_END_REASON_NATURAL), "LFB_EVENT_END_REASON_NATURAL", "natural" },
{ C_ENUM(LFB_EVENT_END_REASON_EXPIRED), "LFB_EVENT_END_REASON_EXPIRED", "expired" },
{ C_ENUM(LFB_EVENT_END_REASON_EXPLICIT), "LFB_EVENT_END_REASON_EXPLICIT", "explicit" },
{ 0, NULL, NULL }
};
if (g_once_init_enter (&gtype_id)) {
GType new_type = g_enum_register_static (g_intern_static_string ("LfbEventEndReason"), values);
g_once_init_leave (&gtype_id, new_type);
}
return (GType) gtype_id;
}
/* Generated data ends here */