Wow, I was lucky in that r_media_t starts with char *name.