summaryrefslogtreecommitdiffstats
path: root/validate.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-11-11 19:28:13 +0100
committerJohn Crispin <blogic@openwrt.org>2013-11-12 10:32:32 +0100
commitf9d31edb8938341b9217ee4c14eb58111414eb97 (patch)
treeeeb48ec34c2f8a30df50de201b5f103e991466f0 /validate.c
parentcd4af8eb78c30718f999c487c93e257bbd969cb1 (diff)
downloadunitd-f9d31edb8938341b9217ee4c14eb58111414eb97.tar
unitd-f9d31edb8938341b9217ee4c14eb58111414eb97.zip
add service_validator support
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'validate.c')
-rw-r--r--validate.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/validate.c b/validate.c
index 85b69af..f94a071 100644
--- a/validate.c
+++ b/validate.c
@@ -314,6 +314,12 @@ dt_type_bool(struct dt_state *s, int nargs)
}
static bool
+dt_type_string(struct dt_state *s, int nargs)
+{
+ return true;
+}
+
+static bool
dt_type_ip4addr(struct dt_state *s, int nargs)
{
struct in6_addr a;
@@ -682,6 +688,7 @@ static struct dt_fun dt_types[] = {
{ "float", dt_type_float },
{ "ufloat", dt_type_ufloat },
{ "bool", dt_type_bool },
+ { "string", dt_type_string },
{ "ip4addr", dt_type_ip4addr },
{ "ip6addr", dt_type_ip6addr },
{ "ipaddr", dt_type_ipaddr },