Don't declare 'Chunk' as both public and private, that's just daft.
[oweals/cde.git] / cde / lib / csa / rpccalls.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: rpccalls.h /main/1 1996/04/21 19:24:24 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 _RPCCALLS_H
32 #define _RPCCALLS_H
33
34 #include <EUSCompat.h>
35 #include "ansi_c.h"
36 #include "csa.h"
37 #include "entry.h"
38
39 /*
40  * interface to cm rpc calls
41  */
42
43 extern CSA_return_code _DtCm_rpc_open_calendar P((Calendar *cal));
44
45 extern CSA_return_code _DtCm_rpc_create_calendar P((
46                                 Calendar *cal,
47                                 CSA_uint32 num_attrs,
48                                 CSA_attribute * attrs));
49
50 extern CSA_return_code _DtCm_rpc_delete_calendar P((Calendar *cal));
51
52 extern CSA_return_code _DtCm_rpc_register_client P((
53                                 Calendar *cal,
54                                 unsigned long type));
55
56 extern CSA_return_code _DtCm_rpc_unregister_client P((
57                                 Calendar *cal,
58                                 unsigned long type));
59
60 extern CSA_return_code _DtCm_rpc_enumerate_sequence P((
61                                 Calendar *cal,
62                                 _DtCm_libentry *entry,
63                                 time_t start,
64                                 time_t end,
65                                 _DtCm_libentry **elist_r));
66
67 extern CSA_return_code _DtCm_rpc_lookup_entries P((
68                                 Calendar *cal,
69                                 CSA_uint32 size,
70                                 CSA_attribute * attrs,
71                                 CSA_enum *ops,
72                                 _DtCm_libentry **entries_r));
73
74 extern CSA_return_code _DtCm_rpc_lookup_entry_by_id P((
75                                 Calendar *cal,
76                                 _DtCm_libentry *entry));
77
78 extern CSA_return_code _DtCm_rpc_lookup_reminder P((
79                                 Calendar *cal,
80                                 time_t tick,
81                                 CSA_uint32 num_names,
82                                 char **reminder_names,
83                                 CSA_uint32 *num_rems,
84                                 CSA_reminder_reference **rems));
85
86 extern CSA_return_code _DtCm_rpc_set_cal_attrs P((
87                                 Calendar *cal,
88                                 CSA_uint32 num_attrs,
89                                 CSA_attribute * attrs));
90
91 extern CSA_return_code _DtCm_rpc_get_cal_attrs P((
92                                 Calendar        *cal,
93                                 int             index,
94                                 CSA_uint32      num_attrs,
95                                 char            **names));
96
97 extern CSA_return_code _DtCm_rpc_insert_entry P((
98                                 Calendar *cal,
99                                 CSA_uint32 num_attrs,
100                                 CSA_attribute * attrs,
101                                 _DtCm_libentry **entry_r));
102
103 extern CSA_return_code _DtCm_rpc_delete_entry P((
104                                 Calendar *cal,
105                                 _DtCm_libentry *entry,
106                                 CSA_enum scope));
107
108 extern CSA_return_code _DtCm_rpc_update_entry P((
109                                 Calendar *cal,
110                                 _DtCm_libentry *oentry,
111                                 CSA_uint32 num_attrs,
112                                 CSA_attribute * attrs,
113                                 CSA_enum scope,
114                                 _DtCm_libentry **nentry));
115
116 extern CSA_return_code _DtCm_rpc_list_calendar_attributes P((
117                                 Calendar        *cal,
118                                 CSA_uint32      *number_names,
119                                 char            ***names_r));
120
121 extern CSA_return_code _DtCm_rpc_list_calendars P((
122                                 char                    *location,
123                                 CSA_uint32              *number_names,
124                                 CSA_calendar_user       **names_r));
125
126 extern CSA_return_code _DtCm_do_unregistration P((
127                                 _DtCm_Connection *conn,
128                                 char *cal,
129                                 unsigned long update_type));
130
131 extern CSA_return_code _DtCm_do_registration P((
132                                 _DtCm_Connection *conn,
133                                 char *cal,
134                                 unsigned long update_type));
135
136 #endif
137