Diffstat (limited to 'libical/src/libical/icalduration.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libical/src/libical/icalduration.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/libical/src/libical/icalduration.h b/libical/src/libical/icalduration.h new file mode 100644 index 0000000..dd6e311 --- a/dev/null +++ b/libical/src/libical/icalduration.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /* -*- Mode: C -*- */ | ||
2 | /*====================================================================== | ||
3 | FILE: icalduration.h | ||
4 | CREATOR: eric 26 Jan 2001 | ||
5 | |||
6 | |||
7 | $Id$ | ||
8 | $Locker$ | ||
9 | |||
10 | (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org | ||
11 | |||
12 | This program is free software; you can redistribute it and/or modify | ||
13 | it under the terms of either: | ||
14 | |||
15 | The LGPL as published by the Free Software Foundation, version | ||
16 | 2.1, available at: http://www.fsf.org/copyleft/lesser.html | ||
17 | |||
18 | Or: | ||
19 | |||
20 | The Mozilla Public License Version 1.0. You may obtain a copy of | ||
21 | the License at http://www.mozilla.org/MPL/ | ||
22 | |||
23 | The Original Code is eric. The Initial Developer of the Original | ||
24 | Code is Eric Busboom | ||
25 | |||
26 | |||
27 | ======================================================================*/ | ||
28 | |||
29 | #ifndef ICALDURATION_H | ||
30 | #define ICALDURATION_H | ||
31 | |||
32 | #include "icaltime.h" | ||
33 | |||
34 | struct icaldurationtype | ||
35 | { | ||
36 | int is_neg; | ||
37 | unsigned int days; | ||
38 | unsigned int weeks; | ||
39 | unsigned int hours; | ||
40 | unsigned int minutes; | ||
41 | unsigned int seconds; | ||
42 | }; | ||
43 | |||
44 | struct icaldurationtype icaldurationtype_from_int(int t); | ||
45 | struct icaldurationtype icaldurationtype_from_string(const char*); | ||
46 | int icaldurationtype_as_int(struct icaldurationtype duration); | ||
47 | char* icaldurationtype_as_ical_string(struct icaldurationtype d); | ||
48 | struct icaldurationtype icaldurationtype_null_duration(); | ||
49 | int icaldurationtype_is_null_duration(struct icaldurationtype d); | ||
50 | |||
51 | struct icaltimetype icaltime_add(struct icaltimetype t, | ||
52 | struct icaldurationtype d); | ||
53 | |||
54 | struct icaldurationtype icaltime_subtract(struct icaltimetype t1, | ||
55 | struct icaltimetype t2); | ||
56 | |||
57 | #endif /* !ICALDURATION_H */ | ||
58 | |||
59 | |||
60 | |||