summaryrefslogtreecommitdiff
path: root/daemon/gdm-session-worker-enum-types.c.in
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2019-06-24 14:48:23 -0400
committerRay Strode <rstrode@redhat.com>2019-06-27 15:55:25 -0400
commit6a8f7bc50e8d03977b5b371f64921d1194b11ae3 (patch)
tree5d6cd42d7eb019901b906fbd6cfb723f07572672 /daemon/gdm-session-worker-enum-types.c.in
parentd461213b5e529e440c4525c1c0e16889a11cc72c (diff)
downloadgdm-6a8f7bc50e8d03977b5b371f64921d1194b11ae3.tar.gz
session-worker: expose worker state enum to type system
We're going to need to access the worker state as a property on the worker object. This commit hooks it up to glib-mkenums so the requisite goo can get generated
Diffstat (limited to 'daemon/gdm-session-worker-enum-types.c.in')
-rw-r--r--daemon/gdm-session-worker-enum-types.c.in42
1 files changed, 42 insertions, 0 deletions
diff --git a/daemon/gdm-session-worker-enum-types.c.in b/daemon/gdm-session-worker-enum-types.c.in
new file mode 100644
index 00000000..c0286907
--- /dev/null
+++ b/daemon/gdm-session-worker-enum-types.c.in
@@ -0,0 +1,42 @@
+/*** BEGIN file-header ***/
+
+#include <glib-object.h>
+
+/*** END file-header ***/
+
+/*** BEGIN file-production ***/
+#include "@filename@"
+/* enumerations from "@filename@" */
+/*** END file-production ***/
+
+/*** BEGIN value-header ***/
+GType @enum_name@_get_type (void) G_GNUC_CONST;
+
+GType
+@enum_name@_get_type (void)
+{
+ static GType etype = 0;
+
+ if (G_UNLIKELY(etype == 0)) {
+ static const G@Type@Value values[] = {
+/*** END value-header ***/
+
+/*** BEGIN value-production ***/
+ { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
+/*** END value-production ***/
+
+/*** BEGIN value-tail ***/
+ { 0, NULL, NULL }
+ };
+
+ etype = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
+ }
+
+ return etype;
+}
+
+/*** END value-tail ***/
+
+/*** BEGIN file-tail ***/
+ /**/
+/*** END file-tail ***/