diff --git a/calendar-daemon.cpp b/calendar-daemon.cpp index a970275..c7465d3 100644 --- a/calendar-daemon.cpp +++ b/calendar-daemon.cpp @@ -13,6 +13,7 @@ #include +#include #include #include @@ -91,11 +92,14 @@ int main(void) //close(STDERR_FILENO); // Daemon-specific intialization should go here + const int SLEEP_INTERVAL = 5 * MINUTE; std::string calendar = "dummy"; std::string directory = "/home/stefan/.local/share/khal/calendars/" + calendar + "/"; init_database(calendar); + + // Enter daemon loop while(1) {