Could we add a parameter void *userData in each of these callbacks, to ease object-oriented code to carry this pointers and what not to avoid having to write trampolines and similar? This would be akin to what the existing emscripten/html5.h and emscripten.h functions do.