aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/calobj.h
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-util/calobj.h')
-rw-r--r--calendar/cal-util/calobj.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/calendar/cal-util/calobj.h b/calendar/cal-util/calobj.h
index fbc92a41c5..dabbc36c2d 100644
--- a/calendar/cal-util/calobj.h
+++ b/calendar/cal-util/calobj.h
@@ -201,6 +201,15 @@ 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);
+typedef enum {
+ CAL_OBJ_FIND_SUCCESS,
+ CAL_OBJ_FIND_SYNTAX_ERROR,
+ CAL_OBJ_FIND_NOT_FOUND
+} CalObjFindStatus;
+
+CalObjFindStatus ical_object_find_in_string (const char *uid, const char *vcalobj, 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.
*/