dtcm: Resolve CID 87822
[oweals/cde.git] / cde / programs / dtcm / server / lookup.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: lookup.h /main/4 1995/11/09 12:46:47 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 _LOOKUP_H
32 #define _LOOKUP_H
33
34 #include "ansi_c.h"
35 #include "cm.h"
36 #include "cmscalendar.h"
37
38 extern _DtCmsComparisonResult _DtCmsCompareEntry P((
39                                 cms_key *key,
40                                 caddr_t data));
41
42 extern _DtCmsComparisonResult _DtCmsCompareRptEntry P((
43                                 cms_key *key,
44                                 caddr_t data));
45
46 extern caddr_t _DtCmsGetEntryKey P((caddr_t data));
47
48 extern CSA_return_code _DtCmsLookupEntries P((
49                         _DtCmsCalendar  *cal,
50                         char            *sender,
51                         uint            access,
52                         time_t          start1,
53                         time_t          start2,
54                         boolean_t       no_end_time_range,
55                         time_t          end1,
56                         time_t          end2,
57                         CSA_uint32      num_attrs,
58                         cms_attribute   *attrs,
59                         CSA_enum        *ops,
60                         cms_entry       **entries));
61
62 extern CSA_return_code _DtCmsLookupEntriesById P((
63                         _DtCmsCalendar  *cal,
64                         char            *sender,
65                         uint            access,
66                         boolean_t       no_start_time_range,
67                         boolean_t       no_end_time_range,
68                         time_t          start1,
69                         time_t          start2,
70                         time_t          end1,
71                         time_t          end2,
72                         long            id,
73                         CSA_uint32      num_attrs,
74                         cms_attribute   *attrs,
75                         CSA_enum        *ops,
76                         cms_entry       **entries));
77
78 extern CSA_return_code _DtCmsEnumerateSequenceById P((
79                         _DtCmsCalendar  *cal,
80                         char            *sender,
81                         uint            access,
82                         boolean_t       no_start_time_range,
83                         boolean_t       no_end_time_range,
84                         time_t          start1,
85                         time_t          start2,
86                         time_t          end1,
87                         time_t          end2,
88                         long            id,
89                         CSA_uint32      num_attrs,
90                         cms_attribute   *attrs,
91                         CSA_enum        *ops,
92                         cms_entry       **entries));
93
94 extern CSA_return_code _DtCmsLookupEntriesByKey P((
95                         _DtCmsCalendar  *cal,
96                         char            *sender,
97                         uint            access,
98                         uint            num_keys,
99                         cms_key         *keys,
100                         uint            num_names,
101                         cms_attr_name   *names,
102                         cms_get_entry_attr_res_item **res));
103
104
105 extern CSA_return_code _DtCmsGetEntryAttrByKey P((
106                         _DtCmsCalendar  *cal,
107                         char            *sender,
108                         uint            access,
109                         cms_key         key,
110                         uint            num_names,
111                         cms_attr_name   *names,
112                         cms_entry       **entry_r,
113                         cms_get_entry_attr_res_item **res_r));
114
115 #endif