diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-05-16 15:13:17 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-05-16 15:13:17 +0800 |
| commit | 7270c84fe616357da17baca20437ef1113bb87eb (patch) | |
| tree | 6bb618daebec4de3bbb32fa0a93e436396cb24e7 /login.h | |
| parent | e2d7e962356e6f064ffcb0c23a9d87580d9beaab (diff) | |
Replace struct body with const char *[][2]
Diffstat (limited to 'login.h')
| -rw-r--r-- | login.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -9,16 +9,16 @@ static inline void login(const char *username, const char *password, void (*handler)(interchange_response *), void (*callback)(void *)) { - request(handler, callback, &(struct body){ 5 + (successpage ? 1 : 0) - + (failpage ? 1 : 0), { - { "mv_username", username }, - { "mv_password", password }, - { "mv_verify", verify }, - { "mv_click", click }, - { "mv_nextpage", nextpage }, - { "mv_successpage", successpage }, - { "mv_failpage", failpage }, - }}, "%s", "process"); + request(handler, callback, (const char *[][2]){ + "mv_username", username, + "mv_password", password, + "mv_verify", verify, + "mv_click", click, + "mv_nextpage", nextpage, + "mv_successpage", successpage, + "mv_failpage", failpage, + NULL + }, "%s", "process"); } #endif |