plugin: Add back prototypes to META_PLUGIN_DECLARE()

G_DEFINE_DYNAMIC_TYPE() doesn't include those, so they are still
needed.
This commit is contained in:
Florian Müllner 2018-08-01 02:36:45 +02:00
parent f0c9c25cf8
commit 11d5e00003

View File

@ -312,6 +312,14 @@ struct _MetaPluginVersion
META_PLUGIN_API_VERSION \ 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, \ G_DEFINE_DYNAMIC_TYPE_EXTENDED(ObjectName, object_name, \
META_TYPE_PLUGIN, 0, CODE) \ META_TYPE_PLUGIN, 0, CODE) \
\ \