context: Add setup phase

During this phase, the backend is created and configured. Currently only
configured, but will gain more logic that currently main.c does with
various helpers.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
Jonas Ådahl
2021-03-02 11:41:34 +01:00
parent df8074c636
commit 75f9085ab9
4 changed files with 64 additions and 0 deletions

View File

@ -36,6 +36,9 @@ struct _MetaContextClass
MetaCompositorType (* get_compositor_type) (MetaContext *context);
gboolean (* setup) (MetaContext *context,
GError **error);
MetaBackend * (* create_backend) (MetaContext *context,
GError **error);
};