diff options
author | John Crispin <blogic@openwrt.org> | 2013-11-11 19:28:13 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-11-12 10:32:32 +0100 |
commit | f9d31edb8938341b9217ee4c14eb58111414eb97 (patch) | |
tree | eeb48ec34c2f8a30df50de201b5f103e991466f0 /validate.c | |
parent | cd4af8eb78c30718f999c487c93e257bbd969cb1 (diff) | |
download | unitd-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 }, |