passing function pointers between C/Hs