~oem-solutions-group/unity-2d/clutter-1.0

« back to all changes in this revision

Viewing changes to clutter/cogl/cogl/cogl-enum-types.c.in

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2010-03-21 13:27:56 UTC
  • mto: (2.1.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100321132756-nf8yd30yxo3zzwcm
Tags: upstream-1.2.2
ImportĀ upstreamĀ versionĀ 1.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*** BEGIN file-header ***/
 
2
#include "cogl-enum-types.h"
 
3
#include "cogl.h"
 
4
/*** END file-header ***/
 
5
 
 
6
/*** BEGIN file-production ***/
 
7
 
 
8
/* enumerations from "@filename@" */
 
9
#include "@filename@"
 
10
 
 
11
/*** END file-production ***/
 
12
 
 
13
/*** BEGIN value-header ***/
 
14
GType
 
15
@enum_name@_get_type (void)
 
16
{
 
17
  static volatile gsize g_enum_type_id__volatile = 0;
 
18
 
 
19
  if (g_once_init_enter (&g_enum_type_id__volatile))
 
20
    {
 
21
      static const G@Type@Value values[] = {
 
22
/*** END value-header ***/
 
23
 
 
24
/*** BEGIN value-production ***/
 
25
        { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
 
26
/*** END value-production ***/
 
27
 
 
28
/*** BEGIN value-tail ***/
 
29
        { 0, NULL, NULL }
 
30
      };
 
31
      GType g_enum_type_id;
 
32
 
 
33
      g_enum_type_id =
 
34
        g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
 
35
 
 
36
      g_once_init_leave (&g_enum_type_id__volatile, g_enum_type_id);
 
37
    }
 
38
 
 
39
  return g_enum_type_id__volatile;
 
40
}
 
41
/*** END value-tail ***/