The elephant in the room is that C libraries are still written to be
consumed primarily from C/C++ and only incidentally from higher-level
languages, even though most applications should be written in
higher-level languages now.
Libffi is meant to solve that problem, but it only handles calls, not marshaling and unmarshaling or parsing .h files to find out function names and argument types.
John Cowan
http://vrici.lojban.org/~cowan xxxxxx@ccil.orgI am he that buries his friends alive and drowns them and draws them
alive again from the water. I came from the end of a bag, but no bag
went over me. I am the friend of bears and the guest of eagles. I am
Ringwinner and Luckwearer; and I am Barrel-rider. --Bilbo to Smaug