aboutsummaryrefslogtreecommitdiff
path: root/build-aux/mm-errors-quarks-template.c
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2021-07-29 23:45:52 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-07-30 10:14:52 +0000
commit7c4db66eb34eebecc6b17fe86375e081b49bff00 (patch)
treec5e4f8ffa32bffd4a669b1cf199dcd0298a08412 /build-aux/mm-errors-quarks-template.c
parentb935782010edabff0b37a4256235e63bc6f946ec (diff)
build: Rename template files
The template files in the `build-aux` directory used in enums sources and headers generation use the `{$name}-template.[ch]` pattern. However, the examples in the official guide[0] and usually GNOME and Freedesktop packages use the `{$name}.[ch].template` pattern. Due to this, the name of the template files and build commands have been changed. [0] https://developer.gnome.org/gobject/stable/glib-mkenums.html
Diffstat (limited to 'build-aux/mm-errors-quarks-template.c')
-rw-r--r--build-aux/mm-errors-quarks-template.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/build-aux/mm-errors-quarks-template.c b/build-aux/mm-errors-quarks-template.c
deleted file mode 100644
index 4386a601..00000000
--- a/build-aux/mm-errors-quarks-template.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/*** BEGIN file-header ***/
-
-#include <gio/gio.h>
-
-/*** END file-header ***/
-
-/*** BEGIN file-production ***/
-/* enumerations from "@filename@" */
-/*** END file-production ***/
-
-/*** BEGIN value-header ***/
-
-#define ERROR_PREFIX @ENUMNAME@_DBUS_PREFIX
-static const GDBusErrorEntry @enum_name@_entries[] = {
-/*** END value-header ***/
-
-/*** BEGIN value-production ***/
- { @VALUENAME@, ERROR_PREFIX ".@valuenick@" },
-/*** END value-production ***/
-
-/*** BEGIN value-tail ***/
-};
-#undef ERROR_PREFIX
-
-GQuark
-@enum_name@_quark (void)
-{
- static volatile gsize quark_volatile = 0;
-
- if (!quark_volatile)
- g_dbus_error_register_error_domain ("@enum_name@_quark",
- &quark_volatile,
- @enum_name@_entries,
- G_N_ELEMENTS (@enum_name@_entries));
-
- return (GQuark) quark_volatile;
-}
-
-/*** END value-tail ***/
-
-/*** BEGIN file-tail ***/
-/*** END file-tail ***/