~elementary-os/elementaryos/os-patch-at-spi2-core-xenial

« back to all changes in this revision

Viewing changes to atspi/atspi-enum-types.c.template

  • Committer: RabbitBot
  • Date: 2016-11-16 09:38:52 UTC
  • Revision ID: rabbitbot@elementary.io-20161116093852-xn6hcgpg5y25xooo
Initial import, version 2.18.3-4ubuntu1

Show diffs side-by-side

added added

removed removed

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