aboutsummaryrefslogtreecommitdiff
path: root/src/urlencoded.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlencoded.h')
-rw-r--r--src/urlencoded.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/urlencoded.h b/src/urlencoded.h
index e07ed6f..319f01e 100644
--- a/src/urlencoded.h
+++ b/src/urlencoded.h
@@ -1,13 +1,12 @@
-#ifndef MAGI_INCLUDED_INNER_URLENCODED
-#define MAGI_INCLUDED_INNER_URLENCODED
+#ifndef MAGI_INCLUDED_URLENCODED
+#define MAGI_INCLUDED_URLENCODED
-#include "request.h"
+#include "error.h"
+#include "param.h"
-/* Fills request->url_params via parsing encoded data. */
-void magi_urlencoded(magi_param_list **list,
- magi_request *request,
- const char *encoded);
+/* Add decoded params from 'encoded' to 'list'. */
+magi_error magi_urlencoded(magi_param_list **list, const char *encoded);
#endif