typedef enum { GRID_FLIPX = 1, GRID_FLIPY = 2, } grid_flags; typedef struct { uint8_t tile; grid_flags flags; char* tag; } grid_t;