diff options
author | Federico Mena Quintero <federico@src.gnome.org> | 2000-12-12 06:07:10 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-12-12 06:07:10 +0800 |
commit | 1a8645d8b85f46d34ff24f1f7bdc69bfd32282d4 (patch) | |
tree | e6bb5fd749b39ef9a0c2f29353986d9e9854c8b6 /libical/src/libicalss/icalspanlist.h | |
parent | 23be726b6025c8e1a656840903da15f7d1f3fb37 (diff) | |
download | gsoc2013-evolution-1a8645d8b85f46d34ff24f1f7bdc69bfd32282d4.tar gsoc2013-evolution-1a8645d8b85f46d34ff24f1f7bdc69bfd32282d4.tar.gz gsoc2013-evolution-1a8645d8b85f46d34ff24f1f7bdc69bfd32282d4.tar.bz2 gsoc2013-evolution-1a8645d8b85f46d34ff24f1f7bdc69bfd32282d4.tar.lz gsoc2013-evolution-1a8645d8b85f46d34ff24f1f7bdc69bfd32282d4.tar.xz gsoc2013-evolution-1a8645d8b85f46d34ff24f1f7bdc69bfd32282d4.tar.zst gsoc2013-evolution-1a8645d8b85f46d34ff24f1f7bdc69bfd32282d4.zip |
Initial revision
svn path=/trunk/; revision=6915
Diffstat (limited to 'libical/src/libicalss/icalspanlist.h')
-rw-r--r-- | libical/src/libicalss/icalspanlist.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/libical/src/libicalss/icalspanlist.h b/libical/src/libicalss/icalspanlist.h new file mode 100644 index 0000000000..83cb1c8a6d --- /dev/null +++ b/libical/src/libicalss/icalspanlist.h @@ -0,0 +1,54 @@ +/* -*- Mode: C -*- */ +/*====================================================================== + FILE: icalspanlist.h + CREATOR: eric 21 Aug 2000 + + + $Id$ + $Locker$ + + (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org + + This program is free software; you can redistribute it and/or modify + it under the terms of either: + + The LGPL as published by the Free Software Foundation, version + 2.1, available at: http://www.fsf.org/copyleft/lesser.html + + Or: + + The Mozilla Public License Version 1.0. You may obtain a copy of + the License at http://www.mozilla.org/MPL/ + + + =========================================================================*/ +#ifndef ICALSPANLIST_H +#define ICALSPANLIST_H + +#include "ical.h" +#include "icalset.h" + +typedef void icalspanlist; + +/* Make a free list from a set of component. Start and end should be in UTC */ +icalspanlist* icalspanlist_new(icalset *set, + struct icaltimetype start, + struct icaltimetype end); + +void icalspanlist_free(icalspanlist* spl); + +icalcomponent* icalspanlist_make_free_list(icalspanlist* sl); +icalcomponent* icalspanlist_make_busy_list(icalspanlist* sl); + +/* Get first free or busy time after time t. all times are in UTC */ +struct icalperiodtype icalspanlist_next_free_time(icalspanlist* sl, + struct icaltimetype t); +struct icalperiodtype icalspanlist_next_busy_time(icalspanlist* sl, + struct icaltimetype t); + +void icalspanlist_dump(icalspanlist* s); + +#endif + + + |