Ported the funcdef APIs.