summaryrefslogtreecommitdiff
path: root/src/group.c
blob: db387e08739c3836d2e7b9628b5b1cda235164f9 (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
#include <string.h>

#include "group.h"

char *group_get_name(Group *g) {
	return g->name;
}

char *group_get_desc(Group *g) {
	return g->desc;
}

char *group_get_url(Group *g) {
	return g->url;
}

void group_set_name(Group *g, char *name) {
	strcpy(g->name, name);
}

void group_set_desc(Group *g, char *desc) {
	strcpy(g->desc, desc);
}

void group_set_url(Group *g, char *url) {
	strcpy(g->url, url);
}