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

#include "rtuser.h"
#include "rtticket.h"

#ifdef __cplusplus
extern "C" {
#endif

	bool rtclient_init(const char *server_url);
	void rtclient_login(const char *name, const char *password);
	void rtclient_userget(struct rt_user **userptr, const char *name);
	void rtclient_search(struct rt_ticketlist **listptr, const char *query);
	void rtclient_userfree(struct rt_user *user);
	void rtclient_cleanup();

#ifdef __cplusplus
}
#endif

#endif // RTCLIENT_H