summaryrefslogtreecommitdiff
path: root/admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'admin.c')
-rw-r--r--admin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/admin.c b/admin.c
new file mode 100644
index 0000000..60bf583
--- /dev/null
+++ b/admin.c
@@ -0,0 +1,14 @@
+#include "login.h"
+#include "icclient/admin.h"
+
+void icclient_admin_login(const char *username, const char *password
+ , const char *successpage, const char *nextpage
+ , const char *failpage)
+{
+ login(username, password, NULL, "MMLogin", successpage, nextpage, failpage);
+}
+
+void icclient_admin_logout()
+{
+ request(NULL, NULL, NULL, "%s", "admin/login");
+}