summaryrefslogtreecommitdiff
path: root/src/include/group.h
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2022-11-06 16:28:17 -0800
committerLouie S <louie@example.com>2022-11-06 16:28:17 -0800
commit2c29b6a5145a4c44cbef03197db64cd2d7decd15 (patch)
treedb4129c7efad3b79ee1b21c5ed4ef634044de5eb /src/include/group.h
parent77c6ef13a0599fdb9966a3a7dc967e204b77c7d5 (diff)
Basic functionality for using autotools over basic Makefile
Diffstat (limited to 'src/include/group.h')
-rw-r--r--src/include/group.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/include/group.h b/src/include/group.h
new file mode 100644
index 0000000..ab6f409
--- /dev/null
+++ b/src/include/group.h
@@ -0,0 +1,40 @@
+#ifndef GROUP_H
+#define GROUP_H
+
+typedef struct group GROUP;
+
+GROUP *create_group(char *new_name);
+
+void group_add(char *gname, ENTRY *addme);
+
+void group_rm(GROUP *g);
+
+void clean_groups(); //remove empty groups from linked list
+
+GROUP **get_groups();
+
+char *get_gname(GROUP *g);
+
+char *get_gprog(GROUP *g);
+
+void set_gprog(GROUP *g, char *p);
+
+char *get_gflags(GROUP *g);
+
+void set_gflags(GROUP *g, char *p);
+
+ENTRY *get_ghead(GROUP *g);
+
+int get_ecount(GROUP *g);
+
+void set_ecount(GROUP *g, int new_count); //for use in hiding entries
+
+void set_gquotes(GROUP *g, bool b);
+
+bool get_gquotes(GROUP *g);
+
+int get_gcount();
+
+void group_debug(); //debug function to output all groups
+
+#endif