|
@ -13,6 +13,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <db/db.h>
|
|
|
#include <db/db.h>
|
|
|
|
|
|
#include <db/create.h>
|
|
|
#include <util/notifications.h>
|
|
|
#include <util/notifications.h>
|
|
|
#include <util/calendar_parsing.h>
|
|
|
#include <util/calendar_parsing.h>
|
|
|
|
|
|
|
|
@ -91,11 +92,14 @@ int main(void) |
|
|
//close(STDERR_FILENO);
|
|
|
//close(STDERR_FILENO);
|
|
|
|
|
|
|
|
|
// Daemon-specific intialization should go here
|
|
|
// Daemon-specific intialization should go here
|
|
|
|
|
|
|
|
|
const int SLEEP_INTERVAL = 5 * MINUTE; |
|
|
const int SLEEP_INTERVAL = 5 * MINUTE; |
|
|
|
|
|
|
|
|
std::string calendar = "dummy"; |
|
|
std::string calendar = "dummy"; |
|
|
std::string directory = "/home/stefan/.local/share/khal/calendars/" + calendar + "/"; |
|
|
std::string directory = "/home/stefan/.local/share/khal/calendars/" + calendar + "/"; |
|
|
init_database(calendar); |
|
|
init_database(calendar); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Enter daemon loop
|
|
|
// Enter daemon loop
|
|
|
while(1) |
|
|
while(1) |
|
|
{ |
|
|
{ |
|
|