A few more C API functions.