mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-31 11:28:31 +00:00
This should always be defined and including config.h is a requirement. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
38 lines
771 B
Cheetah
38 lines
771 B
Cheetah
/*** BEGIN file-header ***/
|
|
#include <config.h>
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include "spice-server-enums.h"
|
|
#include "spice-server.h"
|
|
|
|
/*** END file-header ***/
|
|
|
|
/*** BEGIN value-header ***/
|
|
static const G@Type@Value _@enum_name@_values[] = {
|
|
/*** END value-header ***/
|
|
|
|
/*** BEGIN value-production ***/
|
|
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
|
|
/*** END value-production ***/
|
|
|
|
/*** BEGIN value-tail ***/
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
GType
|
|
@enum_name@_get_type (void)
|
|
{
|
|
static GType type = 0;
|
|
static volatile gsize type_volatile = 0;
|
|
|
|
if (g_once_init_enter(&type_volatile)) {
|
|
type = g_@type@_register_static ("@EnumName@", _@enum_name@_values);
|
|
g_once_init_leave(&type_volatile, type);
|
|
}
|
|
|
|
return type;
|
|
}
|
|
|
|
/*** END value-tail ***/
|