Use tables of callbacks for the functions.
[virt-df.git] / lib / diskimage_ext2.ml
index 3f72ca4..ea020b5 100644 (file)
@@ -150,3 +150,10 @@ let probe dev =
 
   | { _ } ->
       raise Not_found                  (* Not an EXT2/3 superblock. *)
+
+let offset_is_free _ _ = false
+
+let callbacks = {
+  fs_cb_probe = probe;
+  fs_cb_offset_is_free = offset_is_free;
+}