add native interface for C or C++