context: Add way to set plugin GType instead of name

Will be used by gnome-shell.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
Jonas Ådahl
2021-03-03 13:55:32 +01:00
parent fe0ce2814e
commit d76743736f
2 changed files with 25 additions and 2 deletions

View File

@ -38,6 +38,10 @@ void meta_context_add_option_entries (MetaContext *context,
const GOptionEntry *entries,
const char *translation_domain);
META_EXPORT
void meta_context_set_plugin_gtype (MetaContext *context,
GType plugin_gtype);
META_EXPORT
void meta_context_set_plugin_name (MetaContext *context,
const char *plugin_name);