1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

libcsa: Always use ANSI function prototypes

This commit is contained in:
Peter Howkins 2020-11-27 16:58:22 +00:00
parent aef196c6ca
commit c62a5049ed
26 changed files with 392 additions and 401 deletions

View file

@ -33,8 +33,8 @@
#include "ansi_c.h" #include "ansi_c.h"
extern void _DtCm_init_agent P(()); extern void _DtCm_init_agent(void);
extern void _DtCm_destroy_agent P(()); extern void _DtCm_destroy_agent(void);
extern void _DtCm_process_updates P(()); extern void _DtCm_process_updates(void);
#endif /* _AGENT_P_H */ #endif /* _AGENT_P_H */

View file

@ -36,28 +36,19 @@
#include <stdlib.h> #include <stdlib.h>
/*
** For all function declarations, if ANSI, then use a prototype
*/
#if defined(__STDC__)
#define P(args) args
#else
#define P(args) ()
#endif
#ifdef SunOS #ifdef SunOS
extern char *fconvert P((double, int, int*, int*, char*)); extern char *fconvert(double, int, int*, int*, char*))
extern int isascii P((int)); extern int isascii(int);
extern int kill P((long, int)); extern int kill(long, int);
extern char *mktemp P((char*)); extern char *mktemp(char*);
extern int strcasecmp P((const char*, const char*)); extern int strcasecmp(const char*, const char*);
extern int strncasecmp P((const char*, const char*, size_t)); extern int strncasecmp(const char*, const char*, size_t);
extern char *strdup P((const char*)); extern char *strdup (const char*);
#endif #endif
#ifdef NEED_STRCASECMP #ifdef NEED_STRCASECMP
int strcasecmp P((const char*, const char*)); int strcasecmp(const char*, const char*);
int strncasecmp P((const char*, const char*, size_t)); int strncasecmp(const char*, const char*, size_t);
#endif #endif
#endif #endif

View file

@ -38,42 +38,42 @@
#include "rtable4.h" #include "rtable4.h"
#include "ansi_c.h" #include "ansi_c.h"
extern Appt_4 *_DtCm_make_appt4 P(()); extern Appt_4 *_DtCm_make_appt4();
extern Appt_4 *_DtCm_copy_one_appt4 P((Appt_4 *a4)); extern Appt_4 *_DtCm_copy_one_appt4(Appt_4 *a4);
extern Appt_4 *_DtCm_copy_appt4 P((Appt_4 *a4)); extern Appt_4 *_DtCm_copy_appt4(Appt_4 *a4);
extern Appt_4 *_DtCm_copy_semiprivate_appt4 P((Appt_4 *original)); extern Appt_4 *_DtCm_copy_semiprivate_appt4(Appt_4 *original);
extern Except_4 *_DtCm_copy_excpt4 P((Except_4 *e4)); extern Except_4 *_DtCm_copy_excpt4(Except_4 *e4);
extern Abb_Appt_4 *_DtCm_appt_to_abbrev4 P((Appt_4 *original)); extern Abb_Appt_4 *_DtCm_appt_to_abbrev4(Appt_4 *original);
extern Abb_Appt_4 *_DtCm_appt_to_semiprivate_abbrev4 P((Appt_4 *original)); extern Abb_Appt_4 *_DtCm_appt_to_semiprivate_abbrev4(Appt_4 *original);
extern void _DtCm_free_appt4 P((Appt_4 *a)); extern void _DtCm_free_appt4(Appt_4 *a);
extern void _DtCm_free_abbrev_appt4 P((Abb_Appt_4 *a)); extern void _DtCm_free_abbrev_appt4(Abb_Appt_4 *a);
extern Attribute_4 * _DtCm_make_attr4 P(()); extern Attribute_4 * _DtCm_make_attr4();
extern void _DtCm_free_attr4 P((Attribute_4 *a)); extern void _DtCm_free_attr4(Attribute_4 *a);
extern Reminder_4 *_DtCm_copy_reminder4 P((Reminder_4 *r4)); extern Reminder_4 *_DtCm_copy_reminder4(Reminder_4 *r4);
extern void _DtCm_free_reminder4 P((Reminder_4 *r)); extern void _DtCm_free_reminder4(Reminder_4 *r);
extern void _DtCm_free_keyentry4 P((Uid_4 *k)); extern void _DtCm_free_keyentry4(Uid_4 *k);
extern Access_Entry_4 *_DtCm_make_access_entry4 P((char *who, int perms)); extern Access_Entry_4 *_DtCm_make_access_entry4(char *who, int perms);
extern Access_Entry_4 *_DtCm_copy_access_list4 P((Access_Entry_4 *l4)); extern Access_Entry_4 *_DtCm_copy_access_list4(Access_Entry_4 *l4);
extern void _DtCm_free_access_list4 P((Access_Entry_4 *l)); extern void _DtCm_free_access_list4(Access_Entry_4 *l);
extern void _DtCm_free_excpt4 P((Except_4 *e)); extern void _DtCm_free_excpt4(Except_4 *e);
extern char * _DtCm_get_default_what_string P(()); extern char * _DtCm_get_default_what_string();
#endif #endif

View file

@ -110,16 +110,16 @@ extern _DtCmAttrInfo _CSA_entry_attr_info[];
* external function declarations * external function declarations
*/ */
extern CSA_return_code _DtCm_check_cal_csa_attributes P(( extern CSA_return_code _DtCm_check_cal_csa_attributes(
int fvers, int fvers,
uint num_attrs, uint num_attrs,
CSA_attribute *attrs, CSA_attribute *attrs,
char *cname, char *cname,
boolean_t checkreadonly, boolean_t checkreadonly,
boolean_t firsttime, boolean_t firsttime,
boolean_t checkattrnum)); boolean_t checkattrnum);
extern CSA_return_code _DtCm_check_cal_cms_attributes P(( extern CSA_return_code _DtCm_check_cal_cms_attributes(
int fvers, int fvers,
uint num_attrs, uint num_attrs,
cms_attribute *attrs, cms_attribute *attrs,
@ -127,154 +127,154 @@ extern CSA_return_code _DtCm_check_cal_cms_attributes P((
char *cname, char *cname,
boolean_t checkreadonly, boolean_t checkreadonly,
boolean_t firsttime, boolean_t firsttime,
boolean_t checkattrnum)); boolean_t checkattrnum);
extern CSA_return_code _DtCm_check_entry_attributes P(( extern CSA_return_code _DtCm_check_entry_attributes(
int fversion, int fversion,
uint size, uint size,
CSA_attribute *attrs, CSA_attribute *attrs,
CSA_flags utype, CSA_flags utype,
boolean_t checkattrnum)); boolean_t checkattrnum);
extern CSA_return_code _DtCm_check_entry_cms_attributes P(( extern CSA_return_code _DtCm_check_entry_cms_attributes(
int fvers, int fvers,
uint num_attrs, uint num_attrs,
cms_attribute *attrs, cms_attribute *attrs,
CSA_flags utype, CSA_flags utype,
boolean_t checkattrnum)); boolean_t checkattrnum);
extern CSA_return_code _DtCm_copy_cms_attributes P(( extern CSA_return_code _DtCm_copy_cms_attributes(
uint srcsize, uint srcsize,
cms_attribute *srcattrs, cms_attribute *srcattrs,
uint *dstsize, uint *dstsize,
cms_attribute **dstattrs)); cms_attribute **dstattrs);
extern CSA_return_code _DtCm_copy_cms_attribute P(( extern CSA_return_code _DtCm_copy_cms_attribute(
cms_attribute *to, cms_attribute *to,
cms_attribute *from, cms_attribute *from,
boolean_t copyname)); boolean_t copyname);
extern CSA_return_code _DtCm_copy_cms_attr_val P(( extern CSA_return_code _DtCm_copy_cms_attr_val(
cms_attribute_value *from, cms_attribute_value *from,
cms_attribute_value **to)); cms_attribute_value **to);
extern cms_access_entry *_DtCm_copy_cms_access_list P(( extern cms_access_entry *_DtCm_copy_cms_access_list(
cms_access_entry *alist)); cms_access_entry *alist);
extern CSA_date_time_list _DtCm_copy_date_time_list P(( extern CSA_date_time_list _DtCm_copy_date_time_list(
CSA_date_time_list dlist)); CSA_date_time_list dlist);
extern CSA_return_code _DtCm_cms2csa_attribute P(( extern CSA_return_code _DtCm_cms2csa_attribute(
cms_attribute from, cms_attribute from,
CSA_attribute *to)); CSA_attribute *to);
extern CSA_return_code _DtCm_cms2csa_attrval P(( extern CSA_return_code _DtCm_cms2csa_attrval(
cms_attribute_value *from, cms_attribute_value *from,
CSA_attribute_value **to)); CSA_attribute_value **to);
extern CSA_return_code _DtCm_cms2csa_access_list P(( extern CSA_return_code _DtCm_cms2csa_access_list(
cms_access_entry *cmslist, cms_access_entry *cmslist,
CSA_access_rights **csalist)); CSA_access_rights **csalist);
extern CSA_return_code _DtCm_csa2cms_access_list P(( extern CSA_return_code _DtCm_csa2cms_access_list(
CSA_access_rights *csalist, CSA_access_rights *csalist,
cms_access_entry **cmslist)); cms_access_entry **cmslist);
extern CSA_return_code _DtCm_copy_reminder P(( extern CSA_return_code _DtCm_copy_reminder(
CSA_reminder *from, CSA_reminder *from,
CSA_reminder **to)); CSA_reminder **to);
extern CSA_return_code _DtCm_copy_opaque_data P(( extern CSA_return_code _DtCm_copy_opaque_data(
CSA_opaque_data *from, CSA_opaque_data *from,
CSA_opaque_data **to)); CSA_opaque_data **to);
extern void _DtCm_free_csa_access_list P((CSA_access_list alist)); extern void _DtCm_free_csa_access_list(CSA_access_list alist);
extern void _DtCm_free_cms_attributes P(( extern void _DtCm_free_cms_attributes(
uint size, uint size,
cms_attribute *attrs)); cms_attribute *attrs);
extern void _DtCm_free_attributes P(( extern void _DtCm_free_attributes(
uint size, uint size,
CSA_attribute * attrs)); CSA_attribute * attrs);
extern void _DtCm_free_cms_attribute_values P(( extern void _DtCm_free_cms_attribute_values(
uint size, uint size,
cms_attribute *attrs)); cms_attribute *attrs);
extern void _DtCm_free_attribute_values P(( extern void _DtCm_free_attribute_values(
uint size, uint size,
CSA_attribute *attrs)); CSA_attribute *attrs);
extern void _DtCm_free_cms_attribute_value P(( extern void _DtCm_free_cms_attribute_value(
cms_attribute_value *val)); cms_attribute_value *val);
extern void _DtCm_free_attribute_value P(( extern void _DtCm_free_attribute_value(
CSA_attribute_value *val)); CSA_attribute_value *val);
extern void _DtCm_free_cms_access_entry P((cms_access_entry *list)); extern void _DtCm_free_cms_access_entry(cms_access_entry *list);
extern void _DtCm_free_date_time_list P((CSA_date_time_list list)); extern void _DtCm_free_date_time_list(CSA_date_time_list list);
extern void _DtCm_free_reminder P((CSA_reminder *val)); extern void _DtCm_free_reminder(CSA_reminder *val);
extern void _DtCm_free_opaque_data P((CSA_opaque_data *val)); extern void _DtCm_free_opaque_data(CSA_opaque_data *val);
extern char *_DtCm_old_reminder_name_to_name P(( extern char *_DtCm_old_reminder_name_to_name(
char *oldname)); char *oldname);
extern int _DtCm_old_reminder_name_to_index P(( extern int _DtCm_old_reminder_name_to_index(
char *name)); char *name);
extern CSA_return_code _DtCm_get_old_attr_by_name P(( extern CSA_return_code _DtCm_get_old_attr_by_name(
char *name, char *name,
_DtCm_old_attrs *attr)); _DtCm_old_attrs *attr);
extern CSA_return_code _DtCm_get_old_attr_by_index P(( extern CSA_return_code _DtCm_get_old_attr_by_index(
int index, int index,
_DtCm_old_attrs *attr)); _DtCm_old_attrs *attr);
extern CSA_return_code _DtCm_set_uint32_attrval P(( extern CSA_return_code _DtCm_set_uint32_attrval(
uint numval, uint numval,
cms_attribute_value **val)); cms_attribute_value **val);
extern CSA_return_code _DtCm_set_sint32_attrval P(( extern CSA_return_code _DtCm_set_sint32_attrval(
int numval, int numval,
cms_attribute_value **val)); cms_attribute_value **val);
extern CSA_return_code _DtCm_set_string_attrval P(( extern CSA_return_code _DtCm_set_string_attrval(
char *strval, char *strval,
cms_attribute_value **val, cms_attribute_value **val,
CSA_enum type)); CSA_enum type);
extern CSA_return_code _DtCm_set_user_attrval P(( extern CSA_return_code _DtCm_set_user_attrval(
char *user, char *user,
cms_attribute_value **val)); cms_attribute_value **val);
extern CSA_return_code _DtCm_set_reminder_attrval P(( extern CSA_return_code _DtCm_set_reminder_attrval(
CSA_reminder *remval, CSA_reminder *remval,
cms_attribute_value **val)); cms_attribute_value **val);
extern CSA_return_code _DtCm_set_access_attrval P(( extern CSA_return_code _DtCm_set_access_attrval(
cms_access_entry *aval, cms_access_entry *aval,
cms_attribute_value **val)); cms_attribute_value **val);
extern CSA_return_code _DtCm_set_opaque_attrval P(( extern CSA_return_code _DtCm_set_opaque_attrval(
CSA_opaque_data *opqval, CSA_opaque_data *opqval,
cms_attribute_value **val)); cms_attribute_value **val);
extern CSA_return_code _DtCm_set_csa_access_attrval P(( extern CSA_return_code _DtCm_set_csa_access_attrval(
cms_access_entry *aval, cms_access_entry *aval,
CSA_attribute_value **val)); CSA_attribute_value **val);
extern CSA_return_code _DtCm_set_csa_uint32_attrval P(( extern CSA_return_code _DtCm_set_csa_uint32_attrval(
uint numval, uint numval,
CSA_attribute_value **attrval)); CSA_attribute_value **attrval);
extern CSA_return_code _DtCm_set_csa_string_attrval P(( extern CSA_return_code _DtCm_set_csa_string_attrval(
char *strval, char *strval,
CSA_attribute_value **attrval, CSA_attribute_value **attrval,
CSA_enum type)); CSA_enum type);
extern void _DtCm_get_attribute_types(uint size, int *types); extern void _DtCm_get_attribute_types(uint size, int *types);

View file

@ -82,49 +82,49 @@ extern Calendar *_DtCm_active_cal_list;
/* function prototypes */ /* function prototypes */
extern Calendar * _DtCm_new_Calendar P(( extern Calendar * _DtCm_new_Calendar(
const char *calenadr)); const char *calenadr);
extern void _DtCm_free_Calendar P(( extern void _DtCm_free_Calendar(
Calendar *cal)); Calendar *cal);
extern Calendar *_DtCm_get_Calendar P(( extern Calendar *_DtCm_get_Calendar(
CSA_session_handle calhandle)); CSA_session_handle calhandle);
extern uint _DtCm_add_to_entry_list P(( extern uint _DtCm_add_to_entry_list(
Calendar *cal, Calendar *cal,
caddr_t elist)); caddr_t elist);
extern void _DtCm_remove_from_entry_list P(( extern void _DtCm_remove_from_entry_list(
Calendar *cal, Calendar *cal,
caddr_t head, caddr_t head,
caddr_t tail)); caddr_t tail);
extern CSA_return_code _DtCm_list_old_cal_attr_names P(( extern CSA_return_code _DtCm_list_old_cal_attr_names(
Calendar *cal, Calendar *cal,
CSA_uint32 *num_names_r, CSA_uint32 *num_names_r,
char **names_r[])); char **names_r[]);
extern CSA_return_code _DtCm_set_cal_attr P(( extern CSA_return_code _DtCm_set_cal_attr(
Calendar *cal, Calendar *cal,
CSA_attribute attr)); CSA_attribute attr);
extern CSA_return_code _DtCm_get_all_cal_attrs P(( extern CSA_return_code _DtCm_get_all_cal_attrs(
Calendar *cal, Calendar *cal,
CSA_uint32 *num_attrs, CSA_uint32 *num_attrs,
CSA_attribute **attrs)); CSA_attribute **attrs);
extern CSA_return_code _DtCm_get_cal_attrs_by_name P(( extern CSA_return_code _DtCm_get_cal_attrs_by_name(
Calendar *cal, Calendar *cal,
CSA_uint32 num_names, CSA_uint32 num_names,
CSA_attribute_reference *names, CSA_attribute_reference *names,
CSA_uint32 *num_attrs, CSA_uint32 *num_attrs,
CSA_attribute **attrs)); CSA_attribute **attrs);
extern void _DtCm_reset_cal_attrs P(( extern void _DtCm_reset_cal_attrs(
Calendar *cal)); Calendar *cal);
extern void _DtCm_count_entry_in_list P(( extern void _DtCm_count_entry_in_list(
caddr_t elist)); caddr_t elist);
#endif #endif

View file

@ -40,21 +40,21 @@
extern _DtCmNameTable *_DtCm_cal_name_tbl; extern _DtCmNameTable *_DtCm_cal_name_tbl;
extern _DtCmNameTable *_DtCm_entry_name_tbl; extern _DtCmNameTable *_DtCm_entry_name_tbl;
extern void _DtCm_init_hash P(()); extern void _DtCm_init_hash(void);
extern cms_entry *_DtCm_make_cms_entry P((_DtCmNameTable *tbl)); extern cms_entry *_DtCm_make_cms_entry(_DtCmNameTable *tbl);
extern CSA_return_code _DtCm_copy_cms_entry P(( extern CSA_return_code _DtCm_copy_cms_entry(
cms_entry *e, cms_entry *e,
cms_entry **e_r)); cms_entry **e_r);
extern void _DtCm_free_cms_entry P((cms_entry *entry)); extern void _DtCm_free_cms_entry(cms_entry *entry);
extern void _DtCm_free_cms_entries P((cms_entry *entry)); extern void _DtCm_free_cms_entries(cms_entry *entry);
extern CSA_return_code _DtCmGrowAttrArray P(( extern CSA_return_code _DtCmGrowAttrArray(
uint *num_attr, uint *num_attr,
cms_attribute **attrs, cms_attribute **attrs,
cms_attribute *attr)); cms_attribute *attr);
#endif #endif

View file

@ -39,27 +39,27 @@
* xdr routines for xapia csa data structures * xdr routines for xapia csa data structures
*/ */
bool_t xdr_CSA_extension P((XDR *xdrs, CSA_extension *objp)); bool_t xdr_CSA_extension(XDR *xdrs, CSA_extension *objp);
bool_t xdr_CSA_date_time_entry P((XDR *xdrs, CSA_date_time_entry *objp)); bool_t xdr_CSA_date_time_entry(XDR *xdrs, CSA_date_time_entry *objp);
bool_t xdr_CSA_date_time_list P((XDR *xdrs, CSA_date_time_list *objp)); bool_t xdr_CSA_date_time_list(XDR *xdrs, CSA_date_time_list *objp);
bool_t xdr_CSA_calendar_user P((XDR *xdrs, CSA_calendar_user *objp)); bool_t xdr_CSA_calendar_user(XDR *xdrs, CSA_calendar_user *objp);
bool_t xdr_CSA_access_rights P((XDR *xdrs, CSA_access_rights *objp)); bool_t xdr_CSA_access_rights(XDR *xdrs, CSA_access_rights *objp);
bool_t xdr_CSA_access_list P((XDR *xdrs, CSA_access_list *objp)); bool_t xdr_CSA_access_list(XDR *xdrs, CSA_access_list *objp);
bool_t xdr_CSA_attendee P((XDR *xdrs, CSA_attendee *objp)); bool_t xdr_CSA_attendee(XDR *xdrs, CSA_attendee *objp);
bool_t xdr_CSA_attendee_list P((XDR *xdrs, CSA_attendee_list *objp)); bool_t xdr_CSA_attendee_list(XDR *xdrs, CSA_attendee_list *objp);
bool_t xdr_CSA_opaque_data P((XDR *xdrs, CSA_opaque_data *objp)); bool_t xdr_CSA_opaque_data(XDR *xdrs, CSA_opaque_data *objp);
bool_t xdr_CSA_reminder P((XDR *xdrs, CSA_reminder *objp)); bool_t xdr_CSA_reminder(XDR *xdrs, CSA_reminder *objp);
bool_t xdr_CSA_attribute_value P((XDR *xdrs, CSA_attribute_value *objp)); bool_t xdr_CSA_attribute_value(XDR *xdrs, CSA_attribute_value *objp);
#endif #endif

View file

@ -73,40 +73,40 @@ typedef struct conn {
} _DtCm_Connection; } _DtCm_Connection;
#ifdef SunOS #ifdef SunOS
extern enum clnt_stat _DtCm_clnt_call P(( extern enum clnt_stat _DtCm_clnt_call(
_DtCm_Connection *conn, _DtCm_Connection *conn,
u_long proc, u_long proc,
xdrproc_t inproc, xdrproc_t inproc,
caddr_t in, caddr_t in,
xdrproc_t outproc, xdrproc_t outproc,
caddr_t out, caddr_t out,
struct timeval tout)); struct timeval tout);
#endif #endif
extern CSA_return_code _DtCm_add_registration P(( extern CSA_return_code _DtCm_add_registration(
_DtCm_Client_Info *ci, _DtCm_Client_Info *ci,
char *cal, char *cal,
unsigned long update_type)); unsigned long update_type);
extern void _DtCm_remove_registration P(( extern void _DtCm_remove_registration(
_DtCm_Client_Info *ci, _DtCm_Client_Info *ci,
char *cal)); char *cal);
extern CSA_return_code _DtCm_create_udp_client P(( extern CSA_return_code _DtCm_create_udp_client(
char *host, char *host,
int version, int version,
int timeout, int timeout,
_DtCm_Client_Info **clnt)); _DtCm_Client_Info **clnt);
extern CSA_return_code _DtCm_create_tcp_client P(( extern CSA_return_code _DtCm_create_tcp_client(
char *host, char *host,
int version, int version,
int timeout, int timeout,
_DtCm_Client_Info **clnt)); _DtCm_Client_Info **clnt);
extern CSA_return_code _DtCm_get_server_rpc_version P((char *host, int *vers)); extern CSA_return_code _DtCm_get_server_rpc_version(char *host, int *vers);
extern CSA_return_code _DtCm_clntstat_to_csastat P((enum clnt_stat clntstat)); extern CSA_return_code _DtCm_clntstat_to_csastat(enum clnt_stat clntstat);
#endif #endif

View file

@ -37,13 +37,13 @@
rpc.cmsd version 4 data types rpc.cmsd version 4 data types
*/ */
extern Table_Args_4 *_DtCm_tableargs2_to_tableargs4 P((Table_Args_2*)); extern Table_Args_4 *_DtCm_tableargs2_to_tableargs4(Table_Args_2*);
extern Table_Args_4 *_DtCm_tabledelargs2_to_tabledelargs4 P((Table_Args_2*, Options_4)); extern Table_Args_4 *_DtCm_tabledelargs2_to_tabledelargs4(Table_Args_2*, Options_4);
extern Registration_4 *_DtCm_reg2_to_reg4 P((Registration_2*)); extern Registration_4 *_DtCm_reg2_to_reg4(Registration_2*);
extern Access_Args_4 *_DtCm_accargs2_to_accargs4 P((Access_Args_2*)); extern Access_Args_4 *_DtCm_accargs2_to_accargs4(Access_Args_2*);
extern Table_Res_4 *_DtCm_tableres2_to_tableres4 P((Table_Res_2*)); extern Table_Res_4 *_DtCm_tableres2_to_tableres4(Table_Res_2*);
extern Table_Status_4 _DtCm_tablestat2_to_tablestat4 P((Table_Status_2)); extern Table_Status_4 _DtCm_tablestat2_to_tablestat4(Table_Status_2);
extern Access_Status_4 _DtCm_accstat2_to_accstat4 P((Access_Status_2)); extern Access_Status_4 _DtCm_accstat2_to_accstat4(Access_Status_2);
extern Registration_Status_4 _DtCm_regstat2_to_regstat4 P((Registration_Status_2)); extern Registration_Status_4 _DtCm_regstat2_to_regstat4(Registration_Status_2);
#endif #endif

View file

@ -37,13 +37,13 @@
rpc.cmsd version 4 data types rpc.cmsd version 4 data types
*/ */
extern Table_Args_4 *_DtCm_tableargs3_to_tableargs4 P((Table_Args_3*)); extern Table_Args_4 *_DtCm_tableargs3_to_tableargs4(Table_Args_3*);
extern Table_Args_4 *_DtCm_tabledelargs3_to_tabledelargs4 P((Table_Args_3*, Options_4)); extern Table_Args_4 *_DtCm_tabledelargs3_to_tabledelargs4(Table_Args_3*, Options_4);
extern Registration_4 *_DtCm_reg3_to_reg4 P((Registration_3*)); extern Registration_4 *_DtCm_reg3_to_reg4(Registration_3*);
extern Access_Args_4 *_DtCm_accargs3_to_accargs4 P((Access_Args_3*)); extern Access_Args_4 *_DtCm_accargs3_to_accargs4(Access_Args_3*);
extern Table_Res_4 *_DtCm_tableres3_to_tableres4 P((Table_Res_3*)); extern Table_Res_4 *_DtCm_tableres3_to_tableres4(Table_Res_3*);
extern Table_Status_4 _DtCm_tablestat3_to_tablestat4 P((Table_Status_3)); extern Table_Status_4 _DtCm_tablestat3_to_tablestat4(Table_Status_3);
extern Access_Status_4 _DtCm_accstat3_to_accstat4 P((Access_Status_3)); extern Access_Status_4 _DtCm_accstat3_to_accstat4(Access_Status_3);
extern Registration_Status_4 _DtCm_regstat3_to_regstat4 P((Registration_Status_3)); extern Registration_Status_4 _DtCm_regstat3_to_regstat4(Registration_Status_3);
#endif #endif

View file

@ -37,18 +37,18 @@
rpc.cmsd version 2 data types rpc.cmsd version 2 data types
*/ */
extern Table_Res_2 *_DtCm_tableres4_to_tableres2 P((Table_Res_4 *)); extern Table_Res_2 *_DtCm_tableres4_to_tableres2(Table_Res_4 *);
extern Table_Status_2 _DtCm_tablestat4_to_tablestat2 P((Table_Status_4)); extern Table_Status_2 _DtCm_tablestat4_to_tablestat2(Table_Status_4);
extern Registration_Status_2 _DtCm_regstat4_to_regstat2 P((Registration_Status_4)); extern Registration_Status_2 _DtCm_regstat4_to_regstat2(Registration_Status_4);
extern Access_Status_2 _DtCm_accstat4_to_accstat2 P((Access_Status_4)); extern Access_Status_2 _DtCm_accstat4_to_accstat2(Access_Status_4);
extern Access_Args_2 *_DtCm_accargs4_to_accargs2 P((Access_Args_4*)); extern Access_Args_2 *_DtCm_accargs4_to_accargs2(Access_Args_4*);
extern Uid_2 *_DtCm_uid4_to_uid2 P((Uid_4*)); extern Uid_2 *_DtCm_uid4_to_uid2(Uid_4*);
extern Range_2 *_DtCm_range4_to_range2 P((Range_4*)); extern Range_2 *_DtCm_range4_to_range2(Range_4*);
extern Appt_2 *_DtCm_appt4_to_appt2 P((Appt_4*)); extern Appt_2 *_DtCm_appt4_to_appt2(Appt_4*);
extern void _DtCm_id4_to_id2 P((Id_4*, Id_2*)); extern void _DtCm_id4_to_id2(Id_4*, Id_2*);
extern Access_Entry_2 *_DtCm_acclist4_to_acclist2 P((Access_Entry_4*)); extern Access_Entry_2 *_DtCm_acclist4_to_acclist2(Access_Entry_4*);
extern Uid_2 *_DtCm_uidopt4_to_uid2 P((Uidopt_4*)); extern Uid_2 *_DtCm_uidopt4_to_uid2(Uidopt_4*);
extern void _DtCm_free_attr2 P((Attribute_2 *a)); extern void _DtCm_free_attr2(Attribute_2 *a);
extern void _DtCm_free_appt2 P((Appt_2 *a)); extern void _DtCm_free_appt2(Appt_2 *a);
#endif #endif

View file

@ -37,19 +37,19 @@
rpc.cmsd version 3 data types rpc.cmsd version 3 data types
*/ */
extern Table_Res_3 *_DtCm_tableres4_to_tableres3 P((Table_Res_4*)); extern Table_Res_3 *_DtCm_tableres4_to_tableres3(Table_Res_4*);
extern Table_Status_3 _DtCm_tablestat4_to_tablestat3 P((Table_Status_4)); extern Table_Status_3 _DtCm_tablestat4_to_tablestat3(Table_Status_4);
extern Registration_Status_3 _DtCm_regstat4_to_regstat3 P((Registration_Status_4)); extern Registration_Status_3 _DtCm_regstat4_to_regstat3(Registration_Status_4);
extern Access_Status_3 _DtCm_accstat4_to_accstat3 P((Access_Status_4)); extern Access_Status_3 _DtCm_accstat4_to_accstat3(Access_Status_4);
extern Access_Args_3 *_DtCm_accargs4_to_accargs3 P((Access_Args_4*)); extern Access_Args_3 *_DtCm_accargs4_to_accargs3(Access_Args_4*);
extern Uid_3 *_DtCm_uid4_to_uid3 P((Uid_4*)); extern Uid_3 *_DtCm_uid4_to_uid3(Uid_4*);
extern Range_3 *_DtCm_range4_to_range3 P((Range_4*)); extern Range_3 *_DtCm_range4_to_range3(Range_4*);
extern Appt_3 *_DtCm_appt4_to_appt3 P((Appt_4*)); extern Appt_3 *_DtCm_appt4_to_appt3(Appt_4*);
extern void _DtCm_id4_to_id3 P((Id_4*, Id_3*)); extern void _DtCm_id4_to_id3(Id_4*, Id_3*);
extern Access_Entry_3 *_DtCm_acclist4_to_acclist3 P((Access_Entry_4*)); extern Access_Entry_3 *_DtCm_acclist4_to_acclist3(Access_Entry_4*);
extern Keyrange_3 *_DtCm_keyrange4_to_keyrange3 P((Keyrange_4*)); extern Keyrange_3 *_DtCm_keyrange4_to_keyrange3(Keyrange_4*);
extern Uid_3 *_DtCm_uidopt4_to_uid3 P((Uidopt_4*)); extern Uid_3 *_DtCm_uidopt4_to_uid3(Uidopt_4*);
extern void _DtCm_free_attr3 P((Attribute_3 *a)); extern void _DtCm_free_attr3(Attribute_3 *a);
extern void _DtCm_free_appt3 P((Appt_3 *appts)); extern void _DtCm_free_appt3(Appt_3 *appts);
#endif #endif

View file

@ -39,29 +39,29 @@
/* /*
* functions to convert v4 data structures * functions to convert v4 data structures
*/ */
extern CSA_return_code _DtCm_accessentry4_to_cmsaccesslist P(( extern CSA_return_code _DtCm_accessentry4_to_cmsaccesslist(
Access_Entry_4 *a4, Access_Entry_4 *a4,
cms_access_entry **alist)); cms_access_entry **alist);
extern CSA_return_code _DtCm_appt4_to_attrs P(( extern CSA_return_code _DtCm_appt4_to_attrs(
char *calname, char *calname,
Appt_4 *a4, Appt_4 *a4,
uint num_attrs, uint num_attrs,
cms_attribute *attrs, cms_attribute *attrs,
boolean_t rerule)); boolean_t rerule);
extern int _DtCm_eventtype4_to_type P((Event_Type_4 tag)); extern int _DtCm_eventtype4_to_type(Event_Type_4 tag);
extern char *_DtCm_eventtype4_to_subtype P((Event_Type_4 tag)); extern char *_DtCm_eventtype4_to_subtype(Event_Type_4 tag);
extern CSA_sint32 _DtCm_interval4_to_rtype P((Interval_4 val)); extern CSA_sint32 _DtCm_interval4_to_rtype(Interval_4 val);
extern CSA_sint32 _DtCm_apptstatus4_to_status P((Appt_Status_4 stat)); extern CSA_sint32 _DtCm_apptstatus4_to_status(Appt_Status_4 stat);
extern CSA_sint32 _DtCm_privacy4_to_classification P((Privacy_Level_4 p)); extern CSA_sint32 _DtCm_privacy4_to_classification(Privacy_Level_4 p);
extern CSA_return_code _DtCmAttr4ToReminderValue P(( extern CSA_return_code _DtCmAttr4ToReminderValue(
Attribute_4 *remval, Attribute_4 *remval,
cms_attribute_value **attrval)); cms_attribute_value **attrval);
#endif #endif

View file

@ -39,61 +39,61 @@
/* /*
* conversion routines for rpc.cmsd version 5 to rpc.cmsd version 4 data types * conversion routines for rpc.cmsd version 5 to rpc.cmsd version 4 data types
*/ */
extern CSA_return_code _DtCm_cmsattrs_to_apptdata P(( extern CSA_return_code _DtCm_cmsattrs_to_apptdata(
uint num_attrs, uint num_attrs,
cms_attribute *attrs, cms_attribute *attrs,
Appt_4 *appt4)); Appt_4 *appt4);
extern CSA_return_code _DtCm_attrs_to_apptdata P(( extern CSA_return_code _DtCm_attrs_to_apptdata(
uint size, uint size,
CSA_attribute *attrs, CSA_attribute *attrs,
Appt_4 *appt)); Appt_4 *appt);
extern CSA_return_code _DtCm_cms_entry_to_appt4 P(( extern CSA_return_code _DtCm_cms_entry_to_appt4(
cms_entry *entry, cms_entry *entry,
Appt_4 **appt4)); Appt_4 **appt4);
extern CSA_return_code _DtCm_attrs_to_appt4 P(( extern CSA_return_code _DtCm_attrs_to_appt4(
uint num_attrs, uint num_attrs,
CSA_attribute *attrs, CSA_attribute *attrs,
Appt_4 **appt4_r)); Appt_4 **appt4_r);
extern CSA_return_code _DtCm_scope_to_options4 P(( extern CSA_return_code _DtCm_scope_to_options4(
CSA_enum scope, CSA_enum scope,
Options_4 *opt)); Options_4 *opt);
extern CSA_return_code _DtCm_csaaccesslist_toaccessentry4 P(( extern CSA_return_code _DtCm_csaaccesslist_toaccessentry4(
CSA_access_list alist, CSA_access_list alist,
Access_Entry_4 **a4)); Access_Entry_4 **a4);
extern int _DtCm_string_to_eventtype4 P(( extern int _DtCm_string_to_eventtype4(
char *val, char *val,
Event_Type_4 *tag)); Event_Type_4 *tag);
extern int _DtCm_rtype_to_interval4 P(( extern int _DtCm_rtype_to_interval4(
int val, int val,
Interval_4 *period)); Interval_4 *period);
extern int _DtCm_status_to_apptstatus4 P(( extern int _DtCm_status_to_apptstatus4(
int val, int val,
Appt_Status_4 *astat)); Appt_Status_4 *astat);
extern int _DtCm_classification_to_privacy4 P(( extern int _DtCm_classification_to_privacy4(
int val, int val,
Privacy_Level_4 *privacy)); Privacy_Level_4 *privacy);
extern CSA_return_code _DtCm_attrs_to_eventtype4 P(( extern CSA_return_code _DtCm_attrs_to_eventtype4(
cms_attribute_value *type, cms_attribute_value *type,
cms_attribute_value *stype, cms_attribute_value *stype,
Tag_4 *tag)); Tag_4 *tag);
extern CSA_return_code _DtCm_remove_reminder P((char *rem, Appt_4 *appt)); extern CSA_return_code _DtCm_remove_reminder(char *rem, Appt_4 *appt);
extern CSA_return_code _DtCm_add_reminder P(( extern CSA_return_code _DtCm_add_reminder(
char *rem, char *rem,
CSA_reminder * val, CSA_reminder * val,
Appt_4 *appt)); Appt_4 *appt);
extern int _DtCmAccessRightToV4AccessType P((unsigned int access)); extern int _DtCmAccessRightToV4AccessType(unsigned int access);
#endif #endif

View file

@ -39,8 +39,8 @@
#define DP(a) #define DP(a)
#endif /* CM_DEBUG */ #endif /* CM_DEBUG */
extern void _DtCm_print_tick P((long)); extern void _DtCm_print_tick(long);
extern void _DtCm_print_errmsg P((const char *)); extern void _DtCm_print_errmsg(const char *);
#endif /* _DEBUG_H */ #endif /* _DEBUG_H */

View file

@ -52,76 +52,76 @@ typedef struct _libentry {
/* function prototypes */ /* function prototypes */
extern _DtCm_libentry *_DtCm_get_libentry P((CSA_entry_handle entryh)); extern _DtCm_libentry *_DtCm_get_libentry(CSA_entry_handle entryh);
extern CSA_return_code _DtCm_make_libentry P(( extern CSA_return_code _DtCm_make_libentry(
cms_entry *cmsentry, cms_entry *cmsentry,
_DtCm_libentry **entry_r)); _DtCm_libentry **entry_r);
extern CSA_return_code _DtCm_get_entry_detail P((_DtCm_libentry *entry)); extern CSA_return_code _DtCm_get_entry_detail(_DtCm_libentry *entry);
extern CSA_return_code _DtCm_get_entry_attr_names P(( extern CSA_return_code _DtCm_get_entry_attr_names(
_DtCm_libentry *entry, _DtCm_libentry *entry,
CSA_uint32 *num_names_r, CSA_uint32 *num_names_r,
char **names_r[])); char **names_r[]);
extern CSA_return_code _DtCm_get_entry_attrs_by_name P(( extern CSA_return_code _DtCm_get_entry_attrs_by_name(
_DtCm_libentry *entry, _DtCm_libentry *entry,
CSA_uint32 num_names, CSA_uint32 num_names,
CSA_attribute_reference *names, CSA_attribute_reference *names,
CSA_uint32 *num_attrs, CSA_uint32 *num_attrs,
CSA_attribute **attrs)); CSA_attribute **attrs);
extern CSA_return_code _DtCm_get_all_entry_attrs P(( extern CSA_return_code _DtCm_get_all_entry_attrs(
_DtCm_libentry *entry, _DtCm_libentry *entry,
CSA_uint32 *num_attrs, CSA_uint32 *num_attrs,
CSA_attribute **attrs)); CSA_attribute **attrs);
extern CSA_return_code _DtCm_libentry_to_entryh P(( extern CSA_return_code _DtCm_libentry_to_entryh(
_DtCm_libentry *elist, _DtCm_libentry *elist,
CSA_uint32 *size, CSA_uint32 *size,
CSA_entry_handle **entries_r)); CSA_entry_handle **entries_r);
extern CSA_return_code _DtCmCmsentriesToLibentries P(( extern CSA_return_code _DtCmCmsentriesToLibentries(
_DtCmNameTable **tbl, _DtCmNameTable **tbl,
cms_entry *entries, cms_entry *entries,
_DtCm_libentry **libentries)); _DtCm_libentry **libentries);
extern CSA_return_code _DtCm_appt4_to_libentries P(( extern CSA_return_code _DtCm_appt4_to_libentries(
char *calname, char *calname,
Appt_4 *appt4, Appt_4 *appt4,
_DtCm_libentry **libentries)); _DtCm_libentry **libentries);
extern CSA_return_code _DtCm_libentries_to_appt4 P(( extern CSA_return_code _DtCm_libentries_to_appt4(
_DtCm_libentry *libentries, _DtCm_libentry *libentries,
Appt_4 **appt4)); Appt_4 **appt4);
extern CSA_return_code _DtCm_reminder4_to_csareminder P(( extern CSA_return_code _DtCm_reminder4_to_csareminder(
Reminder_4 *r4, Reminder_4 *r4,
CSA_uint32 *num_rems, CSA_uint32 *num_rems,
CSA_reminder_reference **rems)); CSA_reminder_reference **rems);
extern _DtCm_libentry *_DtCm_convert_entry_wheader P((_DtCm_libentry *entry)); extern _DtCm_libentry *_DtCm_convert_entry_wheader(_DtCm_libentry *entry);
extern void _DtCm_free_libentries_from_list P(( extern void _DtCm_free_libentries_from_list(
_DtCm_libentry *head, _DtCm_libentry *head,
_DtCm_libentry *tail)); _DtCm_libentry *tail);
extern void _DtCm_free_libentries P((_DtCm_libentry *entries)); extern void _DtCm_free_libentries(_DtCm_libentry *entries);
extern void _DtCm_free_entry_handles P(( extern void _DtCm_free_entry_handles(
uint num_entries, uint num_entries,
CSA_entry_handle *entries)); CSA_entry_handle *entries);
extern void _DtCm_free_reminder_references P(( extern void _DtCm_free_reminder_references(
uint num_rems, uint num_rems,
CSA_reminder_reference *rems)); CSA_reminder_reference *rems);
extern void _DtCm_free_entry_content P((uint dummy, _DtCm_libentry *entry)); extern void _DtCm_free_entry_content(uint dummy, _DtCm_libentry *entry);
extern CSA_return_code _DtCm_cms2csa_reminder_ref P(( extern CSA_return_code _DtCm_cms2csa_reminder_ref(
cms_reminder_ref *cmsrems, cms_reminder_ref *cmsrems,
CSA_uint32 *num_rems, CSA_uint32 *num_rems,
CSA_reminder_reference **csarems)); CSA_reminder_reference **csarems);
#endif #endif

View file

@ -49,7 +49,7 @@ extern void *_DtCm_alloc_entry();
extern CSA_return_code _DtCm_free(void *ptr); extern CSA_return_code _DtCm_free(void *ptr);
extern void _DtCm_free_character_pointers P((uint num_elem, void *vptr)); extern void _DtCm_free_character_pointers(uint num_elem, void *vptr);
#endif #endif

View file

@ -33,13 +33,13 @@
#include "ansi_c.h" #include "ansi_c.h"
extern void * _DtCmMakeHash P((int size)); extern void * _DtCmMakeHash(int size);
extern void ** _DtCmGetHash P((void * tbl, const unsigned char * key)); extern void ** _DtCmGetHash(void * tbl, const unsigned char * key);
extern void ** _DtCmFindHash P((void * tbl,const unsigned char * key)); extern void ** _DtCmFindHash(void * tbl,const unsigned char * key);
extern void _DtCmDestroyHash P((void * tbl, int (*des_func)(), void * usr_arg)); extern void _DtCmDestroyHash(void * tbl, int (*des_func)(), void * usr_arg);
#endif /* _HASH_H */ #endif /* _HASH_H */

View file

@ -33,8 +33,8 @@
#include "ansi_c.h" #include "ansi_c.h"
extern boolean_t _DtCmIsSamePath P((char *str1, char *str2)); extern boolean_t _DtCmIsSamePath(char *str1, char *str2);
extern boolean_t _DtCmIsSameUser P((char *user1, char *user2)); extern boolean_t _DtCmIsSameUser(char *user1, char *user2);
#endif #endif

View file

@ -33,16 +33,16 @@
#include "ansi_c.h" #include "ansi_c.h"
extern char *_DtCmGetPrefix P((char *str, char sep)); extern char *_DtCmGetPrefix(char *str, char sep);
extern char *_DtCmGetLocalHost P(()); extern char *_DtCmGetLocalHost();
extern char *_DtCmGetLocalDomain P((char *hostname)); extern char *_DtCmGetLocalDomain(char *hostname);
extern char *_DtCmGetHostAtDomain P(()); extern char *_DtCmGetHostAtDomain();
extern char *_DtCmGetUserName P(()); extern char *_DtCmGetUserName();
extern boolean_t _DtCmIsUserName P((char *user)); extern boolean_t _DtCmIsUserName(char *user);
#endif #endif

View file

@ -36,7 +36,7 @@
#include "cm.h" #include "cm.h"
#include "rtable4.h" #include "rtable4.h"
extern CSA_return_code _DtCmHashCriteria P(( extern CSA_return_code _DtCmHashCriteria(
_DtCmNameTable *tbl, _DtCmNameTable *tbl,
CSA_uint32 num_attrs, CSA_uint32 num_attrs,
CSA_attribute *csaattrs, CSA_attribute *csaattrs,
@ -52,14 +52,14 @@ extern CSA_return_code _DtCmHashCriteria P((
long *id, long *id,
CSA_uint32 *hnum, CSA_uint32 *hnum,
cms_attribute **hattrs, cms_attribute **hattrs,
CSA_enum **hops)); CSA_enum **hops);
extern void _DtCmFreeHashedArrays P(( extern void _DtCmFreeHashedArrays(
CSA_uint32 hnum, CSA_uint32 hnum,
cms_attribute *hattrs, cms_attribute *hattrs,
CSA_enum *hops)); CSA_enum *hops);
extern Appt_4 *_DtCm_match_appts P(( extern Appt_4 *_DtCm_match_appts(
Appt_4 *appts, Appt_4 *appts,
long id, long id,
boolean_t no_end_time_range, boolean_t no_end_time_range,
@ -67,7 +67,7 @@ extern Appt_4 *_DtCm_match_appts P((
time_t end2, time_t end2,
CSA_uint32 num_attrs, CSA_uint32 num_attrs,
cms_attribute *attrs, cms_attribute *attrs,
CSA_enum *ops)); CSA_enum *ops);
extern boolean_t _DtCm_match_one_appt( extern boolean_t _DtCm_match_one_appt(
Appt_4 *appt, Appt_4 *appt,
@ -75,45 +75,45 @@ extern boolean_t _DtCm_match_one_appt(
cms_attribute * attrs, cms_attribute * attrs,
CSA_enum *ops); CSA_enum *ops);
extern Reminder_4 *_DtCm_match_reminders P(( extern Reminder_4 *_DtCm_match_reminders(
Reminder_4 *rems, Reminder_4 *rems,
uint num_names, uint num_names,
char **names)); char **names);
extern CSA_return_code _DtCm_check_operator P(( extern CSA_return_code _DtCm_check_operator(
uint size, uint size,
CSA_attribute *csaattrs, CSA_attribute *csaattrs,
cms_attribute *cmsattrs, cms_attribute *cmsattrs,
CSA_enum *ops)); CSA_enum *ops);
extern boolean_t _DtCm_match_sint32_attribute P(( extern boolean_t _DtCm_match_sint32_attribute(
cms_attribute_value *val1, cms_attribute_value *val1,
cms_attribute_value *val2, cms_attribute_value *val2,
CSA_enum op)); CSA_enum op);
extern boolean_t _DtCm_match_uint32_attribute P(( extern boolean_t _DtCm_match_uint32_attribute(
cms_attribute_value *val1, cms_attribute_value *val1,
cms_attribute_value *val2, cms_attribute_value *val2,
CSA_enum op)); CSA_enum op);
extern boolean_t _DtCm_match_time_attribute P(( extern boolean_t _DtCm_match_time_attribute(
cms_attribute_value *val1, cms_attribute_value *val1,
cms_attribute_value *val2, cms_attribute_value *val2,
CSA_enum op)); CSA_enum op);
extern boolean_t _DtCm_match_time_duration_attribute P(( extern boolean_t _DtCm_match_time_duration_attribute(
cms_attribute_value *val1, cms_attribute_value *val1,
cms_attribute_value *val2, cms_attribute_value *val2,
CSA_enum op)); CSA_enum op);
extern boolean_t _DtCm_match_string_attribute P(( extern boolean_t _DtCm_match_string_attribute(
cms_attribute_value *val1, cms_attribute_value *val1,
cms_attribute_value *val2, cms_attribute_value *val2,
CSA_enum op)); CSA_enum op);
extern boolean_t _DtCm_match_reminder_attribute P(( extern boolean_t _DtCm_match_reminder_attribute(
cms_attribute_value *val1, cms_attribute_value *val1,
cms_attribute_value *val2, cms_attribute_value *val2,
CSA_enum op)); CSA_enum op);
#endif #endif

View file

@ -52,22 +52,22 @@ typedef struct {
char **names; char **names;
} _DtCmNameTable; } _DtCmNameTable;
extern _DtCmNameTable *_DtCm_make_name_table P(( extern _DtCmNameTable *_DtCm_make_name_table(
int size, int size,
char **names)); char **names);
extern void _DtCm_free_name_table P((_DtCmNameTable *tbl)); extern void _DtCm_free_name_table(_DtCmNameTable *tbl);
extern CSA_return_code _DtCm_add_name_to_table P(( extern CSA_return_code _DtCm_add_name_to_table(
_DtCmNameTable *tbl, _DtCmNameTable *tbl,
int index, int index,
char *newname)); char *newname);
extern int _DtCm_get_index_from_table P(( extern int _DtCm_get_index_from_table(
_DtCmNameTable *tbl, _DtCmNameTable *tbl,
char *name)); char *name);
extern CSA_return_code _DtCmExtendNameTable P(( extern CSA_return_code _DtCmExtendNameTable(
char *name, char *name,
int index, int index,
int type, int type,
@ -75,7 +75,7 @@ extern CSA_return_code _DtCmExtendNameTable P((
int basesize, int basesize,
char **basenames, char **basenames,
_DtCmNameTable **tbl, _DtCmNameTable **tbl,
int **types)); int **types);
#endif /* _NAMETBL_H */ #endif /* _NAMETBL_H */

View file

@ -40,98 +40,98 @@
* interface to cm rpc calls * interface to cm rpc calls
*/ */
extern CSA_return_code _DtCm_rpc_open_calendar P((Calendar *cal)); extern CSA_return_code _DtCm_rpc_open_calendar(Calendar *cal);
extern CSA_return_code _DtCm_rpc_create_calendar P(( extern CSA_return_code _DtCm_rpc_create_calendar(
Calendar *cal, Calendar *cal,
CSA_uint32 num_attrs, CSA_uint32 num_attrs,
CSA_attribute * attrs)); CSA_attribute * attrs);
extern CSA_return_code _DtCm_rpc_delete_calendar P((Calendar *cal)); extern CSA_return_code _DtCm_rpc_delete_calendar(Calendar *cal);
extern CSA_return_code _DtCm_rpc_register_client P(( extern CSA_return_code _DtCm_rpc_register_client(
Calendar *cal, Calendar *cal,
unsigned long type)); unsigned long type);
extern CSA_return_code _DtCm_rpc_unregister_client P(( extern CSA_return_code _DtCm_rpc_unregister_client(
Calendar *cal, Calendar *cal,
unsigned long type)); unsigned long type);
extern CSA_return_code _DtCm_rpc_enumerate_sequence P(( extern CSA_return_code _DtCm_rpc_enumerate_sequence(
Calendar *cal, Calendar *cal,
_DtCm_libentry *entry, _DtCm_libentry *entry,
time_t start, time_t start,
time_t end, time_t end,
_DtCm_libentry **elist_r)); _DtCm_libentry **elist_r);
extern CSA_return_code _DtCm_rpc_lookup_entries P(( extern CSA_return_code _DtCm_rpc_lookup_entries(
Calendar *cal, Calendar *cal,
CSA_uint32 size, CSA_uint32 size,
CSA_attribute * attrs, CSA_attribute * attrs,
CSA_enum *ops, CSA_enum *ops,
_DtCm_libentry **entries_r)); _DtCm_libentry **entries_r);
extern CSA_return_code _DtCm_rpc_lookup_entry_by_id P(( extern CSA_return_code _DtCm_rpc_lookup_entry_by_id(
Calendar *cal, Calendar *cal,
_DtCm_libentry *entry)); _DtCm_libentry *entry);
extern CSA_return_code _DtCm_rpc_lookup_reminder P(( extern CSA_return_code _DtCm_rpc_lookup_reminder(
Calendar *cal, Calendar *cal,
time_t tick, time_t tick,
CSA_uint32 num_names, CSA_uint32 num_names,
char **reminder_names, char **reminder_names,
CSA_uint32 *num_rems, CSA_uint32 *num_rems,
CSA_reminder_reference **rems)); CSA_reminder_reference **rems);
extern CSA_return_code _DtCm_rpc_set_cal_attrs P(( extern CSA_return_code _DtCm_rpc_set_cal_attrs(
Calendar *cal, Calendar *cal,
CSA_uint32 num_attrs, CSA_uint32 num_attrs,
CSA_attribute * attrs)); CSA_attribute * attrs);
extern CSA_return_code _DtCm_rpc_get_cal_attrs P(( extern CSA_return_code _DtCm_rpc_get_cal_attrs(
Calendar *cal, Calendar *cal,
int index, int index,
CSA_uint32 num_attrs, CSA_uint32 num_attrs,
char **names)); char **names);
extern CSA_return_code _DtCm_rpc_insert_entry P(( extern CSA_return_code _DtCm_rpc_insert_entry(
Calendar *cal, Calendar *cal,
CSA_uint32 num_attrs, CSA_uint32 num_attrs,
CSA_attribute * attrs, CSA_attribute * attrs,
_DtCm_libentry **entry_r)); _DtCm_libentry **entry_r);
extern CSA_return_code _DtCm_rpc_delete_entry P(( extern CSA_return_code _DtCm_rpc_delete_entry(
Calendar *cal, Calendar *cal,
_DtCm_libentry *entry, _DtCm_libentry *entry,
CSA_enum scope)); CSA_enum scope);
extern CSA_return_code _DtCm_rpc_update_entry P(( extern CSA_return_code _DtCm_rpc_update_entry(
Calendar *cal, Calendar *cal,
_DtCm_libentry *oentry, _DtCm_libentry *oentry,
CSA_uint32 num_attrs, CSA_uint32 num_attrs,
CSA_attribute * attrs, CSA_attribute * attrs,
CSA_enum scope, CSA_enum scope,
_DtCm_libentry **nentry)); _DtCm_libentry **nentry);
extern CSA_return_code _DtCm_rpc_list_calendar_attributes P(( extern CSA_return_code _DtCm_rpc_list_calendar_attributes(
Calendar *cal, Calendar *cal,
CSA_uint32 *number_names, CSA_uint32 *number_names,
char ***names_r)); char ***names_r);
extern CSA_return_code _DtCm_rpc_list_calendars P(( extern CSA_return_code _DtCm_rpc_list_calendars(
char *location, char *location,
CSA_uint32 *number_names, CSA_uint32 *number_names,
CSA_calendar_user **names_r)); CSA_calendar_user **names_r);
extern CSA_return_code _DtCm_do_unregistration P(( extern CSA_return_code _DtCm_do_unregistration(
_DtCm_Connection *conn, _DtCm_Connection *conn,
char *cal, char *cal,
unsigned long update_type)); unsigned long update_type);
extern CSA_return_code _DtCm_do_registration P(( extern CSA_return_code _DtCm_do_registration(
_DtCm_Connection *conn, _DtCm_Connection *conn,
char *cal, char *cal,
unsigned long update_type)); unsigned long update_type);
#endif #endif

View file

@ -42,24 +42,24 @@
* Interface to rpc calls of version 2-4 * Interface to rpc calls of version 2-4
*/ */
extern CSA_return_code _DtCm_table_create P((Calendar *cal)); extern CSA_return_code _DtCm_table_create(Calendar *cal);
extern CSA_return_code _DtCm_table_get_access P(( extern CSA_return_code _DtCm_table_get_access(
Calendar *cal, Calendar *cal,
cms_access_entry **acclist)); cms_access_entry **acclist);
extern CSA_return_code _DtCm_table_set_access P(( extern CSA_return_code _DtCm_table_set_access(
Calendar *cal, Calendar *cal,
CSA_access_list alist)); CSA_access_list alist);
extern CSA_return_code _DtCm_table_lookup_reminder P(( extern CSA_return_code _DtCm_table_lookup_reminder(
Calendar *cal, Calendar *cal,
CSA_uint32 num_names, CSA_uint32 num_names,
char **reminder_names, char **reminder_names,
CSA_uint32 *num_rems, CSA_uint32 *num_rems,
CSA_reminder_reference **rems)); CSA_reminder_reference **rems);
extern CSA_return_code _DtCm_table_lookup_range P(( extern CSA_return_code _DtCm_table_lookup_range(
Calendar *cal, Calendar *cal,
long start1, long start1,
long start2, long start2,
@ -70,11 +70,11 @@ extern CSA_return_code _DtCm_table_lookup_range P((
uint num_attrs, uint num_attrs,
cms_attribute *attrs, cms_attribute *attrs,
CSA_enum *ops, CSA_enum *ops,
_DtCm_libentry **appts)); _DtCm_libentry **appts);
extern CSA_return_code _DtCm_table_lookup P(( extern CSA_return_code _DtCm_table_lookup(
Calendar *cal, Calendar *cal,
_DtCm_libentry *entry)); _DtCm_libentry *entry);
/* /*
* This routine looks up events of a repeating sequence. * This routine looks up events of a repeating sequence.
@ -85,44 +85,44 @@ extern CSA_return_code _DtCm_table_lookup P((
* in the key of the first entry which will be returned in the cms_key * in the key of the first entry which will be returned in the cms_key
* structure pointed to by key. * structure pointed to by key.
*/ */
extern CSA_return_code _DtCm_table_lookup_key_range P(( extern CSA_return_code _DtCm_table_lookup_key_range(
Calendar *cal, Calendar *cal,
_DtCm_libentry *entry, _DtCm_libentry *entry,
long id, long id,
time_t start, time_t start,
time_t end, time_t end,
cms_key *key, cms_key *key,
_DtCm_libentry **elist_r)); _DtCm_libentry **elist_r);
extern CSA_return_code _DtCm_table_insert P(( extern CSA_return_code _DtCm_table_insert(
Calendar *cal, Calendar *cal,
uint num_attrs, uint num_attrs,
CSA_attribute * attrs, CSA_attribute * attrs,
_DtCm_libentry **entries)); _DtCm_libentry **entries);
extern CSA_return_code _DtCm_table_delete P(( extern CSA_return_code _DtCm_table_delete(
Calendar *cal, Calendar *cal,
_DtCm_libentry *entry, _DtCm_libentry *entry,
CSA_enum scope)); CSA_enum scope);
extern CSA_return_code _DtCm_table_update P(( extern CSA_return_code _DtCm_table_update(
Calendar *cal, Calendar *cal,
_DtCm_libentry *oentry, _DtCm_libentry *oentry,
uint num_attrs, uint num_attrs,
CSA_attribute * attrs, CSA_attribute * attrs,
CSA_enum scope, CSA_enum scope,
_DtCm_libentry **nentry)); _DtCm_libentry **nentry);
extern CSA_return_code _DtCm_table_size P(( extern CSA_return_code _DtCm_table_size(
Calendar *cal, Calendar *cal,
int *size)); int *size);
extern CSA_return_code _DtCm_table_unregister_target P(( extern CSA_return_code _DtCm_table_unregister_target(
_DtCm_Connection *conn, _DtCm_Connection *conn,
char *cal)); char *cal);
extern CSA_return_code _DtCm_table_register_target P(( extern CSA_return_code _DtCm_table_register_target(
_DtCm_Connection *conn, _DtCm_Connection *conn,
char *cal)); char *cal);
#endif #endif

View file

@ -37,7 +37,7 @@
#include "cm.h" #include "cm.h"
#include "nametbl.h" #include "nametbl.h"
extern CSA_return_code _DtCmUpdateAttributes P(( extern CSA_return_code _DtCmUpdateAttributes(
uint numsrc, uint numsrc,
cms_attribute *srcattrs, cms_attribute *srcattrs,
uint *numdst, uint *numdst,
@ -45,34 +45,34 @@ extern CSA_return_code _DtCmUpdateAttributes P((
_DtCmNameTable **tbl, _DtCmNameTable **tbl,
boolean_t caltbl, boolean_t caltbl,
int **types, int **types,
boolean_t makecopy)); boolean_t makecopy);
extern CSA_return_code _DtCmUpdateAttribute P(( extern CSA_return_code _DtCmUpdateAttribute(
cms_attribute *from, cms_attribute *from,
cms_attribute *to)); cms_attribute *to);
extern CSA_return_code _DtCmUpdateAccessListAttrVal P(( extern CSA_return_code _DtCmUpdateAccessListAttrVal(
cms_attribute_value *newval, cms_attribute_value *newval,
cms_attribute_value **attrval)); cms_attribute_value **attrval);
extern CSA_return_code _DtCmUpdateSint32AttrVal P(( extern CSA_return_code _DtCmUpdateSint32AttrVal(
cms_attribute_value *newval, cms_attribute_value *newval,
cms_attribute_value **attrval)); cms_attribute_value **attrval);
extern CSA_return_code _DtCmUpdateStringAttrVal P(( extern CSA_return_code _DtCmUpdateStringAttrVal(
cms_attribute_value *newval, cms_attribute_value *newval,
cms_attribute_value **attrval)); cms_attribute_value **attrval);
extern CSA_return_code _DtCmUpdateReminderAttrVal P(( extern CSA_return_code _DtCmUpdateReminderAttrVal(
cms_attribute_value *newval, cms_attribute_value *newval,
cms_attribute_value **attrval)); cms_attribute_value **attrval);
extern CSA_return_code _DtCmUpdateDateTimeListAttrVal P(( extern CSA_return_code _DtCmUpdateDateTimeListAttrVal(
cms_attribute_value *newval, cms_attribute_value *newval,
cms_attribute_value **attrval)); cms_attribute_value **attrval);
extern CSA_return_code _DtCmUpdateOpaqueDataAttrVal P(( extern CSA_return_code _DtCmUpdateOpaqueDataAttrVal(
cms_attribute_value *newval, cms_attribute_value *newval,
cms_attribute_value **attrval)); cms_attribute_value **attrval);
#endif #endif

View file

@ -34,6 +34,6 @@
#include <X11/Intrinsic.h> #include <X11/Intrinsic.h>
#include "ansi_c.h" #include "ansi_c.h"
extern void _DtCm_register_xtcallback P((XtAppContext appct)); extern void _DtCm_register_xtcallback(XtAppContext appct);
#endif /* _XTCLIENT_H */ #endif /* _XTCLIENT_H */