add C wrapper for C++ class