summaryrefslogtreecommitdiff
path: root/libgupnp/gupnp-enums.c.template
diff options
context:
space:
mode:
Diffstat (limited to 'libgupnp/gupnp-enums.c.template')
-rw-r--r--libgupnp/gupnp-enums.c.template33
1 files changed, 33 insertions, 0 deletions
diff --git a/libgupnp/gupnp-enums.c.template b/libgupnp/gupnp-enums.c.template
new file mode 100644
index 0000000..3ce5fa4
--- /dev/null
+++ b/libgupnp/gupnp-enums.c.template
@@ -0,0 +1,33 @@
+/*** BEGIN file-header ***/
+#include "gupnp-enums.h"
+
+/*** END file-header ***/
+/*** BEGIN file-production ***/
+/* enumerations from "@filename@" */
+#include "@filename@"
+/*** END file-production ***/
+/*** BEGIN value-header ***/
+GType
+@enum_name@_get_type (void)
+{
+ static GType type = 0;
+
+
+ if (!type)
+ {
+ static const G@Type@Value _@enum_name@_values[] = {
+/*** END value-header ***/
+/*** BEGIN value-production ***/
+ { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
+/*** END value-production ***/
+/*** BEGIN value-tail ***/
+ { 0, NULL, NULL }
+ };
+
+ type = g_@type@_register_static ("@EnumName@", _@enum_name@_values);
+ }
+
+
+ return type;
+}
+/*** END value-tail ***/