#ifndef EVERY_ENTRY_H #define EVERY_ENTRY_H #include #include enum entry_type_e { ENTRY_TYPE_ON, ENTRY_TYPE_EVERY, }; struct entry_interval_s { int year, month, day, hour, minute, second; }; /* type ON uses only start and warn */ struct entry_s { enum entry_type_e type; bool has_end; time_t start, end; struct entry_interval_s every, warn, stay; bool urgent; bool local; char *msg; }; /* test if an entry needs warning */ time_t* entry_is_active(struct entry_s *e, time_t now); #endif