X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fregistry%2Fhelm_registry.mli;h=1ef1aa3b7749c2ca6a913dc75ffcf6c0fe3f1f6a;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=7dd2a68d436126fd710f43949625c692aa4ea3b0;hpb=e510bddb3826ec421b1e5f22ce972430994a410c;p=helm.git diff --git a/helm/ocaml/registry/helm_registry.mli b/helm/ocaml/registry/helm_registry.mli index 7dd2a68d4..1ef1aa3b7 100644 --- a/helm/ocaml/registry/helm_registry.mli +++ b/helm/ocaml/registry/helm_registry.mli @@ -146,8 +146,8 @@ val get_opt_default: (string -> 'a) -> default:'a -> string -> 'a (** never fails with Key_not_found, instead return the empty list *) val get_list: (string -> 'a) -> string -> 'a list - (** same as get_list, but assumes list length to be 2 *) -val get_pair: (string -> 'a) -> string -> 'a * 'a + (** decode values which are blank separated list of values, of length 2 *) +val get_pair: (string -> 'a) -> (string -> 'b) -> string -> 'a * 'b (** {4 Shorthands} *) @@ -194,3 +194,6 @@ val save_to: string -> unit *) val load_from: ?path:string list -> string -> unit + (** removes all keys *) +val clear: unit -> unit +