2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: v4ops.h /main/4 1995/11/09 12:55:26 rswiston $ */
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.
38 #include "cmscalendar.h"
40 #define is_appointment(p_appt) ((p_appt)->period.period == single_4)
41 #define is_repeater(p_appt) ((p_appt)->period.period != single_4)
43 typedef struct __DtCmsEntryId {
45 struct __DtCmsEntryId *next;
48 extern CSA_return_code _DtCmsInsertAppt P((_DtCmsCalendar *cal, Appt_4 *appt4));
50 extern CSA_return_code _DtCmsDeleteAppt P((
57 extern CSA_return_code _DtCmsDeleteApptAndLog P((
64 extern CSA_return_code _DtCmsDeleteApptInstancesAndLog P((
73 extern CSA_return_code _DtCmsChangeAll P((
81 extern CSA_return_code _DtCmsChangeSome P((
90 extern CSA_return_code _DtCmsInsertApptAndLog P((
94 extern _DtCmsComparisonResult _DtCmsCompareAppt P((Id_4 *key, caddr_t data));
96 extern _DtCmsComparisonResult _DtCmsCompareRptAppt P((Id_4 *key, caddr_t data));
98 extern caddr_t _DtCmsGetApptKey P((caddr_t data));
100 extern CSA_return_code v4_transact_log P((
105 extern CSA_return_code _DtCmsLookupRangeV4 P((
110 boolean_t no_end_time_range,
113 boolean_t (*match_func)(),
115 cms_attribute *attrs,
118 Abb_Appt_4 **abbr_r));
120 extern CSA_return_code _DtCmsLookupKeyrangeV4 P((
124 boolean_t no_start_time_range,
125 boolean_t no_end_time_range,
131 boolean_t (*match_func)(),
133 cms_attribute *attrs,
136 Abb_Appt_4 **abbr_r));
138 extern CSA_return_code _AddToLinkedAppts P((
144 extern CSA_return_code _AddToLinkedAbbrAppts P((
150 extern Privacy_Level_4 _GetAccessLevel P((
155 extern Appt_4 * _AddApptInOrder P((Appt_4 * head, Appt_4 * aptr));
157 extern Abb_Appt_4 * _AddAbbApptInOrder P((Abb_Appt_4 *head, Abb_Appt_4 *aptr));
159 extern CSA_return_code _DtCmsSetV4AccessListAndLog P((
161 Access_Entry_4 *alist));
163 extern CSA_return_code _DtCmsGetV4Reminders P((
167 _DtCmsEntryId **ids_r));
169 extern void _DtCmsFreeEntryIds P((_DtCmsEntryId *ids));
171 extern CSA_return_code _DtCmsTruncateElist P((
176 extern CSA_return_code _DtCmsSetV4AccessListInCal P((