Revert "Fix duplicate prototypes and header definitions."

This reverts commit 8bef71aeb55c6513272ef7457019457a3fbde6cd.
Correct function prototype