rpccalls.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 libraries 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. #ifndef _RPCCALLS_H
  31. #define _RPCCALLS_H
  32. #include <EUSCompat.h>
  33. #include "ansi_c.h"
  34. #include "csa.h"
  35. #include "entry.h"
  36. /*
  37. * interface to cm rpc calls
  38. */
  39. extern CSA_return_code _DtCm_rpc_open_calendar(Calendar *cal);
  40. extern CSA_return_code _DtCm_rpc_create_calendar(
  41. Calendar *cal,
  42. CSA_uint32 num_attrs,
  43. CSA_attribute * attrs);
  44. extern CSA_return_code _DtCm_rpc_delete_calendar(Calendar *cal);
  45. extern CSA_return_code _DtCm_rpc_register_client(
  46. Calendar *cal,
  47. unsigned long type);
  48. extern CSA_return_code _DtCm_rpc_unregister_client(
  49. Calendar *cal,
  50. unsigned long type);
  51. extern CSA_return_code _DtCm_rpc_enumerate_sequence(
  52. Calendar *cal,
  53. _DtCm_libentry *entry,
  54. time_t start,
  55. time_t end,
  56. _DtCm_libentry **elist_r);
  57. extern CSA_return_code _DtCm_rpc_lookup_entries(
  58. Calendar *cal,
  59. CSA_uint32 size,
  60. CSA_attribute * attrs,
  61. CSA_enum *ops,
  62. _DtCm_libentry **entries_r);
  63. extern CSA_return_code _DtCm_rpc_lookup_entry_by_id(
  64. Calendar *cal,
  65. _DtCm_libentry *entry);
  66. extern CSA_return_code _DtCm_rpc_lookup_reminder(
  67. Calendar *cal,
  68. time_t tick,
  69. CSA_uint32 num_names,
  70. char **reminder_names,
  71. CSA_uint32 *num_rems,
  72. CSA_reminder_reference **rems);
  73. extern CSA_return_code _DtCm_rpc_set_cal_attrs(
  74. Calendar *cal,
  75. CSA_uint32 num_attrs,
  76. CSA_attribute * attrs);
  77. extern CSA_return_code _DtCm_rpc_get_cal_attrs(
  78. Calendar *cal,
  79. int index,
  80. CSA_uint32 num_attrs,
  81. char **names);
  82. extern CSA_return_code _DtCm_rpc_insert_entry(
  83. Calendar *cal,
  84. CSA_uint32 num_attrs,
  85. CSA_attribute * attrs,
  86. _DtCm_libentry **entry_r);
  87. extern CSA_return_code _DtCm_rpc_delete_entry(
  88. Calendar *cal,
  89. _DtCm_libentry *entry,
  90. CSA_enum scope);
  91. extern CSA_return_code _DtCm_rpc_update_entry(
  92. Calendar *cal,
  93. _DtCm_libentry *oentry,
  94. CSA_uint32 num_attrs,
  95. CSA_attribute * attrs,
  96. CSA_enum scope,
  97. _DtCm_libentry **nentry);
  98. extern CSA_return_code _DtCm_rpc_list_calendar_attributes(
  99. Calendar *cal,
  100. CSA_uint32 *number_names,
  101. char ***names_r);
  102. extern CSA_return_code _DtCm_rpc_list_calendars(
  103. char *location,
  104. CSA_uint32 *number_names,
  105. CSA_calendar_user **names_r);
  106. extern CSA_return_code _DtCm_do_unregistration(
  107. _DtCm_Connection *conn,
  108. char *cal,
  109. unsigned long update_type);
  110. extern CSA_return_code _DtCm_do_registration(
  111. _DtCm_Connection *conn,
  112. char *cal,
  113. unsigned long update_type);
  114. #endif