gioenumtypes.c.template 915 Bytes
Newer Older
1
/*** BEGIN file-header ***/
2 3
#include "config.h"
#include "gioenumtypes.h"
4 5 6 7 8 9 10 11 12 13 14 15
#include <gio.h>

/*** END file-header ***/

/*** BEGIN file-production ***/
/* enumerations from "@filename@" */
/*** END file-production ***/

/*** BEGIN value-header ***/
GType
@enum_name@_get_type (void)
{
16
  static volatile gsize g_define_type_id__volatile = 0;
17

18 19 20
  if (g_once_init_enter (&g_define_type_id__volatile))
    {
      static const G@Type@Value values[] = {
21 22 23
/*** END value-header ***/

/*** BEGIN value-production ***/
24
        { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
25 26 27
/*** END value-production ***/

/*** BEGIN value-tail ***/
28 29 30
        { 0, NULL, NULL }
      };
      GType g_define_type_id =
Behdad Esfahbod's avatar
Behdad Esfahbod committed
31
        g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
32
      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
33
    }
34 35

  return g_define_type_id__volatile;
36 37 38
}

/*** END value-tail ***/