138 lines
3.6 KiB
C
138 lines
3.6 KiB
C
/*
|
|
* CDE - Common Desktop Environment
|
|
*
|
|
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
*
|
|
* These libraries and programs are free software; you can
|
|
* redistribute them and/or modify them under the terms of the GNU
|
|
* Lesser General Public License as published by the Free Software
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* These libraries and programs are distributed in the hope that
|
|
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU Lesser General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with these libraries and programs; if not, write
|
|
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
* Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
/* $XConsortium: rpccalls.h /main/1 1996/04/21 19:24:24 drk $ */
|
|
/*
|
|
* (c) Copyright 1993, 1994 Hewlett-Packard Company
|
|
* (c) Copyright 1993, 1994 International Business Machines Corp.
|
|
* (c) Copyright 1993, 1994 Novell, Inc.
|
|
* (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
|
*/
|
|
|
|
#ifndef _RPCCALLS_H
|
|
#define _RPCCALLS_H
|
|
|
|
#include <EUSCompat.h>
|
|
#include "ansi_c.h"
|
|
#include "csa.h"
|
|
#include "entry.h"
|
|
|
|
/*
|
|
* interface to cm rpc calls
|
|
*/
|
|
|
|
extern CSA_return_code _DtCm_rpc_open_calendar(Calendar *cal);
|
|
|
|
extern CSA_return_code _DtCm_rpc_create_calendar(
|
|
Calendar *cal,
|
|
CSA_uint32 num_attrs,
|
|
CSA_attribute * attrs);
|
|
|
|
extern CSA_return_code _DtCm_rpc_delete_calendar(Calendar *cal);
|
|
|
|
extern CSA_return_code _DtCm_rpc_register_client(
|
|
Calendar *cal,
|
|
unsigned long type);
|
|
|
|
extern CSA_return_code _DtCm_rpc_unregister_client(
|
|
Calendar *cal,
|
|
unsigned long type);
|
|
|
|
extern CSA_return_code _DtCm_rpc_enumerate_sequence(
|
|
Calendar *cal,
|
|
_DtCm_libentry *entry,
|
|
time_t start,
|
|
time_t end,
|
|
_DtCm_libentry **elist_r);
|
|
|
|
extern CSA_return_code _DtCm_rpc_lookup_entries(
|
|
Calendar *cal,
|
|
CSA_uint32 size,
|
|
CSA_attribute * attrs,
|
|
CSA_enum *ops,
|
|
_DtCm_libentry **entries_r);
|
|
|
|
extern CSA_return_code _DtCm_rpc_lookup_entry_by_id(
|
|
Calendar *cal,
|
|
_DtCm_libentry *entry);
|
|
|
|
extern CSA_return_code _DtCm_rpc_lookup_reminder(
|
|
Calendar *cal,
|
|
time_t tick,
|
|
CSA_uint32 num_names,
|
|
char **reminder_names,
|
|
CSA_uint32 *num_rems,
|
|
CSA_reminder_reference **rems);
|
|
|
|
extern CSA_return_code _DtCm_rpc_set_cal_attrs(
|
|
Calendar *cal,
|
|
CSA_uint32 num_attrs,
|
|
CSA_attribute * attrs);
|
|
|
|
extern CSA_return_code _DtCm_rpc_get_cal_attrs(
|
|
Calendar *cal,
|
|
int index,
|
|
CSA_uint32 num_attrs,
|
|
char **names);
|
|
|
|
extern CSA_return_code _DtCm_rpc_insert_entry(
|
|
Calendar *cal,
|
|
CSA_uint32 num_attrs,
|
|
CSA_attribute * attrs,
|
|
_DtCm_libentry **entry_r);
|
|
|
|
extern CSA_return_code _DtCm_rpc_delete_entry(
|
|
Calendar *cal,
|
|
_DtCm_libentry *entry,
|
|
CSA_enum scope);
|
|
|
|
extern CSA_return_code _DtCm_rpc_update_entry(
|
|
Calendar *cal,
|
|
_DtCm_libentry *oentry,
|
|
CSA_uint32 num_attrs,
|
|
CSA_attribute * attrs,
|
|
CSA_enum scope,
|
|
_DtCm_libentry **nentry);
|
|
|
|
extern CSA_return_code _DtCm_rpc_list_calendar_attributes(
|
|
Calendar *cal,
|
|
CSA_uint32 *number_names,
|
|
char ***names_r);
|
|
|
|
extern CSA_return_code _DtCm_rpc_list_calendars(
|
|
char *location,
|
|
CSA_uint32 *number_names,
|
|
CSA_calendar_user **names_r);
|
|
|
|
extern CSA_return_code _DtCm_do_unregistration(
|
|
_DtCm_Connection *conn,
|
|
char *cal,
|
|
unsigned long update_type);
|
|
|
|
extern CSA_return_code _DtCm_do_registration(
|
|
_DtCm_Connection *conn,
|
|
char *cal,
|
|
unsigned long update_type);
|
|
|
|
#endif
|
|
|