Blame libgweather/gweather-parser.h

rpm-build ca2b01
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
rpm-build ca2b01
/* parser.h - Locations.xml parser
rpm-build ca2b01
 *
rpm-build ca2b01
 * Copyright 2008, Red Hat, Inc.
rpm-build ca2b01
 *
rpm-build ca2b01
 * This library is free software; you can redistribute it and/or
rpm-build ca2b01
 * modify it under the terms of the GNU Lesser General Public License
rpm-build ca2b01
 * as published by the Free Software Foundation; either version 2.1 of
rpm-build ca2b01
 * the License, or (at your option) any later version.
rpm-build ca2b01
 *
rpm-build ca2b01
 * This library is distributed in the hope that it will be useful, but
rpm-build ca2b01
 * WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build ca2b01
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
rpm-build ca2b01
 * Lesser General Public License for more details.
rpm-build ca2b01
 *
rpm-build ca2b01
 * You should have received a copy of the GNU Lesser General Public
rpm-build ca2b01
 * License along with this library; if not, see
rpm-build ca2b01
 * <http://www.gnu.org/licenses/>.
rpm-build ca2b01
 */
rpm-build ca2b01
rpm-build ca2b01
#ifndef GWEATHER_PARSER_H
rpm-build ca2b01
#define GWEATHER_PARSER_H 1
rpm-build ca2b01
rpm-build ca2b01
#include <libxml/xmlreader.h>
rpm-build ca2b01
#include "gweather-timezone.h"
rpm-build ca2b01
rpm-build ca2b01
typedef struct {
rpm-build ca2b01
    xmlTextReaderPtr xml;
rpm-build ca2b01
    time_t year_start, year_end;
rpm-build ca2b01
    GHashTable *metar_code_cache;
rpm-build ca2b01
    GHashTable *timezone_cache;
rpm-build ca2b01
    GHashTable *country_code_cache;
rpm-build ca2b01
} GWeatherParser;
rpm-build ca2b01
rpm-build ca2b01
GWeatherParser *_gweather_parser_new                 (void);
rpm-build ca2b01
GWeatherParser *_gweather_parser_new_for_path        (const char *path);
rpm-build ca2b01
void            _gweather_parser_free                (GWeatherParser *parser);
rpm-build ca2b01
rpm-build ca2b01
char           *_gweather_parser_get_value           (GWeatherParser *parser);
rpm-build ca2b01
char           *_gweather_parser_get_msgctxt_value   (GWeatherParser *parser);
rpm-build ca2b01
char           *_gweather_parser_get_localized_value (GWeatherParser *parser);
rpm-build ca2b01
rpm-build ca2b01
/* from gweather-timezone.c */
rpm-build ca2b01
GWeatherTimezone **_gweather_timezones_parse_xml (GWeatherParser *parser);
rpm-build ca2b01
rpm-build ca2b01
#endif