]> code.citadel.org Git - citadel.git/blobdiff - webcit/ical_subst.c
webcit_fmt_date: return length of generated string
[citadel.git] / webcit / ical_subst.c
index 5d6259d88dd81bcdc51b2f45b8a091a1a1767670..aceb56c2816fc5d395db745c29e2464287375f6b 100644 (file)
@@ -1,11 +1,22 @@
-#include "webcit.h"
+/*
+ * Copyright (c) 1996-2012 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License, version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
 
+#include "webcit.h"
 
 extern IcalEnumMap icalproperty_kind_map[];
 
-
 HashList *IcalComponentMap = NULL;
-
+CtxType CTX_ICAL = CTX_NONE;
+#if 0
 void SortPregetMatter(HashList *Cals)
 {
        disp_cal *Cal;
@@ -46,7 +57,6 @@ void SortPregetMatter(HashList *Cals)
                break;
        }
 
-
        It = GetNewHashPos(Cals, 0);
        while (GetNextHashPos(Cals, It, &KLen, &Key, &vCal)) {
                i = 0;
@@ -61,9 +71,8 @@ void SortPregetMatter(HashList *Cals)
                        /****Cal->SortBy = icalcomponent_get_first_property(Cal->SortBy, SortMap[i++]->map); */
                }
        }
-       
-               
 }
+#endif
 
 
 void tmplput_ICalItem(StrBuf *Target, WCTemplputParams *TP)
@@ -114,6 +123,7 @@ void
 InitModule_ICAL_SUBST
 (void)
 {
+       RegisterCTX(CTX_ICAL);
        CreateIcalComponendKindLookup ();
 
 }