Hello!
I have done some work on the CFFI addon (ported it to CInvoke and
implemented basic C structure passing) . Now I want to change its API a
bit to implement new features (like better Io callbacks, ...); so I
copied the whole addon into a new addon directory called "CInvoke" and
replaced every 'CFFI' with 'CInvoke'. It compiles without errors.
But if I run the samples (which worked with my old 'extended' CFFI), I
now get:
IoState_registerProtoWithFunc_() Error: attempt to add the same
proto twice
I could figure out that IoCInvokeLibrary_proto is called twice, but I
don't know why.
Could anybody give me a hint?
The current code is located here:
http://github.com/fredreichbier/io-cinvoke/tree/master
The code before the renaming is located here:
http://github.com/fredreichbier/io/tree/master/addons/CFFI
To try it out, install C/Invoke (http://www.nongnu.org/cinvoke/), clone
the git repo and place the contents in ./addons/CInvoke.
Greetings,
Friedrich