2 * ggvutils.h: misc utility functions
4 * Copyright 2002 - 2005 the Free Software Foundation
6 * Author: Jaka Mocnik <jaka@gnu.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
23 #ifndef __GGV_UTILS_H__
24 #define __GGV_UTILS_H__
28 extern GtkGSPaperSize ggv_paper_sizes[];
29 extern gfloat ggv_zoom_levels[];
30 extern const gchar *ggv_zoom_level_names[];
31 extern const gint ggv_max_zoom_levels;
33 /* If file exists and is a regular file then return its length, else -1 */
34 gint ggv_file_length(const gchar * filename);
36 /* Test if file exists, is a regular file and its length is > 0 */
37 gboolean ggv_file_readable(const char *filename);
39 #endif /* __GGV_UTILS_H__ */