X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubox.git;a=blobdiff_plain;f=validate%2Flibvalidate.h;h=145e08e3c7ac77f13fba3a28df77917c621f0773;hp=d3b8e05cc00f7640ae60cae79dc9bc33e1c68cf0;hb=31d66f2c3b2afbc9eaae4e2c22103d0f79e9503e;hpb=0ff5e8917bc3205d9887d5f714369a0072829edc diff --git a/validate/libvalidate.h b/validate/libvalidate.h index d3b8e05..145e08e 100644 --- a/validate/libvalidate.h +++ b/validate/libvalidate.h @@ -1,6 +1,13 @@ #ifndef _VALIDATE_H__ #define _VALIDATE_H__ -bool dt_parse(const char *code, const char *value); +enum dt_type { + DT_INVALID, + DT_BOOL, + DT_NUMBER, + DT_STRING +}; + +enum dt_type dt_parse(const char *code, const char *value); #endif