With my experience on tec, @cmarcelo @kenchris @tmpsantos always suggest we rewrite code in C++, do not simply borrow code from Tizen. Tizen code are basically written in C, not C++, should be just be a reference.