Expose C++ API