/* * Copyright (C) 2026 Reiner Herrmann * SPDX-License-Identifier: GPL-3.0-or-later */ #ifndef EVENT_H #define EVENT_H #include enum Category { CORE = 0, LWS1, LWS2, LWS3, LWS4, IBS, HOT, POF, EOD, SOTO, JW, VOE, }; struct Gw2Event { char name[32]; uint16_t utc_offset; enum Category category; char location[32]; uint8_t schedule_hours; // uint16_t length; // TODO: to show currently running events }; void init_events(); void cleanup_events(); void update_event_index(); const struct Gw2Event *get_next_event(int offset); int minutes_to_event(const struct Gw2Event *event); GColor8 color_for_category(enum Category category); #endif