aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/calobj.h
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/pcs/calobj.h')
-rw-r--r--calendar/pcs/calobj.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/calendar/pcs/calobj.h b/calendar/pcs/calobj.h
index d18acd4f8a..05f6d00291 100644
--- a/calendar/pcs/calobj.h
+++ b/calendar/pcs/calobj.h
@@ -100,7 +100,7 @@ typedef struct {
* this is what got specified) or it is our computed
* ending date (computed from the duration item).
*/
-
+
int weekday;
union {
@@ -175,7 +175,7 @@ typedef struct {
} iCalObject;
/* The callback for the recurrence generator */
-typedef int (*calendarfn)(iCalObject *, time_t, time_t, void *);
+typedef int (*calendarfn) (iCalObject *, time_t, time_t, void *);
iCalObject *ical_new (char *comment, char *organizer, char *summary);
iCalObject *ical_object_new (void);
@@ -190,6 +190,11 @@ void ical_object_add_exdate (iCalObject *o, time_t t);
/* Computes the enddate field of the recurrence based on the duration */
void ical_object_compute_end (iCalObject *ico);
+/* Returns the first toggled day in a weekday mask -- we do this because we do not support multiple
+ * days on a monthly-by-pos recurrence. If no days are toggled, it returns -1.
+ */
+int ical_object_get_first_weekday (int weekday_mask);
+
/* Returns the number of seconds configured to trigger the alarm in advance to an event */
int alarm_compute_offset (CalendarAlarm *a);
.8&id=368bbbc95ef3b000c40cad0df207b84082382d46'>Cleanup plistantoine2014-11-221-2/+0 * Update to 0.92arved2014-08-094-50/+8 * - Switch to USES=libtool, drop .la filesamdmi32014-08-072-9/+9 * Modernize LIB_DEPENDSbapt2014-07-151-2/+2 * - Fix INDEXmiwi2014-02-212-8/+7 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - convert to the new perl5 frameworkaz2013-09-161-3/+2 * Introduce ICONV_CONFIGURE_ARG variable defined at Uses/iconv.mk.bsam2013-09-051-1/+1