native: add and use callback type
Merge pull request #1898 from LudwigOrtmann/native_callback_t

native: add and use callback type