native: fix function prototype to match to api

C++ ends up with an error, because of wrong function prototype