1 /* -*- Mode: C -*- */ 2 /*====================================================================== 3 FILE: icalperiod.h 4 CREATOR: eric 26 Jan 2001 5 6 7 $Id: icalperiod.h,v 1.6 2008-01-15 23:17:41 dothebart Exp $ 8 $Locker: $ 9 10 (C) COPYRIGHT 2000, Eric Busboom <eric@softwarestudio.org> 11 http://www.softwarestudio.org 12 13 This program is free software; you can redistribute it and/or modify 14 it under the terms of either: 15 16 The LGPL as published by the Free Software Foundation, version 17 2.1, available at: http://www.fsf.org/copyleft/lesser.html 18 19 Or: 20 21 The Mozilla Public License Version 1.0. You may obtain a copy of 22 the License at http://www.mozilla.org/MPL/ 23 24 The Original Code is eric. The Initial Developer of the Original 25 Code is Eric Busboom 26 27 28 ======================================================================*/ 29 30 #ifndef ICALPERIOD_H 31 #define ICALPERIOD_H 32 33 #include "icaltime.h" 34 #include "icalduration.h" 35 36 struct icalperiodtype 37 { 38 struct icaltimetype start; 39 struct icaltimetype end; 40 struct icaldurationtype duration; 41 }; 42 43 struct icalperiodtype icalperiodtype_from_string (const char* str); 44 45 const char* icalperiodtype_as_ical_string(struct icalperiodtype p); 46 char* icalperiodtype_as_ical_string_r(struct icalperiodtype p); 47 48 struct icalperiodtype icalperiodtype_null_period(void); 49 50 int icalperiodtype_is_null_period(struct icalperiodtype p); 51 52 int icalperiodtype_is_valid_period(struct icalperiodtype p); 53 54 #endif /* !ICALTIME_H */ 55 56 57 58