summaryrefslogtreecommitdiffstats
path: root/src/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/event.c b/src/event.c
index ed170fd..c16ca4e 100644
--- a/src/event.c
+++ b/src/event.c
@@ -43,6 +43,8 @@
#include "sha1.h"
llist_t eventlist;
+/* Dummy event for the APP panel for an otherwise empty day. */
+struct event dummy = { DUMMY, 0, "", NULL };
void event_free(struct event *ev)
{
@@ -223,3 +225,9 @@ void event_paste_item(struct event *ev, time_t date)
ev->day = date;
LLIST_ADD_SORTED(&eventlist, ev, event_cmp);
}
+
+/* Return true if the day_item is the dummy event. */
+int event_dummy(struct day_item *item)
+{
+ return item->item.ev == &dummy;
+}