summaryrefslogtreecommitdiff
path: root/src/include/group.h
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@tutanota.com>2024-08-11 17:49:28 -0400
committerLouie Shprung <lshprung@tutanota.com>2024-08-11 17:49:28 -0400
commit4e68f637300c0e360d49f8f672d0675d42da0d1f (patch)
tree9603de49bbbc19623823479fce6bb95c40fda26a /src/include/group.h
parent85596300cc45d73bd3335d8c802b7c590fb1e1d2 (diff)
(Currently broken) reimplementation of group and entry
Diffstat (limited to 'src/include/group.h')
-rw-r--r--src/include/group.h24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/include/group.h b/src/include/group.h
index ab6f409..dc74bcc 100644
--- a/src/include/group.h
+++ b/src/include/group.h
@@ -1,17 +1,13 @@
#ifndef GROUP_H
#define GROUP_H
-typedef struct group GROUP;
-
-GROUP *create_group(char *new_name);
-
-void group_add(char *gname, ENTRY *addme);
+#include <stdbool.h>
-void group_rm(GROUP *g);
+#include "entry.h"
-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);
@@ -23,18 +19,12 @@ char *get_gflags(GROUP *g);
void set_gflags(GROUP *g, 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
-
#endif