summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-07-11 10:29:39 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-07-11 10:29:39 +0800
commit1a1f3c047d36dd59958d3dba6e4fa690d2178fec (patch)
treeac1081e0805baa55bf7895046f963f9508c0c3e9 /client.c
parent6ff383c3d12dc215123fb975b453ca74b1bef162 (diff)
Move newaccount, login, logout to member namespace
Diffstat (limited to 'client.c')
-rw-r--r--client.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/client.c b/client.c
index 2af421c..ac9dc15 100644
--- a/client.c
+++ b/client.c
@@ -1,11 +1,10 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
-#include "login.h"
+#include "request.h"
#include "icclient/product.h"
#include "icclient/catalog.h"
#include "icclient/ord.h"
-#include "icclient/member.h"
#include "icclient/client.h"
typedef struct icclient_product icclient_product;
@@ -130,29 +129,6 @@ void icclient_order(const char *sku, const icclient_catalog *catalog,
request(NULL, NULL, NULL, "%s%s", "order?mv_arg=", sku);
}
-void icclient_newaccount(size_t (*handler)(void *, size_t, size_t, void *),
- struct icclient_member *member,
- const char *username, const char *password, const char *verify,
- const char *successpage, const char *nextpage, const char *failpage)
-{
- login(handler, member, username, password, verify, "NewAccount", successpage,
- nextpage, failpage);
-}
-
-void icclient_login(size_t (*handler)(void *, size_t, size_t, void *),
- struct icclient_member *member,
- const char *username, const char *password,
- const char *successpage, const char *nextpage, const char *failpage)
-{
- login(handler, member, username, password, NULL, "Login", successpage, nextpage,
- failpage);
-}
-
-void icclient_logout()
-{
- request(NULL, NULL, NULL, "%s", "logout");
-}
-
void icclient_page(const char *path,
size_t (*handler)(void *, size_t, size_t, void *),
void **dataptr)