You should be programming in C++ API. Then you can do the same (and more) without the declaring of your api's.