#include <glib/gtypes.h>
#include <libgnomevfs/gnome-vfs-file-size.h>
#include <libxml/tree.h> /* for xmlChar */
+#include <glib/ghash.h>
G_BEGIN_DECLS
const xmlChar *md5;
const xmlChar *id;
gint priority;
+ gint cabinet_used;
};
+extern void (*captivemodid_module_best_priority_notify)(const gchar *module_type);
+
gchar *calc_md5(gconstpointer base,size_t length);
gboolean captivemodid_module_length_is_valid(GnomeVFSFileSize file_size);
struct captivemodid_module *captivemodid_module_md5_lookup(const gchar *file_md5);
-void captivemodid_load(const gchar *captivemodid_pathname);
+gint captivemodid_module_type_best_priority_lookup(const xmlChar *module_type);
+gboolean captivemodid_module_type_best_priority_found(const xmlChar *module_type);
+gboolean captivemodid_load(const gchar *captivemodid_pathname);
+gint captivemodid_cabinet_length_to_used(gint cabinet_length);
G_END_DECLS