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