Add void* userdata to callbacks