validate: cleanup the use of GST_VALIDATE_API on Windows
[platform/upstream/gstreamer.git] / subprojects / gst-devtools / validate / gst / validate / gst-validate-enum-types.c.template
1 /*** BEGIN file-header ***/
2
3 #ifdef HAVE_CONFIG_H
4 #  include "config.h"
5 #endif
6
7 #include "gst-validate-enum-types.h"
8 #include <gst/validate/validate.h>
9 #define C_ENUM(v) ((gint) v)
10 #define C_FLAGS(v) ((guint) v)
11
12 /*** END file-header ***/
13
14 /*** BEGIN file-production ***/
15 /* enumerations from "@basename@" */
16 /*** END file-production ***/
17
18 /*** BEGIN value-header ***/
19 GType
20 @enum_name@_get_type (void)
21 {
22   static gsize id = 0;
23   static const G@Type@Value values[] = {
24 /*** END value-header ***/
25
26 /*** BEGIN value-production ***/
27     { C_@TYPE@(@VALUENAME@), "@VALUENAME@", "@valuenick@" },
28 /*** END value-production ***/
29
30 /*** BEGIN value-tail ***/
31     { 0, NULL, NULL }
32   };
33
34   if (g_once_init_enter (&id)) {
35     GType tmp = g_@type@_register_static ("@EnumName@", values);
36     g_once_init_leave (&id, tmp);
37   }
38
39   return (GType) id;
40 }
41
42 /*** END value-tail ***/
43
44 /*** BEGIN file-tail ***/
45
46 /*** END file-tail ***/