summaryrefslogtreecommitdiff
path: root/icclient/client.h
blob: 9527300c5f9d99b9a06c05e8b772a2c342d6ba7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef ICCLIENT_CLIENT_H
#define ICCLIENT_CLIENT_H

struct icclient_catalog;

#ifdef __cplusplus
extern "C" {
#endif

	bool icclient_init(const char *url, const char *certificate);
	void icclient_allproducts(size_t (*handler)(void *contents, size_t size
				, size_t nmemb, void *userdata)
			, struct icclient_catalog **catalogptr);
	void icclient_newaccount(const char *username, const char *password
			, const char *verify, const char *successpage
			, const char *nextpage, const char *failpage);
	void icclient_login(const char *username, const char *password
			, const char *successpage, const char *nextpage
			, const char *failpage);
	void icclient_logout();
	void icclient_cleanup();

#ifdef __cplusplus
}
#endif

#endif // ICCLIENT_CLIENT_H