example
use self-defined C api to support more CPP operations