icaltz-util.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Authors :
  3. * Chenthill Palanisamy <pchenthill@novell.com>
  4. *
  5. * Copyright 2007, Novell, Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of version 2 of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the
  18. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  19. * Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef ICALTZUTIL_H
  22. #define ICALTZUTIL_H
  23. #include "libical_ical_export.h"
  24. #include "icalcomponent.h"
  25. #if defined(sun) && defined(__SVR4)
  26. #define ZONES_TAB_SYSTEM_FILENAME "tab/zone_sun.tab"
  27. #else
  28. #define ZONES_TAB_SYSTEM_FILENAME "zone.tab"
  29. #endif
  30. LIBICAL_ICAL_EXPORT const char *icaltzutil_get_zone_directory(void);
  31. LIBICAL_ICAL_EXPORT icalcomponent *icaltzutil_fetch_timezone(const char *location);
  32. /* set @p on to 0 if inter-operable vtimezones are desired; else exact timezones are in-effect */
  33. LIBICAL_ICAL_EXPORT void icaltzutil_set_exact_vtimezones_support(int on);
  34. /* return 1 if exact vtimezones are in-effect; else inter-operable vtimezones are in-effect */
  35. LIBICAL_ICAL_EXPORT int icaltzutil_get_exact_vtimezones_support(void);
  36. #endif