summaryrefslogtreecommitdiff
path: root/request.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-16 15:13:17 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-16 15:13:17 +0800
commit7270c84fe616357da17baca20437ef1113bb87eb (patch)
tree6bb618daebec4de3bbb32fa0a93e436396cb24e7 /request.h
parente2d7e962356e6f064ffcb0c23a9d87580d9beaab (diff)
Replace struct body with const char *[][2]
Diffstat (limited to 'request.h')
-rw-r--r--request.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/request.h b/request.h
index 0b57cf7..e27d284 100644
--- a/request.h
+++ b/request.h
@@ -3,14 +3,7 @@
#include "interchange/typedefs.h"
-struct body {
- size_t num_pairs;
- struct pair {
- const char *key;
- const char *value;
- } pairs[16];
-};
-
-void request(void (*)(interchange_response *), void (*)(void *), struct body *, char *, ...);
+void request(void (*)(interchange_response *), void (*)(void *),
+ const char *[][2], char *, ...);
#endif