Pass structs by reference