aboutsummaryrefslogtreecommitdiff
path: root/query.h
diff options
context:
space:
mode:
Diffstat (limited to 'query.h')
-rw-r--r--query.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/query.h b/query.h
index 98fedb0..a5cb168 100644
--- a/query.h
+++ b/query.h
@@ -1,10 +1,15 @@
#define TRUNCATED(s) s[-1]
struct query{
- int post;
+ int method;
char *string;
} query;
-char *nextparam(int);
+enum method{
+ GET,
+ POST
+};
+
+char *nextparam(enum method, int);
void setquery(void);
char *split(char *); \ No newline at end of file