code to create trampoline structs for function pointers defined in projections and as parameters in rpcs