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: entry.h /main/1 1996/04/21 19:23:13 drk $ */
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.
35 * This file contains the internal data structure of entries.
38 #include <EUSCompat.h>
44 typedef struct _libentry {
45 void *handle; /* for sanity check */
46 Calendar *cal; /* associated calendar */
49 struct _libentry *next;
50 struct _libentry *prev;
53 /* function prototypes */
55 extern _DtCm_libentry *_DtCm_get_libentry P((CSA_entry_handle entryh));
57 extern CSA_return_code _DtCm_make_libentry P((
59 _DtCm_libentry **entry_r));
61 extern CSA_return_code _DtCm_get_entry_detail P((_DtCm_libentry *entry));
63 extern CSA_return_code _DtCm_get_entry_attr_names P((
64 _DtCm_libentry *entry,
65 CSA_uint32 *num_names_r,
68 extern CSA_return_code _DtCm_get_entry_attrs_by_name P((
69 _DtCm_libentry *entry,
71 CSA_attribute_reference *names,
72 CSA_uint32 *num_attrs,
73 CSA_attribute **attrs));
75 extern CSA_return_code _DtCm_get_all_entry_attrs P((
76 _DtCm_libentry *entry,
77 CSA_uint32 *num_attrs,
78 CSA_attribute **attrs));
80 extern CSA_return_code _DtCm_libentry_to_entryh P((
81 _DtCm_libentry *elist,
83 CSA_entry_handle **entries_r));
85 extern CSA_return_code _DtCmCmsentriesToLibentries P((
88 _DtCm_libentry **libentries));
90 extern CSA_return_code _DtCm_appt4_to_libentries P((
93 _DtCm_libentry **libentries));
95 extern CSA_return_code _DtCm_libentries_to_appt4 P((
96 _DtCm_libentry *libentries,
99 extern CSA_return_code _DtCm_reminder4_to_csareminder P((
101 CSA_uint32 *num_rems,
102 CSA_reminder_reference **rems));
104 extern _DtCm_libentry *_DtCm_convert_entry_wheader P((_DtCm_libentry *entry));
106 extern void _DtCm_free_libentries_from_list P((
107 _DtCm_libentry *head,
108 _DtCm_libentry *tail));
110 extern void _DtCm_free_libentries P((_DtCm_libentry *entries));
112 extern void _DtCm_free_entry_handles P((
114 CSA_entry_handle *entries));
116 extern void _DtCm_free_reminder_references P((
118 CSA_reminder_reference *rems));
120 extern void _DtCm_free_entry_content P((uint dummy, _DtCm_libentry *entry));
122 extern CSA_return_code _DtCm_cms2csa_reminder_ref P((
123 cms_reminder_ref *cmsrems,
124 CSA_uint32 *num_rems,
125 CSA_reminder_reference **csarems));