• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*** BEGIN file-header ***/
2#include "config.h"
3#include "glib-enumtypes.h"
4#include <glib-object.h>
5
6/*** END file-header ***/
7
8/*** BEGIN file-production ***/
9/* enumerations from "@filename@" */
10/*** END file-production ***/
11
12/*** BEGIN value-header ***/
13GType
14@enum_name@_get_type (void)
15{
16  static gsize static_g_define_type_id = 0;
17
18  if (g_once_init_enter (&static_g_define_type_id))
19    {
20      static const G@Type@Value values[] = {
21/*** END value-header ***/
22
23/*** BEGIN value-production ***/
24        { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
25/*** END value-production ***/
26
27/*** BEGIN value-tail ***/
28        { 0, NULL, NULL }
29      };
30      GType g_define_type_id =
31        g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
32      g_once_init_leave (&static_g_define_type_id, g_define_type_id);
33    }
34
35  return static_g_define_type_id;
36}
37
38/*** END value-tail ***/
39