Move __attribute__ markup from functions to headers to quiet doxygen