Moved cdefs to seperate file
Moved c functions defs to seperate file.