Updated function declarations to use struct names instead of generic :pointer.