Initial original import from: fuse-2.4.2-2.fc4
[captive.git] / src / install / acquire / captivemodid.h
index 1fcdd4f..c40bd75 100644 (file)
@@ -24,6 +24,7 @@
 #include <glib/gtypes.h>
 #include <libgnomevfs/gnome-vfs-file-size.h>
 #include <libxml/tree.h>       /* for xmlChar */
+#include <glib/ghash.h>
 
 
 G_BEGIN_DECLS
@@ -34,12 +35,18 @@ struct captivemodid_module {
        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