From 1c85b0c98c3a8a55665abfdd8517baf7791531da Mon Sep 17 00:00:00 2001 From: louie Date: Tue, 4 Aug 2020 10:07:20 -0700 Subject: Added hide option for read_cfg --- group.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'group.c') diff --git a/group.c b/group.c index 6b293a6..ca47edd 100644 --- a/group.c +++ b/group.c @@ -30,6 +30,7 @@ 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 int get_gcount(); void group_debug(); //debug function to output all groups @@ -220,6 +221,11 @@ int get_ecount(GROUP *g){ return g->entry_count; } +void set_ecount(GROUP *g, int new_count){ + assert(g != NULL); + g->entry_count = new_count; +} + int get_gcount(){ return group_count; } -- cgit