summaryrefslogtreecommitdiff
path: root/admin.c
blob: 6e40ddd9f6ee4c5ccbd67b613b1d54d890513161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "login.h"
#include "icclient/admin.h"

void icclient_admin_login(size_t (*handler)(void *contents, size_t size
			, size_t nmemb, void *userdata)
		, struct icclient_user *user
		, const char *username, const char *password
		, const char *successpage, const char *nextpage
		, const char *failpage)
{
	login(handler, user, username, password, NULL, "MMLogin", successpage
			, nextpage, failpage);
}

void icclient_admin_logout()
{
	request(NULL, NULL, NULL, "%s", "admin/login");
}