I did a test on automatically generated function declarations by arduino IDE and found a bug. If a function A has an argument that is a pointer to a function B, then arduino IDE doesn't generate a declaration for A.
Here's the original post with tests done to show this bug:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1285477457/10#10