diff options
author | louie <lshprung@yahoo.com> | 2020-07-11 17:08:41 -0700 |
---|---|---|
committer | louie <lshprung@yahoo.com> | 2020-07-11 17:08:41 -0700 |
commit | 8f36e6816b5d5bd968f28e3c0acb269560d2796f (patch) | |
tree | 221717b1fd6f5a5df8bb0b23187d6f1106275bf0 /entry.c | |
parent | 8ec8e9d5dd37eac5266f8cd94ce946f23f436ef9 (diff) |
Added hiding of empty groups
Diffstat (limited to 'entry.c')
-rw-r--r-- | entry.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -17,10 +17,13 @@ typedef struct entry{ } ENTRY; ENTRY *create_entry(char *new_name, char *new_path, bool force); +void entry_rm(ENTRY *e); ENTRY *entry_add_last(ENTRY *tail, ENTRY *add); ENTRY **get_entries(ENTRY *head, int count); char *get_ename(ENTRY *e); char *get_epath(ENTRY *e); +bool get_eforce(ENTRY *e); +void entry_debug(ENTRY *trav); ENTRY *create_entry(char *new_name, char *new_path, bool force){ ENTRY *new; @@ -35,6 +38,11 @@ ENTRY *create_entry(char *new_name, char *new_path, bool force){ return new; } +void entry_rm(ENTRY *e){ + assert(e != NULL); + free(e); +} + ENTRY *entry_add_last(ENTRY *tail, ENTRY *add){ assert(add != NULL); |