icalperiod.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*======================================================================
  2. FILE: icalperiod.h
  3. CREATOR: eric 26 Jan 2001
  4. (C) COPYRIGHT 2000, Eric Busboom <eric@softwarestudio.org>
  5. http://www.softwarestudio.org
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of either:
  8. The LGPL as published by the Free Software Foundation, version
  9. 2.1, available at: http://www.gnu.org/licenses/lgpl-2.1.html
  10. Or:
  11. The Mozilla Public License Version 1.0. You may obtain a copy of
  12. the License at http://www.mozilla.org/MPL/
  13. The Original Code is eric. The Initial Developer of the Original
  14. Code is Eric Busboom
  15. ======================================================================*/
  16. #ifndef ICALPERIOD_H
  17. #define ICALPERIOD_H
  18. #include "libical_ical_export.h"
  19. #include "icalduration.h"
  20. #include "icaltime.h"
  21. struct icalperiodtype
  22. {
  23. struct icaltimetype start;
  24. struct icaltimetype end;
  25. struct icaldurationtype duration;
  26. };
  27. LIBICAL_ICAL_EXPORT struct icalperiodtype icalperiodtype_from_string(const char *str);
  28. LIBICAL_ICAL_EXPORT const char *icalperiodtype_as_ical_string(struct icalperiodtype p);
  29. LIBICAL_ICAL_EXPORT char *icalperiodtype_as_ical_string_r(struct icalperiodtype p);
  30. LIBICAL_ICAL_EXPORT struct icalperiodtype icalperiodtype_null_period(void);
  31. LIBICAL_ICAL_EXPORT int icalperiodtype_is_null_period(struct icalperiodtype p);
  32. LIBICAL_ICAL_EXPORT int icalperiodtype_is_valid_period(struct icalperiodtype p);
  33. #endif /* !ICALTIME_H */