core/debug-control: Introspect it to export the dbus service with lg

by executing `global.context.get_debug_control().exported = true`.

This makes it possible to get access to the debug service without having
to start with `--enable-debug`.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3902>
This commit is contained in:
Sebastian Wick
2024-07-24 21:53:42 +02:00
committed by Marge Bot
parent c974bcf4b2
commit 682935fefa
12 changed files with 89 additions and 24 deletions

View File

@ -884,6 +884,12 @@ meta_context_init (MetaContext *context)
}
}
/**
* meta_context_get_debug_control:
* @context: The #MetaContext
*
* Returns: (transfer none): the #MetaDebugControl
*/
MetaDebugControl *
meta_context_get_debug_control (MetaContext *context)
{