Hi,
> +static void (*early_init_fn)(int opengl);
> +static void (*init_fn)(DisplayState *ds, bool full_screen, bool
> grab_on_hover);
> +
> +void gtk_register_early_init_fun(void *fn)
> +{
> +assert(!early_init_fn);
> +early_init_fn = fn;
> +}
> +
> +void gtk_register_init_fun(void *fn)
Allows GTK to be compiled as a module and loaded at runtime. If GTK is
not the display being used, the module will not be loaded. In the case
that the GTK module is not present, if GTK was specified explicitly by
the user, qemu will exit with an error, otherwise it will default to
display type None