Open haecker-felix opened 5 years ago
@GuillaumeGomez Do you remember why this is not supported currently? We handle nullable callbacks in other cases, and this here would work the same in the generated code or not?
I don't remember precisely but my guess would be because the PR was already huge enough and I didn't encounter this while testing.
Gir refuses to generate
soup_session_queue_message
:https://gitlab.gnome.org/haecker-felix/soup-rs/blob/master/soup/src/auto/session.rs#L459
The fn itself exists in my sys crate:
pub fn soup_session_queue_message(session: *mut SoupSession, msg: *mut SoupMessage, callback: SoupSessionCallback, user_data: gpointer);
https://gitlab.gnome.org/haecker-felix/soup-rs/blob/master/soup-sys/src/lib.rs#L2734While running 'gir', I get this message:
Gir doesn't generate callback ("gir cannot generate nullable async callback")
The complete code is here: https://gitlab.gnome.org/haecker-felix/soup-rs
Is there an easy way to fix this? Should it possible to autogenerate this, or do I need to implement it manually?