+2004-06-02 Rodrigo Moya <rodrigo@novell.com>
+
+ * libecal/e-cal.c (e_cal_generate_instances,
+ e_cal_generate_instances_for_object, e_cal_get_alarms_in_range,
+ e_cal_get_alarms_for_object): only allow values from 0 to time_t's
+ maximum value.
+
+ * libecal/e-cal.h: added missing prototype.
+
2004-06-01 Rodrigo Moya <rodrigo@novell.com>
* libecal/e-cal.c (e_cal_generate_instances): moved all the logic...
/* Evolution calendar ecal
*
* Copyright (C) 2001 Ximian, Inc.
+ * Copyright (C) 2004 Novell, Inc.
*
- * Author: Federico Mena-Quintero <federico@ximian.com>
+ * Authors: Federico Mena-Quintero <federico@ximian.com>
+ * Rodrigo Moya <rodrigo@novell.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
priv = ecal->priv;
g_return_if_fail (priv->load_state == E_CAL_LOAD_LOADED);
- g_return_if_fail (start >= -1);
- g_return_if_fail (end >= -1);
+ g_return_if_fail (start >= 0);
+ g_return_if_fail (end >= 0);
g_return_if_fail (cb != NULL);
generate_instances (ecal, start, end, NULL, cb, cb_data);
GList *instances = NULL;
g_return_if_fail (E_IS_CAL (ecal));
- g_return_if_fail (start >= -1);
- g_return_if_fail (end >= -1);
+ g_return_if_fail (start >= 0);
+ g_return_if_fail (end >= 0);
g_return_if_fail (cb != NULL);
priv = ecal->priv;
priv = ecal->priv;
g_return_val_if_fail (priv->load_state == E_CAL_LOAD_LOADED, NULL);
- g_return_val_if_fail (start != -1 && end != -1, NULL);
+ g_return_val_if_fail (start >= 0 && end >= 0, NULL);
g_return_val_if_fail (start <= end, NULL);
/* build the query string */
g_return_val_if_fail (priv->load_state == E_CAL_LOAD_LOADED, FALSE);
g_return_val_if_fail (uid != NULL, FALSE);
- g_return_val_if_fail (start != -1 && end != -1, FALSE);
+ g_return_val_if_fail (start >= 0 && end >= 0, FALSE);
g_return_val_if_fail (start <= end, FALSE);
g_return_val_if_fail (alarms != NULL, FALSE);
/* Evolution calendar ecal
*
* Copyright (C) 2001 Ximian, Inc.
+ * Copyright (C) 2004 Novell, Inc.
*
* Authors: Federico Mena-Quintero <federico@ximian.com>
+ * Rodrigo Moya <rodrigo@novell.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
void e_cal_generate_instances (ECal *ecal, time_t start, time_t end,
ECalRecurInstanceFn cb, gpointer cb_data);
+void e_cal_generate_instances_for_object (ECal *ecal, icalcomponent *icalcomp,
+ time_t start, time_t end,
+ ECalRecurInstanceFn cb, gpointer cb_data);
GSList *e_cal_get_alarms_in_range (ECal *ecal, time_t start, time_t end);