projects
/
project
/
ubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
validate: change dt_parse() to return an enum indicating the kind of value that was...
[project/ubox.git]
/
validate
/
libvalidate.h
diff --git
a/validate/libvalidate.h
b/validate/libvalidate.h
index
d3b8e05
..
145e08e
100644
(file)
--- 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