So, the first step is to learn how to set up callbacks using libffi. I'm guessing their Closure API is the way to go. You could do this in C first and then translate that to CFFI, or start with CFFI, depending on how familiar you are with CFFI. You definitely need to be familiar with C, I think. :-)
So, the first step is to learn how to set up callbacks using libffi. I'm guessing their Closure API is the way to go. You could do this in C first and then translate that to CFFI, or start with CFFI, depending on how familiar you are with CFFI. You definitely need to be familiar with C, I think. :-)