passed cb to c++.

Signed-off-by: abbr <wenfred@gmail.com>