diff options
| author | Estevan Castilho <tevo@riajuu.net> | 2026-08-29 01:14:27 +0000 |
|---|---|---|
| committer | Estevan Castilho <tevo@riajuu.net> | 2026-08-29 01:14:27 +0000 |
| commit | f87767c3e5b0f1920a6179d5cd0d4613cca92658 (patch) | |
| tree | c3b6c832b32447b07f221132b07e995d58c920cb /lib/protocols/Registry.mli | |
| parent | b2a9404cbfa4e38391d345e137f6dbda963d960d (diff) | |
| download | RNT-f87767c3e5b0f1920a6179d5cd0d4613cca92658.tar.gz RNT-f87767c3e5b0f1920a6179d5cd0d4613cca92658.zip | |
Make registration more like a CAS
Diffstat (limited to '')
| -rw-r--r-- | lib/protocols/Registry.mli | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/protocols/Registry.mli b/lib/protocols/Registry.mli index 175ebed..3390167 100644 --- a/lib/protocols/Registry.mli +++ b/lib/protocols/Registry.mli @@ -1,13 +1,11 @@ type t class type implementation = object - method register : string -> Handle.t -> (unit, Concepts.Condition.condition) result - method unregister : string -> (unit, Concepts.Condition.condition) result + method update : string -> Handle.t option -> Handle.t option -> (bool, Concepts.Condition.condition) result end val make : #implementation -> Handle.protocol val from : Handle.t -> t Handle.interface option -val register : t Handle.interface -> string -> Handle.t -> (unit, Concepts.Condition.condition) result -val unregister : t Handle.interface -> string -> (unit, Concepts.Condition.condition) result +val update : t Handle.interface -> string -> Handle.t option -> Handle.t option -> (bool, Concepts.Condition.condition) result |
