summaryrefslogtreecommitdiff
path: root/src/setup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup.h')
-rw-r--r--src/setup.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/setup.h b/src/setup.h
index 1fe6a53..7ce2cd1 100644
--- a/src/setup.h
+++ b/src/setup.h
@@ -28,6 +28,7 @@ G_BEGIN_DECLS
#define TARGET_IMAGE_DIR_PREFIX "_"
#define SETUP_XML "setup.xml"
+#define SETUP_NATIVE_VERSION 200 /* 2.0 */
/* forward declaration */
@@ -46,6 +47,7 @@ typedef struct {
gboolean override_nofullsize;
gboolean strip_unused_tags;
gchar *setup_xml_path;
+ gint version;
TGalleryDesign *design;
@@ -118,12 +120,16 @@ typedef struct {
} TGalleryDesignTheme;
struct TGalleryDesign {
+ gint version;
GList *image_sizes;
GList *themes;
gchar **supplemental_files;
};
+#define SETUP_IS_LEGACY(s) s->version < SETUP_NATIVE_VERSION
+#define SETUP_IS_NATIVE(s) s->version == SETUP_NATIVE_VERSION
+#define SETUP_IS_NEWER(s) s->version > SETUP_NATIVE_VERSION
/*
* find_setup_xml: try to find setup.xml in standard paths
@@ -141,6 +147,11 @@ TGallerySetup * parse_setup_xml (const gchar *filename);
TGalleryDesign * parse_design_setup_xml (const gchar *filename);
/*
+ * makeup_legacy_design: create design using legacy setup.xml file
+ */
+TGalleryDesign * makeup_legacy_design (const gchar *filename);
+
+/*
* validate_design_setup: validate design.xml file setup
*/
gboolean validate_design_setup (TGalleryDesign *design);