Hello Rafal,
Monday, October 5, 2009, 9:18:30 AM, you wrote:
> Is there a neat way to have c2hs generate the FunPtr version for me?
from my program:
-- |My callback function type
type CALLBACK_FUNC = Ptr CChar -> IO CInt
foreign import ccall threadsafe "wrapper"
mkCALL_BACK :: CALLBACK_FU
Hi Everyone,
I'm trying to figure out an elegant way of letting the Haskell garbage
collector deal with structures allocated from C.
So I have the C pair:
fluid_event_t* new_fluid_event(void);
void delete_fluid_event(fluid_event_t* evt);
I've handled the new_fluid_event thing nicely, ForeignP