summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_parse.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_parse.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/nxt_parse.h b/src/nxt_parse.h
new file mode 100644
index 00000000..0643af1e
--- /dev/null
+++ b/src/nxt_parse.h
@@ -0,0 +1,25 @@
+
+/*
+ * Copyright (C) Igor Sysoev
+ * Copyright (C) NGINX, Inc.
+ */
+
+#ifndef _NXT_PARSE_H_INCLUDED_
+#define _NXT_PARSE_H_INCLUDED_
+
+
+NXT_EXPORT nxt_int_t nxt_int_parse(const u_char *p, size_t len);
+NXT_EXPORT ssize_t nxt_size_t_parse(const u_char *p, size_t len);
+NXT_EXPORT ssize_t nxt_size_parse(const u_char *p, size_t len);
+NXT_EXPORT nxt_off_t nxt_off_t_parse(const u_char *p, size_t len);
+
+NXT_EXPORT nxt_int_t nxt_str_int_parse(nxt_str_t *s);
+
+NXT_EXPORT double nxt_number_parse(const u_char **start, const u_char *end);
+
+NXT_EXPORT nxt_time_t nxt_time_parse(const u_char *p, size_t len);
+NXT_EXPORT nxt_int_t nxt_term_parse(const u_char *p, size_t len,
+ nxt_bool_t seconds);
+
+
+#endif /* _NXT_PARSE_H_INCLUDED_ */