From 300e4a04360d559618fa41fdf037a744e4e7c0eb Mon Sep 17 00:00:00 2001 From: Estevan Castilho Date: Sat, 22 Aug 2026 22:16:47 +0000 Subject: The directory protocol --- lib/protocols/Directory.mli | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/protocols/Directory.mli (limited to 'lib/protocols/Directory.mli') diff --git a/lib/protocols/Directory.mli b/lib/protocols/Directory.mli new file mode 100644 index 0000000..b7bc69c --- /dev/null +++ b/lib/protocols/Directory.mli @@ -0,0 +1,13 @@ +type t + +class type implementation = object + method list : string list + method find : string -> Handle.t option +end + +val make : implementation -> Handle.protocol + +val from : Handle.t -> t Handle.interface option + +val list : t Handle.interface -> string list +val find : t Handle.interface -> string -> Handle.t option -- cgit v1.2.3