Re: Wrapping C Libraries callback
- Posted by Icy_Viking Mar 18, 2017
- 1220 views
petelomax said...
Icy_Viking said...
When you see something like void(*call back) or something function(void*)?
Please show the actual C code.
You may (very rarely) need to use define_c_func({},addr,args), if what you've got is the raw address of a callback from a C function, but more likely if you need to provide a callback to a C function you need to pass a result from call_back() to c_func.
FGAPI void FGAPIENTRY glutMouseWheelFunc( void (* callback)( int, int, int, int ) );
This is the actual C code. I'm sure there is a special way you need to wrap the callback pointer in there.