summaryrefslogtreecommitdiff
path: root/entry.c
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-07-11 17:08:41 -0700
committerlouie <lshprung@yahoo.com>2020-07-11 17:08:41 -0700
commit8f36e6816b5d5bd968f28e3c0acb269560d2796f (patch)
tree221717b1fd6f5a5df8bb0b23187d6f1106275bf0 /entry.c
parent8ec8e9d5dd37eac5266f8cd94ce946f23f436ef9 (diff)
Added hiding of empty groups
Diffstat (limited to 'entry.c')
-rw-r--r--entry.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/entry.c b/entry.c
index 7431b64..a74f18e 100644
--- a/entry.c
+++ b/entry.c
@@ -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);