diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-12-19 17:24:33 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:34 +0100 |
commit | d22def9309d4051ebd82b76f6704f65ad39d98b5 (patch) | |
tree | a3fdf326655bfd3e48c4a438cb5a1394fbdf6165 /build-aux/mm-errors-template.h | |
parent | 4b8b99ee96f16e3f2d623cb896a4d1bf7f12820f (diff) |
build: let enum and error templates be completely generic
Don't include anything in the templates specific to the file to be built, like
#ifdef guards in headers or #include in sources.
Diffstat (limited to 'build-aux/mm-errors-template.h')
-rw-r--r-- | build-aux/mm-errors-template.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/build-aux/mm-errors-template.h b/build-aux/mm-errors-template.h new file mode 100644 index 00000000..78124d4d --- /dev/null +++ b/build-aux/mm-errors-template.h @@ -0,0 +1,23 @@ +/*** 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 ***/ +GQuark @enum_name@_quark (void); /* implemented in mm-errors-quarks.c */ +GType @enum_name@_get_type (void) G_GNUC_CONST; +#define @ENUMNAME@ (@enum_name@_quark ()) +#define @ENUMPREFIX@TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) +/*** END value-header ***/ + +/*** BEGIN file-tail ***/ +G_END_DECLS + +/*** END file-tail ***/ |