libkcal
vzic-dump.h
Go to the documentation of this file.00001 /* 00002 * Vzic - a program to convert Olson timezone database files into VZTIMEZONE 00003 * files compatible with the iCalendar specification (RFC2445). 00004 * 00005 * Copyright (C) 2000-2001 Ximian, Inc. 00006 * Copyright (C) 2003 Damon Chaplin. 00007 * 00008 * Author: Damon Chaplin <damon@gnome.org> 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 /* 00026 * These functions are for dumping all the parsed Zones and Rules to 00027 * files, to be compared with the output of vzic-dump.pl to check our parsing 00028 * code is OK. Some of the functions are also used for producing debugging 00029 * output. 00030 */ 00031 00032 #ifndef _VZIC_DUMP_H_ 00033 #define _VZIC_DUMP_H_ 00034 00035 #include <glib.h> 00036 00037 void dump_zone_data (GArray *zone_data, 00038 char *filename); 00039 void dump_rule_data (GHashTable *rule_data, 00040 char *filename); 00041 00042 void dump_rule_array (char *name, 00043 GArray *rule_array, 00044 FILE *fp); 00045 00046 char* dump_year (int year); 00047 char* dump_day_coded (DayCode day_code, 00048 int day_number, 00049 int day_weekday); 00050 char* dump_time (int seconds, 00051 TimeCode time_code, 00052 gboolean use_zero); 00053 00054 void dump_time_zone_names (GList *names, 00055 char *output_dir, 00056 GHashTable *zones_hash); 00057 00058 #endif /* _VZIC_DUMP_H_ */