summaryrefslogtreecommitdiff
path: root/rtclient/user.h
blob: 7d7aebc896abf9337c9b13a300469d51c396cf87 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef RTCLIENT_USER_H
#define RTCLIENT_USER_H

#include <stdbool.h>

struct rt_user {
	char *id;
	char *password;
	char *name;
	char *emailaddress;
	char *realname;
	char *nickname;
	char *gecos;
	char *organization;
	char *address1;
	char *address2;
	char *city;
	char *state;
	char *zip;
	char *country;
	char *homephone;
	char *workphone;
	char *mobilephone;
	char *pagerphone;
	char *contactinfo;
	char *comments;
	char *signature;
	char lang[2];
	bool privileged;
	bool disabled;
};

#ifdef __cplusplus
extern "C" {
#endif

	void rtclient_user_show(struct rt_user **userptr, const char *name);
	void rtclient_user_free(struct rt_user *user);

#ifdef __cplusplus
}
#endif

#endif // RTCLIENT_USER_H