summaryrefslogtreecommitdiff
path: root/build/enum-template.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-12-22 21:26:10 +0100
committerStef Walter <stefw@gnome.org>2012-12-22 23:31:36 +0100
commit41d96e69e8b56aa88e36e8bd176c51c5aa93caf9 (patch)
treef78639aeef07a56cf9913e9d921f141957ecf351 /build/enum-template.h
parent86550b678407e360515878703e81258044d84541 (diff)
downloadgcr-41d96e69e8b56aa88e36e8bd176c51c5aa93caf9.tar.gz
Separate the base and ui parts of the Gcr library more thoroughly.
* This is due to gobject introspection not being able to have separate GIRs provide the same namespace, and the desire to conditionally build the GTK+ dependent stuff. * Partially based on a patch by Mathias Hasselmann * Separate GIRs: Gcr and GcrUi * Separate libraries: libgcr-base-3.so and libgcr-ui-3.so. The latter links to the former. * Symlink libgcr-3.so to libgcr-ui-3.so * Expose internal symbols in libgcr-base-3.so so they can be easily shared by libgcr-ui-3.so * Add --without-gtk argument https://bugzilla.gnome.org/show_bug.cgi?id=688678
Diffstat (limited to 'build/enum-template.h')
-rw-r--r--build/enum-template.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/build/enum-template.h b/build/enum-template.h
new file mode 100644
index 0000000..edb428b
--- /dev/null
+++ b/build/enum-template.h
@@ -0,0 +1,24 @@
+/*** BEGIN file-header ***/
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+/*** END file-header ***/
+
+/*** BEGIN file-production ***/
+
+/* enumerations from "@filename@" */
+/*** END file-production ***/
+
+/*** BEGIN value-header ***/
+#ifndef @ENUMPREFIX@_TYPE_@ENUMSHORT@
+GType @enum_name@_get_type (void) G_GNUC_CONST;
+#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
+#endif
+
+/*** END value-header ***/
+
+/*** BEGIN file-tail ***/
+G_END_DECLS
+
+/*** END file-tail ***/