icalrestriction.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*======================================================================
  2. FILE: icalrestriction.h
  3. CREATOR: eric 24 April 1999
  4. (C) COPYRIGHT 2000, Eric Busboom <eric@softwarestudio.org>
  5. http://www.softwarestudio.org
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of either:
  8. The LGPL as published by the Free Software Foundation, version
  9. 2.1, available at: http://www.gnu.org/licenses/lgpl-2.1.html
  10. Or:
  11. The Mozilla Public License Version 1.0. You may obtain a copy of
  12. the License at http://www.mozilla.org/MPL/
  13. The original code is icalrestriction.h
  14. Contributions from:
  15. Graham Davison (g.m.davison@computer.org)
  16. ======================================================================*/
  17. #ifndef ICALRESTRICTION_H
  18. #define ICALRESTRICTION_H
  19. #include "libical_ical_export.h"
  20. #include "icalcomponent.h"
  21. #include "icalproperty.h"
  22. /* These must stay in this order for icalrestriction_compare to work */
  23. typedef enum icalrestriction_kind
  24. {
  25. ICAL_RESTRICTION_NONE = 0, /* 0 */
  26. ICAL_RESTRICTION_ZERO, /* 1 */
  27. ICAL_RESTRICTION_ONE, /* 2 */
  28. ICAL_RESTRICTION_ZEROPLUS, /* 3 */
  29. ICAL_RESTRICTION_ONEPLUS, /* 4 */
  30. ICAL_RESTRICTION_ZEROORONE, /* 5 */
  31. ICAL_RESTRICTION_ONEEXCLUSIVE, /* 6 */
  32. ICAL_RESTRICTION_ONEMUTUAL, /* 7 */
  33. ICAL_RESTRICTION_UNKNOWN /* 8 */
  34. } icalrestriction_kind;
  35. LIBICAL_ICAL_EXPORT int icalrestriction_compare(icalrestriction_kind restr, int count);
  36. LIBICAL_ICAL_EXPORT int icalrestriction_check(icalcomponent *comp);
  37. #endif /* !ICALRESTRICTION_H */