summaryrefslogtreecommitdiff
path: root/src/include/group.h
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@tutanota.com>2024-08-30 16:14:26 -0400
committerLouie Shprung <lshprung@tutanota.com>2024-08-30 16:14:26 -0400
commit615c64bcd69eea3660f0a35396255c2eb45fa283 (patch)
tree8e4d8da22240f1ab8da4ff097f74177fcbf24f50 /src/include/group.h
parent9cd631a391568c3e75d6f9ee65707dea0bea6d9a (diff)
parenta3d9eb21789bf3587f176e6d155d610b8bc69dab (diff)
Merge branch 'testing'
Diffstat (limited to 'src/include/group.h')
-rw-r--r--src/include/group.h29
1 files changed, 11 insertions, 18 deletions
diff --git a/src/include/group.h b/src/include/group.h
index ab6f409..bad33a5 100644
--- a/src/include/group.h
+++ b/src/include/group.h
@@ -1,40 +1,33 @@
#ifndef GROUP_H
#define GROUP_H
-typedef struct group GROUP;
-
-GROUP *create_group(char *new_name);
+#include <stdbool.h>
-void group_add(char *gname, ENTRY *addme);
+#include "entry.h"
-void group_rm(GROUP *g);
-
-void clean_groups(); //remove empty groups from linked list
+typedef struct group GROUP;
-GROUP **get_groups();
+GROUP *create_group(const char *new_name, const int entry_count);
char *get_gname(GROUP *g);
char *get_gprog(GROUP *g);
-void set_gprog(GROUP *g, char *p);
+void set_gprog(GROUP *g, const char *p);
char *get_gflags(GROUP *g);
-void set_gflags(GROUP *g, char *p);
+void set_gflags(GROUP *g, const char *p);
-ENTRY *get_ghead(GROUP *g);
+ENTRY **get_gentries(GROUP *g);
+
+void set_gentry(GROUP *g, int entry_index, ENTRY *new_entry);
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
+// print all group and entry information
+void group_debug(GROUP *g);
#endif