Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / csa / convert5-4.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: convert5-4.h /main/1 1996/04/21 19:22:58 drk $ */
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 _CONVERT5_4_H
32 #define _CONVERT5_4_H
33
34 #include <EUSCompat.h>
35 #include "ansi_c.h"
36 #include "cm.h"
37 #include "rtable4.h"
38
39 /*
40  * conversion routines for rpc.cmsd version 5 to rpc.cmsd version 4 data types
41  */
42 extern CSA_return_code _DtCm_cmsattrs_to_apptdata P((
43                                 uint num_attrs,
44                                 cms_attribute *attrs,
45                                 Appt_4 *appt4));
46
47 extern CSA_return_code _DtCm_attrs_to_apptdata P((
48                                 uint size,
49                                 CSA_attribute *attrs,
50                                 Appt_4 *appt));
51
52 extern CSA_return_code _DtCm_cms_entry_to_appt4 P((
53                                 cms_entry *entry,
54                                 Appt_4 **appt4));
55
56 extern CSA_return_code _DtCm_attrs_to_appt4 P((
57                                 uint num_attrs,
58                                 CSA_attribute *attrs,
59                                 Appt_4 **appt4_r));
60
61 extern CSA_return_code _DtCm_scope_to_options4 P((
62                                 CSA_enum scope,
63                                 Options_4 *opt));
64
65 extern CSA_return_code _DtCm_csaaccesslist_toaccessentry4 P((
66                                 CSA_access_list alist,
67                                 Access_Entry_4 **a4));
68
69 extern int _DtCm_string_to_eventtype4 P((
70                                 char *val,
71                                 Event_Type_4 *tag));
72
73 extern int _DtCm_rtype_to_interval4 P((
74                                 int val,
75                                 Interval_4 *period));
76
77 extern int _DtCm_status_to_apptstatus4 P((
78                                 int val,
79                                 Appt_Status_4 *astat));
80
81 extern int _DtCm_classification_to_privacy4 P((
82                                 int val,
83                                 Privacy_Level_4 *privacy));
84
85 extern CSA_return_code _DtCm_attrs_to_eventtype4 P((
86                                 cms_attribute_value     *type,
87                                 cms_attribute_value     *stype,
88                                 Tag_4                   *tag));
89
90 extern CSA_return_code _DtCm_remove_reminder P((char *rem, Appt_4 *appt));
91
92 extern CSA_return_code _DtCm_add_reminder P((
93                                 char *rem,
94                                 CSA_reminder * val,
95                                 Appt_4 *appt));
96
97 extern int _DtCmAccessRightToV4AccessType P((unsigned int access));
98
99 #endif