/usr/include/evolution-data-server-3.2/mapi/exchange-mapi-cal-tz-utils.h is in libexchangemapi-1.0-dev 3.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with the program; if not, see <http://www.gnu.org/licenses/>
*
*
* Authors:
* Suman Manjunath <msuman@novell.com>
*
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
*
*/
#ifndef EXCHANGE_MAPI_CAL_TZ_UTILS_H
#define EXCHANGE_MAPI_CAL_TZ_UTILS_H
#include <glib.h>
#include "exchange-mapi-cal-utils.h"
G_BEGIN_DECLS
const gchar *
exchange_mapi_cal_tz_util_get_mapi_equivalent (const gchar *ical_tz_location);
const gchar *
exchange_mapi_cal_tz_util_get_ical_equivalent (const gchar *mapi_tz_location);
gboolean
exchange_mapi_cal_tz_util_populate (void);
void
exchange_mapi_cal_tz_util_destroy (void);
void
exchange_mapi_cal_tz_util_dump (void);
void
exchange_mapi_cal_util_mapi_tz_to_bin (const gchar *mapi_tzid, struct Binary_r *sb);
int
exchange_mapi_cal_util_mapi_tz_pidlidtimezone (icaltimezone *ictz);
gchar *
exchange_mapi_cal_util_bin_to_mapi_tz (GByteArray *ba);
G_END_DECLS
#if 0
typedef int16_t WORD;
typedef int8_t BYTE;
typedef uint32_t GUID;
typedef uint64_t ULONG;
typedef time_t SYSTEMTIME;
typedef uint8_t* LPBYTE;
typedef gchar * LPWSTR;
typedef gchar WCHAR;
// TZREG
// =====================
// This is an individual description that defines when a daylight
// saving shift, and the return to standard time occurs, and how
// far the shift is. This is basically the same as
// TIME_ZONE_INFORMATION documented in MSDN, except that the strings
// describing the names "daylight" and "standard" time are omitted.
//
typedef struct RenTimeZone
{
long lBias; // offset from GMT
long lStandardBias; // offset from bias during standard time
long lDaylightBias; // offset from bias during daylight time
SYSTEMTIME stStandardDate; // time to switch to standard time
SYSTEMTIME stDaylightDate; // time to switch to daylight time
} TZREG;
// TZRULE
// =====================
// This structure represents both a description when a daylight.
// saving shift occurs, and in addition, the year in which that
// timezone rule came into effect.
//
typedef struct
{
WORD wFlags; // indicates which rule matches legacy recur
SYSTEMTIME stStart; // indicates when the rule starts
TZREG TZReg; // the timezone info
} TZRULE;
// TZDEFINITION
// =====================
// This represents an entire timezone including all historical, current
// and future timezone shift rules for daylight saving time, etc. It's
// identified by a unique GUID.
//
typedef struct
{
WORD wFlags; // indicates which fields are valid
GUID guidTZID; // guid uniquely identifying this timezone
LPWSTR pwszKeyName; // the name of the key for this timezone
WORD cRules; // the number of timezone rules for this definition
TZRULE* rgRules; // an array of rules describing when shifts occur
} TZDEFINITION;
// Allocates return value with new.
// clean up with delete[].
TZDEFINITION* BinToTZDEFINITION(ULONG cbDef, LPBYTE lpbDef);
#endif
#endif
|