Git init
[profile/ivi/libsoup2.4.git] / libsoup / soup-enum-types.c.tmpl
1 /*** BEGIN file-header ***/
2 #include "soup.h"
3 #define LIBSOUP_USE_UNSTABLE_REQUEST_API
4 #include "soup-cache.h"
5 #include "soup-requester.h"
6 /*** END file-header ***/
7
8 /*** BEGIN file-production ***/
9 /* enumerations from "@filename@" */
10 /*** END file-production ***/
11
12 /*** BEGIN value-header ***/
13 GType
14 @enum_name@_get_type (void)
15 {
16         static GType etype = 0;
17         if (G_UNLIKELY (etype == 0)) {
18                 static const G@Type@Value values[] = {
19 /*** END value-header ***/
20
21 /*** BEGIN value-production ***/
22                         { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
23 /*** END value-production ***/
24
25 /*** BEGIN value-tail ***/
26                         { 0, NULL, NULL }
27                 };
28                 etype = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
29         }
30         return etype;
31 }
32
33 /*** END value-tail ***/
34
35 /*** BEGIN file-tail ***/
36 /*** END file-tail ***/