sysprep: add a "changed file" side effect

This commit is contained in:
Pino Toscano
2014-12-05 15:20:37 +01:00
parent 1ea9b684b2
commit acb6e8f344
2 changed files with 5 additions and 0 deletions

View File

@@ -30,8 +30,11 @@ let info fs = info ~prog fs
class filesystem_side_effects =
object
val mutable m_created_file = false
val mutable m_changed_file = false
method created_file () = m_created_file <- true
method get_created_file = m_created_file
method changed_file () = m_changed_file <- true
method get_changed_file = m_changed_file
end
class device_side_effects = object end

View File

@@ -26,6 +26,8 @@ val info : ('a, unit, string, unit) format4 -> 'a
class filesystem_side_effects : object
method created_file : unit -> unit
method get_created_file : bool
method changed_file : unit -> unit
method get_changed_file : bool
end
(** The callback should indicate if it has side effects by calling
methods in this class. *)