mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
sysprep: add a "changed file" side effect
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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. *)
|
||||
|
||||
Reference in New Issue
Block a user