dtcm: Resolve CID 87713
[oweals/cde.git] / cde / programs / dtcm / server / v5ops.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: v5ops.h /main/4 1995/11/09 12:56:05 rswiston $ */
24 /*
25  *  (c) Copyright 1993, 1994 Hewlett-Packard Company
26  *  (c) Copyright 1993, 1994 International Business Machines Corp.
27  *  (c) Copyright 1993, 1994 Novell, Inc.
28  *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
29  */
30
31 #ifndef _V5OPS_H
32 #define _V5OPS_H
33
34 #include "ansi_c.h"
35 #include "cm.h"
36 #include "cmscalendar.h"
37 #include "rerule.h"
38 #include "repeat.h"
39
40 extern _DtCmsComparisonResult _DtCmsCompareEntry P((
41                                 cms_key *key,
42                                 caddr_t data));
43
44 extern _DtCmsComparisonResult _DtCmsCompareRptEntry P((
45                                 cms_key *key,
46                                 caddr_t data));
47
48 extern caddr_t _DtCmsGetEntryKey P((caddr_t data));
49
50 extern CSA_return_code _DtCmsSetLastUpdate P((cms_entry *entry));
51
52 extern void _DtCmsConvertToOnetime P((cms_entry *entry, RepeatEvent *re));
53
54 extern int _DtCmsGetDuration P((cms_entry *eptr));
55
56 extern CSA_return_code _DtCmsCheckInitialAttributes P((cms_entry *entry));
57
58 extern CSA_return_code _DtCmsCheckStartEndTime P((cms_entry *entry));
59
60 extern void _DtCmsCleanupExceptionDates P((cms_entry *newe, long ftick));
61
62 extern int _DtCmsNumberExceptionDates P((cms_entry *entry));
63
64 extern CSA_return_code _DtCmsUpdateDurationInRule P((
65                                 cms_entry       *entry,
66                                 uint            remain));
67
68 extern CSA_return_code _DtCmsAddEndDateToRule P((
69                                 cms_attribute   *attr,
70                                 RepeatEvent     *re,
71                                 long            time));
72 #endif