2024-12-09 19:27:50 +01:00
|
|
|
#ifndef PLANNER
|
|
|
|
#define PLANNER
|
2024-12-10 22:06:49 +01:00
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
typedef struct Subject {
|
|
|
|
char *name;
|
|
|
|
time_t created;
|
|
|
|
time_t deadline;
|
|
|
|
int priority;
|
|
|
|
unsigned long long spare;
|
|
|
|
} Subject;
|
|
|
|
|
|
|
|
typedef struct Event {
|
|
|
|
Subject subject;
|
|
|
|
time_t plannedStartTime;
|
|
|
|
time_t plannedEndTime;
|
|
|
|
unsigned long long spare;
|
|
|
|
} Event;
|
|
|
|
|
|
|
|
int genPlan(Subject *head);
|
2024-12-09 19:27:50 +01:00
|
|
|
|
|
|
|
#endif // !PLANNER
|