add basic api. not compiled. Function prototype should be added to header file