gtk-rs / gir

Tool to generate rust bindings and user API for glib-based libraries
https://gtk-rs.org/gir/book/
MIT License
236 stars 107 forks source link

Get the signature of the "finish" methods from the gir file #813

Closed real-felix closed 5 years ago

real-felix commented 5 years ago

The signature of the "finish" methods (to finish an asynchronous call) is usually the same, and gir is based on that standard. However, sometimes, that standard is not respected, for example in libgoa: https://github.com/nemequ/vala-girs/blob/eef9b2f23eccce46af487e23888268cbfd6c6284/gir-1.0/Goa-1.0.gir#L698

In this situation, the generated code cannot compile because the parameters are swapped. Is it possible to generate this kind of code by following the declaration in the gir files?

GuillaumeGomez commented 5 years ago

I'll take a look in the next days.