aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-04-02 08:15:39 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-02 08:15:39 +0800
commit9bc7db5333a2319828768142c527d3fb64afd999 (patch)
treead58f9ba15220d752cbeb164e99b5791446ed952 /calendar/gui/calendar.h
parentaf10696db7572f9933cfae0235574553d016b680 (diff)
downloadgsoc2013-evolution-9bc7db5333a2319828768142c527d3fb64afd999.tar.gz
gsoc2013-evolution-9bc7db5333a2319828768142c527d3fb64afd999.tar.zst
gsoc2013-evolution-9bc7db5333a2319828768142c527d3fb64afd999.zip
These functions now take a sort_func parameter, which is of type
1998-04-01 Federico Mena Quintero <federico@nuclecu.unam.mx> * calendar.c (calendar_get_objects_in_range): (calendar_get_events_in_range): (calendar_get_journal_in_range): (calendar_get_journal_in_range): These functions now take a sort_func parameter, which is of type GCompareFunc. If the specified value is non-NULL, it will return a sorted list. Otherwise, it will return an unordered list. (calendar_compare_by_dtstart): Provide a generic sorting routine for calendar objects. svn path=/trunk/; revision=88
Diffstat (limited to 'calendar/gui/calendar.h')
-rw-r--r--calendar/gui/calendar.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/gui/calendar.h b/calendar/gui/calendar.h
index d10cfe28be..bfbee92df8 100644
--- a/calendar/gui/calendar.h
+++ b/calendar/gui/calendar.h
@@ -18,9 +18,11 @@ void calendar_add_object (Calendar *cal, iCalObject *obj);
void calendar_remove_object (Calendar *cal, iCalObject *obj);
void calendar_destroy (Calendar *cal);
-GList *calendar_get_events_in_range (Calendar *cal, time_t start, time_t end);
-GList *calendar_get_todo_in_range (Calendar *cal, time_t start, time_t end);
-GList *calendar_get_journal_in_range (Calendar *cal, time_t start, time_t end);
+GList *calendar_get_events_in_range (Calendar *cal, time_t start, time_t end, GCompareFunc sort_func);
+GList *calendar_get_todo_in_range (Calendar *cal, time_t start, time_t end, GCompareFunc sort_func);
+GList *calendar_get_journal_in_range (Calendar *cal, time_t start, time_t end, GCompareFunc sort_func);
+
+gint calendar_compare_by_dtstart (gpointer a, gpointer b);
END_GNOME_DECLS