summaryrefslogtreecommitdiff
path: root/include/group.h
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-12-28 15:34:29 -0800
committerlouie <lshprung@yahoo.com>2020-12-28 15:34:29 -0800
commitb8209a2349ffb2153e0c17f43412f2c9906aa8d0 (patch)
treea816b35e8c38b64aad1c00e6ae6a68a00aa282f0 /include/group.h
parent9fa266e62dc0782f7c2125f18fed2668ea414b29 (diff)
Moved headers to separate directory
Diffstat (limited to 'include/group.h')
-rw-r--r--include/group.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/include/group.h b/include/group.h
new file mode 100644
index 0000000..ab6f409
--- /dev/null
+++ b/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