convert5-4.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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: 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. #ifndef _CONVERT5_4_H
  31. #define _CONVERT5_4_H
  32. #include <EUSCompat.h>
  33. #include "ansi_c.h"
  34. #include "cm.h"
  35. #include "rtable4.h"
  36. /*
  37. * conversion routines for rpc.cmsd version 5 to rpc.cmsd version 4 data types
  38. */
  39. extern CSA_return_code _DtCm_cmsattrs_to_apptdata(
  40. uint num_attrs,
  41. cms_attribute *attrs,
  42. Appt_4 *appt4);
  43. extern CSA_return_code _DtCm_attrs_to_apptdata(
  44. uint size,
  45. CSA_attribute *attrs,
  46. Appt_4 *appt);
  47. extern CSA_return_code _DtCm_cms_entry_to_appt4(
  48. cms_entry *entry,
  49. Appt_4 **appt4);
  50. extern CSA_return_code _DtCm_attrs_to_appt4(
  51. uint num_attrs,
  52. CSA_attribute *attrs,
  53. Appt_4 **appt4_r);
  54. extern CSA_return_code _DtCm_scope_to_options4(
  55. CSA_enum scope,
  56. Options_4 *opt);
  57. extern CSA_return_code _DtCm_csaaccesslist_toaccessentry4(
  58. CSA_access_list alist,
  59. Access_Entry_4 **a4);
  60. extern int _DtCm_string_to_eventtype4(
  61. char *val,
  62. Event_Type_4 *tag);
  63. extern int _DtCm_rtype_to_interval4(
  64. int val,
  65. Interval_4 *period);
  66. extern int _DtCm_status_to_apptstatus4(
  67. int val,
  68. Appt_Status_4 *astat);
  69. extern int _DtCm_classification_to_privacy4(
  70. int val,
  71. Privacy_Level_4 *privacy);
  72. extern CSA_return_code _DtCm_attrs_to_eventtype4(
  73. cms_attribute_value *type,
  74. cms_attribute_value *stype,
  75. Tag_4 *tag);
  76. extern CSA_return_code _DtCm_remove_reminder(char *rem, Appt_4 *appt);
  77. extern CSA_return_code _DtCm_add_reminder(
  78. char *rem,
  79. CSA_reminder * val,
  80. Appt_4 *appt);
  81. extern int _DtCmAccessRightToV4AccessType(unsigned int access);
  82. #endif