I can never remember which version of API_END has the return call and
which doesn't; create API_END_RET and API_END_RET_NOTFOUND_MAP, leave
API_END for functions without any return value.