diff options
Diffstat (limited to 'src/c/event.h')
| -rw-r--r-- | src/c/event.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/c/event.h b/src/c/event.h new file mode 100644 index 0000000..b59a662 --- /dev/null +++ b/src/c/event.h @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2026 Reiner Herrmann + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#ifndef EVENT_H +#define EVENT_H + +#include <pebble.h> + +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 |
