Use the C API in the demo example. Have a separate sample for the C++ API.