summaryrefslogtreecommitdiff
path: root/rtclient.h
blob: 32028b1b1ea0f965d2eece682350daafce8c648c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef RTCLIENT_H
#define RTCLIENT_H

#include "rtuser.h"

#ifdef __cplusplus
extern "C" {
#endif

	bool rtclient_init(const char *server_url);
	void rtclient_login(const char *name, const char *password);
	bool rtclient_get_user(struct rt_user **user, const char *name);
	void rtclient_search(const char *query);
	void rtclient_user_free(struct rt_user *user);
	void rtclient_cleanup();

#ifdef __cplusplus
}
#endif

#endif // RTCLIENT_H