Checks whether rscale is supported. Gets an array of calendars supporting rscale (currently always return NULL). struct icalrecurrencetype ret; icalrecurrencetype_clear (&ret); return ret; Creates a new #ICalRecurrence. return i_cal_recurrence_new_full(i_cal_recurrence_new_default()); Resets an #ICalRecurrence. Decodes a day to a weekday in a week. Decodes a day to a position of the weekday. Encodes the @weekday and @position into a single value, which can by split by i_cal_recurrence_day_day_of_week() and i_cal_recurrence_day_position(). Decodes a month and check whether it is a leap month. Decode a month from an encoded value by i_cal_recurrence_encode_month(). Encodes the @month and the @is_leap flag into a single value, which can be split by i_cal_recurrence_month_is_leap() and i_cal_recurrence_month_month(). Converts a string to a #ICalRecurrence. Converts a #ICalRecurrence to a string. Gets the until from #ICalRecurrence. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), NULL); return i_cal_time_new_full (((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->until); Sets the until from #ICalRecurrence. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail (until != NULL && I_CAL_IS_TIME(until)); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->until = *(icaltimetype *)i_cal_object_get_native ((ICalObject *)until); Gets the freq from #ICalRecurrence. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_NO_RECURRENCE); return (ICalRecurrenceFrequency) (((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->freq); Sets the freq from #ICalRecurrence. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); ((struct icalrecurrencetype *) i_cal_object_get_native ((ICalObject *)recur))->freq = (icalrecurrencetype_frequency) freq; Gets the count from #ICalRecurrence. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), 0); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->count; Sets the count from #ICalRecurrence. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->count = count; Gets the interval from #ICalRecurrence. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), 0); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->interval; Sets the interval from #ICalRecurrence. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->interval = interval; Gets the week_start from #ICalRecurrence. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_NO_WEEKDAY); return (ICalRecurrenceWeekday) (((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->week_start); Sets the week_start from #ICalRecurrence. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->week_start = (icalrecurrencetype_weekday) week_start; Gets the by_second array from #ICalRecurrence. The array size if I_CAL_BY_SECOND_SIZE. GArray *array; g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), NULL); array = g_array_new (FALSE, TRUE, sizeof (gshort)); g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_second, I_CAL_BY_SECOND_SIZE); return array; Sets the by_second array in @recur at once. The array size can be less than I_CAL_BY_SECOND_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated. struct icalrecurrencetype *rt; guint ii; g_return_if_fail(recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail(values != NULL); rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur); g_return_if_fail(rt != NULL); for(ii = 0; ii < values->len && ii < I_CAL_BY_SECOND_SIZE; ii++) { rt->by_second[ii] = g_array_index(values, gshort, ii); } if(ii < I_CAL_BY_SECOND_SIZE) rt->by_second[ii] = I_CAL_RECURRENCE_ARRAY_MAX; Gets the by_second value at index @index. The index should be less than %I_CAL_BY_SECOND_SIZE. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_RECURRENCE_ARRAY_MAX); g_return_val_if_fail (index < I_CAL_BY_SECOND_SIZE, I_CAL_RECURRENCE_ARRAY_MAX); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_second[index]; Sets the by_second array from #ICalRecurrence at the given index. The array size is I_CAL_BY_SECOND_SIZE. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail (index < I_CAL_BY_SECOND_SIZE); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_second[index] = value; Gets the by_minute array from #ICalRecurrence. The array size is I_CAL_BY_MINUTE_SIZE. GArray *array; g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), NULL); array = g_array_new (FALSE, FALSE, sizeof (gshort)); g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_minute, I_CAL_BY_MINUTE_SIZE); return array; Sets the by_minute array in @recur at once. The array size can be less than I_CAL_BY_MINUTE_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated. struct icalrecurrencetype *rt; guint ii; g_return_if_fail(recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail(values != NULL); rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur); g_return_if_fail(rt != NULL); for(ii = 0; ii < values->len && ii < I_CAL_BY_MINUTE_SIZE; ii++) { rt->by_minute[ii] = g_array_index(values, gshort, ii); } if(ii < I_CAL_BY_MINUTE_SIZE) rt->by_minute[ii] = I_CAL_RECURRENCE_ARRAY_MAX; Gets the by_minute value at index @index. The index should be less than %I_CAL_BY_MINUTE_SIZE. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_RECURRENCE_ARRAY_MAX); g_return_val_if_fail (index < I_CAL_BY_MINUTE_SIZE, I_CAL_RECURRENCE_ARRAY_MAX); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_minute[index]; Sets the by_minute array from #ICalRecurrence at the given index. The array size is I_CAL_BY_MINUTE_SIZE. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail (index < I_CAL_BY_MINUTE_SIZE); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_minute[index] = value; Gets the by_hour array from #ICalRecurrence. The array size is I_CAL_BY_HOUR_SIZE. GArray *array; g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), NULL); array = g_array_new (FALSE, FALSE, sizeof (gshort)); g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_hour, I_CAL_BY_HOUR_SIZE); return array; Sets the by_hour array in @recur at once. The array size can be less than I_CAL_BY_HOUR_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated. struct icalrecurrencetype *rt; guint ii; g_return_if_fail(recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail(values != NULL); rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur); g_return_if_fail(rt != NULL); for(ii = 0; ii < values->len && ii < I_CAL_BY_HOUR_SIZE; ii++) { rt->by_hour[ii] = g_array_index(values, gshort, ii); } if(ii < I_CAL_BY_HOUR_SIZE) rt->by_hour[ii] = I_CAL_RECURRENCE_ARRAY_MAX; Gets the by_hour value at index @index. The index should be less than %I_CAL_BY_HOUR_SIZE. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_RECURRENCE_ARRAY_MAX); g_return_val_if_fail (index < I_CAL_BY_HOUR_SIZE, I_CAL_RECURRENCE_ARRAY_MAX); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_hour[index]; Sets the by_hour array from #ICalRecurrence at the given index. The array size is I_CAL_BY_HOUR_SIZE. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail (index < I_CAL_BY_HOUR_SIZE); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_hour[index] = value; Gets the by_day array from #ICalRecurrence. The array size is I_CAL_BY_DAY_SIZE. GArray *array; g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), NULL); array = g_array_new (FALSE, FALSE, sizeof (gshort)); g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_day, I_CAL_BY_DAY_SIZE); return array; Sets the by_day array in @recur at once. The array size can be less than I_CAL_BY_DAY_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated. struct icalrecurrencetype *rt; guint ii; g_return_if_fail(recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail(values != NULL); rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur); g_return_if_fail(rt != NULL); for(ii = 0; ii < values->len && ii < I_CAL_BY_DAY_SIZE; ii++) { rt->by_day[ii] = g_array_index(values, gshort, ii); } if(ii < I_CAL_BY_DAY_SIZE) rt->by_day[ii] = I_CAL_RECURRENCE_ARRAY_MAX; Gets the by_day value at index @index. The index should be less than %I_CAL_BY_DAY_SIZE. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_RECURRENCE_ARRAY_MAX); g_return_val_if_fail (index < I_CAL_BY_DAY_SIZE, I_CAL_RECURRENCE_ARRAY_MAX); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_day[index]; Sets the by_day array from #ICalRecurrence at the given index. The array size if I_CAL_BY_DAY_SIZE. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail (index < I_CAL_BY_DAY_SIZE); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_day[index] = value; Gets the by_month_day array from #ICalRecurrence. The array size is I_CAL_BY_MONTHDAY_SIZE. GArray *array; g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), NULL); array = g_array_new (FALSE, FALSE, sizeof (gshort)); g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month_day, I_CAL_BY_MONTHDAY_SIZE); return array; Sets the by_month_day array in @recur at once. The array size can be less than I_CAL_BY_MONTHDAY_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated. struct icalrecurrencetype *rt; guint ii; g_return_if_fail(recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail(values != NULL); rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur); g_return_if_fail(rt != NULL); for(ii = 0; ii < values->len && ii < I_CAL_BY_MONTHDAY_SIZE; ii++) { rt->by_month_day[ii] = g_array_index(values, gshort, ii); } if(ii < I_CAL_BY_MONTHDAY_SIZE) rt->by_month_day[ii] = I_CAL_RECURRENCE_ARRAY_MAX; Gets the by_month_day value at index @index. The index should be less than %I_CAL_BY_MONTHDAY_SIZE. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_RECURRENCE_ARRAY_MAX); g_return_val_if_fail (index < I_CAL_BY_MONTHDAY_SIZE, I_CAL_RECURRENCE_ARRAY_MAX); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month_day[index]; Sets the by_month_day array from #ICalRecurrence at the given index. The array size if I_CAL_BY_MONTHDAY_SIZE. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail (index < I_CAL_BY_MONTHDAY_SIZE); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month_day[index] = value; Gets the by_year_day array from #ICalRecurrence. The array size is I_CAL_BY_YEARDAY_SIZE. GArray *array; g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), NULL); array = g_array_new (FALSE, FALSE, sizeof (gshort)); g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_year_day, I_CAL_BY_YEARDAY_SIZE); return array; Sets the by_year_day array in @recur at once. The array size can be less than I_CAL_BY_YEARDAY_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated. struct icalrecurrencetype *rt; guint ii; g_return_if_fail(recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail(values != NULL); rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur); g_return_if_fail(rt != NULL); for(ii = 0; ii < values->len && ii < I_CAL_BY_YEARDAY_SIZE; ii++) { rt->by_year_day[ii] = g_array_index(values, gshort, ii); } if(ii < I_CAL_BY_YEARDAY_SIZE) rt->by_year_day[ii] = I_CAL_RECURRENCE_ARRAY_MAX; Gets the by_year_day value at index @index. The index should be less than %I_CAL_BY_YEARDAY_SIZE. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_RECURRENCE_ARRAY_MAX); g_return_val_if_fail (index < I_CAL_BY_YEARDAY_SIZE, I_CAL_RECURRENCE_ARRAY_MAX); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_year_day[index]; Sets the by_year_day array from #ICalRecurrence at the given index. The array size if I_CAL_BY_YEARDAY_SIZE. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail (index < I_CAL_BY_YEARDAY_SIZE); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_year_day[index] = value; Gets the by_week_no array from #ICalRecurrence. The array size is I_CAL_BY_WEEKNO_SIZE. GArray *array; g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), NULL); array = g_array_new (FALSE, FALSE, sizeof (gshort)); g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_week_no, I_CAL_BY_WEEKNO_SIZE); return array; Sets the by_week_no array in @recur at once. The array size can be less than I_CAL_BY_WEEKNO_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated. struct icalrecurrencetype *rt; guint ii; g_return_if_fail(recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail(values != NULL); rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur); g_return_if_fail(rt != NULL); for(ii = 0; ii < values->len && ii < I_CAL_BY_WEEKNO_SIZE; ii++) { rt->by_week_no[ii] = g_array_index(values, gshort, ii); } if(ii < I_CAL_BY_WEEKNO_SIZE) rt->by_week_no[ii] = I_CAL_RECURRENCE_ARRAY_MAX; Gets the by_week_no value at index @index. The index should be less than %I_CAL_BY_WEEKNO_SIZE. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_RECURRENCE_ARRAY_MAX); g_return_val_if_fail (index < I_CAL_BY_WEEKNO_SIZE, I_CAL_RECURRENCE_ARRAY_MAX); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_week_no[index]; Sets the by_week_no array from #ICalRecurrence at the given index. The array size is I_CAL_BY_WEEKNO_SIZE. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail (index < I_CAL_BY_WEEKNO_SIZE); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_week_no[index] = value; Gets the by_month array from #ICalRecurrence. The array size is I_CAL_BY_MONTH_SIZE. GArray *array; g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), NULL); array = g_array_new (FALSE, FALSE, sizeof (gshort)); g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month, I_CAL_BY_MONTH_SIZE); return array; Sets the by_month array in @recur at once. The array size can be less than I_CAL_BY_MONTH_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated. struct icalrecurrencetype *rt; guint ii; g_return_if_fail(recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail(values != NULL); rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur); g_return_if_fail(rt != NULL); for(ii = 0; ii < values->len && ii < I_CAL_BY_MONTH_SIZE; ii++) { rt->by_month[ii] = g_array_index(values, gshort, ii); } if(ii < I_CAL_BY_MONTH_SIZE) rt->by_month[ii] = I_CAL_RECURRENCE_ARRAY_MAX; Gets the by_month value at index @index. The index should be less than %I_CAL_BY_MONTH_SIZE. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_RECURRENCE_ARRAY_MAX); g_return_val_if_fail (index < I_CAL_BY_MONTH_SIZE, I_CAL_RECURRENCE_ARRAY_MAX); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month[index]; Sets the by_month array from #ICalRecurrence at the given index. The array size is I_CAL_BY_MONTH_SIZE. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail (index < I_CAL_BY_MONTH_SIZE); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_month[index] = value; Gets the by_set_pos array from #ICalRecurrence. The array size is I_CAL_BY_SETPOS_SIZE. GArray *array; g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), NULL); array = g_array_new (FALSE, FALSE, sizeof (gshort)); g_array_append_vals (array, ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_set_pos, I_CAL_BY_SETPOS_SIZE); return array; Sets the by_set_pos array in @recur at once. The array size can be less than I_CAL_BY_SETPOS_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated. struct icalrecurrencetype *rt; guint ii; g_return_if_fail(recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail(values != NULL); rt = (struct icalrecurrencetype *)i_cal_object_get_native((ICalObject *)recur); g_return_if_fail(rt != NULL); for(ii = 0; ii < values->len && ii < I_CAL_BY_SETPOS_SIZE; ii++) { rt->by_set_pos[ii] = g_array_index(values, gshort, ii); } if(ii < I_CAL_BY_SETPOS_SIZE) rt->by_set_pos[ii] = I_CAL_RECURRENCE_ARRAY_MAX; Gets the by_set_pos value at index @index. The index should be less than %I_CAL_BY_SETPOS_SIZE. g_return_val_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur), I_CAL_RECURRENCE_ARRAY_MAX); g_return_val_if_fail (index < I_CAL_BY_SETPOS_SIZE, I_CAL_RECURRENCE_ARRAY_MAX); return ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_set_pos[index]; Sets the by_set_pos array from #ICalRecurrence at the given index. The array size is I_CAL_BY_SETPOS_SIZE. g_return_if_fail (recur != NULL && I_CAL_IS_RECURRENCE (recur)); g_return_if_fail (index < I_CAL_BY_SETPOS_SIZE); ((struct icalrecurrencetype *)i_cal_object_get_native ((ICalObject *)recur))->by_set_pos[index] = value;