aboutsummaryrefslogtreecommitdiffstats
path: root/enumtypes.h.template
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-04-12 15:50:06 +0800
committerMilan Crha <mcrha@redhat.com>2013-04-12 15:50:06 +0800
commit1c5f6313c58187ce7682058057b63e14ae6f70e5 (patch)
treeb32502d72fe77f9e42e47b89df5e9034b92b9546 /enumtypes.h.template
parent765a50d3df2d53b73b149fc2646f46722add7635 (diff)
downloadgsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar
gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.gz
gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.bz2
gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.lz
gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.xz
gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.zst
gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.zip
Bug #681837 - Make enum type registration thread safe
Diffstat (limited to 'enumtypes.h.template')
-rw-r--r--enumtypes.h.template24
1 files changed, 24 insertions, 0 deletions
diff --git a/enumtypes.h.template b/enumtypes.h.template
new file mode 100644
index 0000000000..e421eddbe7
--- /dev/null
+++ b/enumtypes.h.template
@@ -0,0 +1,24 @@
+/*** BEGIN file-header ***/
+/*** END file-header ***/
+
+/*** BEGIN file-production ***/
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+/* Enumerations from "@filename@" */
+
+/*** END file-production ***/
+
+/*** BEGIN enumeration-production ***/
+#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type())
+GType @enum_name@_get_type (void) G_GNUC_CONST;
+
+/*** END enumeration-production ***/
+
+/*** BEGIN file-tail ***/
+G_END_DECLS
+
+/*** END file-tail ***/
+