We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Describes how to use C functions assigned to class variables as callback functions
Updated Callbacks (textile)
Code highlighting
added alternative way to do callback to C function
changed "Worker" to "Completer" to make my example more consistent with the others
made all the Ruby code have the same setup; it seems bad to not define the type of the callback, I'm not sure how FFI would handle that. Didn't touch the junky GIL section.
got rid of bizarre "configuration" header at the top
fxied broken link to rdoc, got rid of some spaces around arguments
Fixed the C code at the very top it actually uses a function pointer and matches the first FFI example on the page. Also fixed some of the sentences around it.
clean up the whitespace in all the code examples
added the "C callback" section
Completed the examples with informations I wanted to find. Updated Callbacks (textile)
Migrated from callbacks v4
Migrated from callbacks v3
Migrated from callbacks v2
Migrated from callbacks v1