~ubuntu-branches/debian/sid/postgresql-9.3/sid

« back to all changes in this revision

Viewing changes to src/include/utils/tzparser.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 05:39:52 UTC
  • Revision ID: package-import@ubuntu.com-20130508053952-1j7uilp7mjtrvq8q
Tags: upstream-9.3~beta1
ImportĀ upstreamĀ versionĀ 9.3~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * tzparser.h
 
4
 *        Timezone offset file parsing definitions.
 
5
 *
 
6
 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
 
7
 * Portions Copyright (c) 1994, Regents of the University of California
 
8
 *
 
9
 * src/include/utils/tzparser.h
 
10
 *
 
11
 *-------------------------------------------------------------------------
 
12
 */
 
13
#ifndef TZPARSER_H
 
14
#define TZPARSER_H
 
15
 
 
16
#include "utils/datetime.h"
 
17
 
 
18
/*
 
19
 * The result of parsing a timezone configuration file is an array of
 
20
 * these structs, in order by abbrev.  We export this because datetime.c
 
21
 * needs it.
 
22
 */
 
23
typedef struct tzEntry
 
24
{
 
25
        /* the actual data: TZ abbrev (downcased), offset, DST flag */
 
26
        char       *abbrev;
 
27
        int                     offset;                 /* in seconds from UTC */
 
28
        bool            is_dst;
 
29
        /* source information (for error messages) */
 
30
        int                     lineno;
 
31
        const char *filename;
 
32
} tzEntry;
 
33
 
 
34
 
 
35
extern TimeZoneAbbrevTable *load_tzoffsets(const char *filename);
 
36
 
 
37
#endif   /* TZPARSER_H */