summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2018-08-01 02:36:45 +0200
committerFlorian Müllner <fmuellner@gnome.org>2018-08-01 02:44:57 +0200
commit11d5e000037e36de6e3ca4d87b10c41cae75c4ba (patch)
tree9c8d063ce7162fa231bfd7d41fc0386b9fa0b4d9
parentf0c9c25cf8e1f16fa42c05b0218cd7e8a272e90e (diff)
downloadmutter-11d5e000037e36de6e3ca4d87b10c41cae75c4ba.tar.gz
plugin: Add back prototypes to META_PLUGIN_DECLARE()
G_DEFINE_DYNAMIC_TYPE() doesn't include those, so they are still needed.
-rw-r--r--src/meta/meta-plugin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/meta/meta-plugin.h b/src/meta/meta-plugin.h
index 3dc428642..82382cd1d 100644
--- a/src/meta/meta-plugin.h
+++ b/src/meta/meta-plugin.h
@@ -312,6 +312,14 @@ struct _MetaPluginVersion
META_PLUGIN_API_VERSION \
}; \
\
+ /* Prototypes */ \
+ G_MODULE_EXPORT GType \
+ object_name##_get_type (void); \
+ \
+ G_MODULE_EXPORT GType \
+ meta_plugin_register_type (GTypeModule *type_module); \
+ \
+ \
G_DEFINE_DYNAMIC_TYPE_EXTENDED(ObjectName, object_name, \
META_TYPE_PLUGIN, 0, CODE) \
\