Back to index

lightning-sunbird  0.9+nobinonly
icalduration.h
Go to the documentation of this file.
00001 /* -*- Mode: C -*- */
00002 /*======================================================================
00003  FILE: icalduration.h
00004  CREATOR: eric 26 Jan 2001
00005 
00006 
00007  $Id: icalduration.h,v 1.3 2002/09/26 22:04:56 lindner Exp $
00008  $Locker:  $
00009 
00010  (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
00011 
00012  This program is free software; you can redistribute it and/or modify
00013  it under the terms of either: 
00014 
00015     The LGPL as published by the Free Software Foundation, version
00016     2.1, available at: http://www.fsf.org/copyleft/lesser.html
00017 
00018   Or:
00019 
00020     The Mozilla Public License Version 1.0. You may obtain a copy of
00021     the License at http://www.mozilla.org/MPL/
00022 
00023  The Original Code is eric. The Initial Developer of the Original
00024  Code is Eric Busboom
00025 
00026 
00027 ======================================================================*/
00028 
00029 #ifndef ICALDURATION_H
00030 #define ICALDURATION_H
00031 
00032 #include "icaltime.h"
00033 
00034 struct icaldurationtype
00035 {
00036        int is_neg;
00037        unsigned int days;
00038        unsigned int weeks;
00039        unsigned int hours;
00040        unsigned int minutes;
00041        unsigned int seconds;
00042 };
00043 
00044 struct icaldurationtype icaldurationtype_from_int(int t);
00045 struct icaldurationtype icaldurationtype_from_string(const char*);
00046 int icaldurationtype_as_int(struct icaldurationtype duration);
00047 char* icaldurationtype_as_ical_string(struct icaldurationtype d);
00048 struct icaldurationtype icaldurationtype_null_duration(void);
00049 struct icaldurationtype icaldurationtype_bad_duration(void);
00050 int icaldurationtype_is_null_duration(struct icaldurationtype d);
00051 int icaldurationtype_is_bad_duration(struct icaldurationtype d);
00052 
00053 struct icaltimetype  icaltime_add(struct icaltimetype t,
00054                               struct icaldurationtype  d);
00055 
00056 struct icaldurationtype  icaltime_subtract(struct icaltimetype t1,
00057                                       struct icaltimetype t2);
00058 
00059 #endif /* !ICALDURATION_H */
00060 
00061 
00062