diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-02-26 22:50:39 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-02-26 22:50:39 +0100 |
| commit | 89c58dc04c264c5778ae34d1428e12483f3ac5ac (patch) | |
| tree | d5aef506841b3b0e2e91016d0c0bbb608535873c /src/setup.h | |
| parent | 10a77c7a1c4648693ded958d6ac8641afcdf1d34 (diff) | |
| download | cataract-89c58dc04c264c5778ae34d1428e12483f3ac5ac.tar.xz | |
Autotoolize
Diffstat (limited to 'src/setup.h')
| -rw-r--r-- | src/setup.h | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/src/setup.h b/src/setup.h new file mode 100644 index 0000000..eea4b17 --- /dev/null +++ b/src/setup.h @@ -0,0 +1,92 @@ +/* Cataract - Static web photo gallery generator + * Copyright (C) 2008 Tomas Bzatek <tbzatek@users.sourceforge.net> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or any later version. + * + * 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +#ifndef __SETUP_H__ +#define __SETUP_H__ + + +#include <glib.h> + + +typedef struct { + gboolean verbose; + char *real_templates_dir; + + char *setup_xml_path; + + char *templates_path; + char *template_index; + char *template_album; + char *template_photo; + char *styles; + char *scripts; + + char *footer; + char *meta_author; + char *meta_description; + char *meta_keywords; + gboolean use_title_as_meta; + + int thumbnail_quality; + unsigned long thumbnail_landscape_width; + unsigned long thumbnail_landscape_height; + unsigned long thumbnail_portrait_width; + unsigned long thumbnail_portrait_height; + + int preview_quality; + unsigned long preview_landscape_width; + unsigned long preview_landscape_height; + unsigned long preview_portrait_width; + unsigned long preview_portrait_height; + + char *border_style; + gboolean nofullsize; + + gboolean preload; + gboolean use_iptc_exif; + gboolean erase_exif_thumbnail; + + char *site_title; + char *add_copyright; + gboolean use_inpage_links; +} TGallerySetup; + + + +/* + * find_setup_xml: try to find setup.xml in standard paths + */ +gboolean find_setup_xml (TGallerySetup *setup); + +/* + * parse_setup_xml: XML parser for setup.xml file + */ +gboolean parse_setup_xml (const char *filename, TGallerySetup *setup); + +/* + * free_setup_data: free allocated setup data + */ +void free_setup_data (TGallerySetup *setup); + +/* + * find_templates_directory: absolute/relative path checks, trying to find templates directory + * - returned string should be freed + */ +char *find_templates_directory (TGallerySetup *setup); + + +#endif /* __SETUP_H__ */ |
