1 #ifndef FORMATS_H 2 #define FORMATS_H 3 4 #include "gliv.h" 5 6 /* Loader according to filename extension. */ 7 typedef enum { 8 LOADER_NONE, /* Unrecognized extension. */ 9 LOADER_PIXBUF, /* GdkPixbuf. */ 10 LOADER_DOT_GLIV, /* GLiv collection. */ 11 LOADER_DECOMP, /* Decompression first. */ 12 LOADER_DECOMP_PIXBUF, /* Compressed image. */ 13 LOADER_DECOMP_DOT_GLIV /* Compressed collection. */ 14 } loader_t; 15 16 struct format { 17 const gchar *name; 18 const loader_t loader; 19 }; 20 21 const struct format *ext_to_loader(const gchar * str, guint len); 22 23 #endif 24