]> Pileus Git - lackey/blobdiff - cals/dummy.c
Output cal field for ical events and todos
[lackey] / cals / dummy.c
index 4e55adef9823db5bba27c84657e60154df78dee9..1f57b1149b506760c64a1d2b908c18152a665265 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012 Andy Spencer <andy753421@gmail.com>
+ * Copyright (C) 2012-2013 Andy Spencer <andy753421@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -24,9 +24,9 @@
 
 /* Test data */
 static cal_t cal = {
+       .type  = "dummy",
        .name  = "dummy",
        .desc  = "dummy calendar",
-       .data  = NULL,
 };
 
 static event_t event = {
@@ -54,6 +54,12 @@ void dummy_config(const char *group, const char *name, const char *key, const ch
                enable = get_bool(value);
 }
 
+/* Cal functions */
+cal_t *dummy_cals(void)
+{
+       return &cal;
+}
+
 /* Event functions */
 event_t *dummy_events(date_t start, date_t end)
 {