summaryrefslogtreecommitdiff
path: root/src/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/group.c')
-rw-r--r--src/group.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/group.c b/src/group.c
new file mode 100644
index 0000000..db387e0
--- /dev/null
+++ b/src/group.c
@@ -0,0 +1,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);
+}