read only C API