summaryrefslogtreecommitdiff
path: root/src/value_checker.mli
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2016-12-15 09:56:07 +0600
committerDaniil Baturin <daniil@baturin.org>2016-12-15 09:56:07 +0600
commit88cca944fa1788d4f3089c9f93c59666bfcce1fb (patch)
tree4fb211c72964405f14b25317268ba67c5d995c61 /src/value_checker.mli
parent6f95f4191699186a14a3109f08822189d0f8331e (diff)
downloadvyconf-88cca944fa1788d4f3089c9f93c59666bfcce1fb.tar.gz
vyconf-88cca944fa1788d4f3089c9f93c59666bfcce1fb.zip
T212: use a directory (normally $program_dir/validators) for external validators.
What's bad is that right now way too many things are aware of the nature of external validators, and the validators dir (formerly validators hashtable) is passed around a lot. We'll need to think it through.
Diffstat (limited to 'src/value_checker.mli')
-rw-r--r--src/value_checker.mli4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value_checker.mli b/src/value_checker.mli
index 115ec9f..62f5b6b 100644
--- a/src/value_checker.mli
+++ b/src/value_checker.mli
@@ -2,6 +2,6 @@ type value_constraint = Regex of string | External of string * string
exception Bad_validator of string
-val validate_value : (string, string) Hashtbl.t -> value_constraint -> string -> bool
+val validate_value : string -> value_constraint -> string -> bool
-val validate_any : (string, string) Hashtbl.t -> value_constraint list -> string -> bool
+val validate_any : string -> value_constraint list -> string -> bool