I'm using a library that defines:
and which has functions that use pointers to these structures - e.g.Code:struct ip_addr { u32_t addr; };
My code uses u32_t's to deal with IP addresses and I need to pass them to the library routines. Can I do this with some sort of clever casting, or will I have to create a new structure, set the addr member, and pass a pointer to it?Code:a_func(struct ip_addr *dst_ip);