aboutsummaryrefslogtreecommitdiff
path: root/lib/stateid.mli
diff options
context:
space:
mode:
authorEnrico Tassi2020-11-17 18:52:30 +0100
committerEnrico Tassi2021-01-27 09:45:48 +0100
commit1fd4c22d493715f154f6b79dc7f6e4efd44ff185 (patch)
tree6b0383f0fd01ce7218fe4782aac6bb7f3c79c64c /lib/stateid.mli
parent0c185094d40d10dc43f1432ef708a329fae25751 (diff)
[ltac] break dependency on the STM
Diffstat (limited to 'lib/stateid.mli')
-rw-r--r--lib/stateid.mli7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/stateid.mli b/lib/stateid.mli
index 9b2de9c894..4563710f84 100644
--- a/lib/stateid.mli
+++ b/lib/stateid.mli
@@ -42,3 +42,10 @@ type ('a,'b) request = {
name : string
}
+(* Asks the document manager is the given state is valid (or belongs to an
+ old version of the document) *)
+val is_valid : doc:int -> t -> bool
+
+(* By default [is_valid] always answers true, but a document manager supporting
+ undo operations like the STM can override this. *)
+val set_is_valid : (doc:int -> t -> bool) -> unit