struct Color { unsigned char r, g, b; }; struct Palette { unsigned int num; struct Color *clist; }; typedef struct Color Color; typedef struct Palette Palette; Palette *palette_open_gpl(const char *); Palette *palette_clone(const Palette *); Palette *palette_open_gpl(const char *);