match.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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: match.h /main/1 1996/04/21 19:23:51 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 _MATCH_H
  31. #define _MATCH_H
  32. #include <EUSCompat.h>
  33. #include "ansi_c.h"
  34. #include "cm.h"
  35. #include "rtable4.h"
  36. extern CSA_return_code _DtCmHashCriteria(
  37. _DtCmNameTable *tbl,
  38. CSA_uint32 num_attrs,
  39. CSA_attribute *csaattrs,
  40. cms_attribute *cmsattrs,
  41. CSA_enum *ops,
  42. boolean_t *no_match,
  43. boolean_t *no_start_time_range,
  44. boolean_t *no_end_time_range,
  45. time_t *start1,
  46. time_t *start2,
  47. time_t *end1,
  48. time_t *end2,
  49. long *id,
  50. CSA_uint32 *hnum,
  51. cms_attribute **hattrs,
  52. CSA_enum **hops);
  53. extern void _DtCmFreeHashedArrays(
  54. CSA_uint32 hnum,
  55. cms_attribute *hattrs,
  56. CSA_enum *hops);
  57. extern Appt_4 *_DtCm_match_appts(
  58. Appt_4 *appts,
  59. long id,
  60. boolean_t no_end_time_range,
  61. time_t end1,
  62. time_t end2,
  63. CSA_uint32 num_attrs,
  64. cms_attribute *attrs,
  65. CSA_enum *ops);
  66. extern boolean_t _DtCm_match_one_appt(
  67. Appt_4 *appt,
  68. uint num_attrs,
  69. cms_attribute * attrs,
  70. CSA_enum *ops);
  71. extern Reminder_4 *_DtCm_match_reminders(
  72. Reminder_4 *rems,
  73. uint num_names,
  74. char **names);
  75. extern CSA_return_code _DtCm_check_operator(
  76. uint size,
  77. CSA_attribute *csaattrs,
  78. cms_attribute *cmsattrs,
  79. CSA_enum *ops);
  80. extern boolean_t _DtCm_match_sint32_attribute(
  81. cms_attribute_value *val1,
  82. cms_attribute_value *val2,
  83. CSA_enum op);
  84. extern boolean_t _DtCm_match_uint32_attribute(
  85. cms_attribute_value *val1,
  86. cms_attribute_value *val2,
  87. CSA_enum op);
  88. extern boolean_t _DtCm_match_time_attribute(
  89. cms_attribute_value *val1,
  90. cms_attribute_value *val2,
  91. CSA_enum op);
  92. extern boolean_t _DtCm_match_time_duration_attribute(
  93. cms_attribute_value *val1,
  94. cms_attribute_value *val2,
  95. CSA_enum op);
  96. extern boolean_t _DtCm_match_string_attribute(
  97. cms_attribute_value *val1,
  98. cms_attribute_value *val2,
  99. CSA_enum op);
  100. extern boolean_t _DtCm_match_reminder_attribute(
  101. cms_attribute_value *val1,
  102. cms_attribute_value *val2,
  103. CSA_enum op);
  104. #endif