aboutsummaryrefslogtreecommitdiff
path: root/lib/stateid.mli
diff options
context:
space:
mode:
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