Open aljelly opened 4 years ago
So there's no info about FutureMapFunc
in the GIR:
$ bin/gi-dump -n4 Gee
+ Future (interface)
...
* methods
...
+ map (function)
...
* args
...
+ func (arg)
* direction = ZERO_NONE
* optional = false
* nullable = false
* type
+ <no name> (type)
* tag = INTERFACE
* pointer = false
* interface
+ FutureMapFunc (unresolved)
...
From the source we can see it's a MapFunc
, which we have info about in the GIR, but we could only hardcode that relationship into the generator which is... uh. I wonder how other generators solve this?
For now I updated the generator to use Void*
for unresolved type references, so it should at least compile now and probably even work when you pass a MapFunc
and type cast it to Void*
. Well and handle all the closure data fun.
It's building now, thanks. I'll leave this issue open as the case should probably be correctly handled as you said.
After the fix for #31, I tried building libgee again in the same way:
Results in:
Context (from error trace):
Possibly the relevant file within Gee:
https://github.com/GNOME/libgee/blob/5e66324654b7d70d7c28793491a4edfe6d8a0d85/gee/future.vala#L132