Fix typo in API.
Implement the C++ side callbacks with protobufs.