From cdea6b0e8c1e51c9962f73e183a3bd72ed63b40f Mon Sep 17 00:00:00 2001 From: Louie S Date: Sun, 6 Nov 2022 14:53:23 -0800 Subject: Restructure repository --- include/cache.h | 10 ---------- include/draw.h | 18 ------------------ include/entry.h | 28 ---------------------------- include/group.h | 40 ---------------------------------------- include/read_cfg.h | 23 ----------------------- 5 files changed, 119 deletions(-) delete mode 100644 include/cache.h delete mode 100644 include/draw.h delete mode 100644 include/entry.h delete mode 100644 include/group.h delete mode 100644 include/read_cfg.h (limited to 'include') diff --git a/include/cache.h b/include/cache.h deleted file mode 100644 index 0f5a6c4..0000000 --- a/include/cache.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef CACHE_H -#define CACHE_H - -void save_to_cache(int g_hover, int e_hover, int true_hover, char *cfg_name); - -void load_cache(int *g_hover, int *e_hover, int *true_hover, char *new_cfg_name); - -char *get_cache_path(bool create); - -#endif diff --git a/include/draw.h b/include/draw.h deleted file mode 100644 index 0a6baba..0000000 --- a/include/draw.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef DRAW_H -#define DRAW_H - -//These functions are needed by either unix/draw.c or windows/draw.c and must be supplied via a header file - -#define BUF_LEN 1024 - -extern int g_hover; -extern int e_hover; -extern struct group **g; -extern struct entry **e; - -char *get_launch(); - -//functions that differ between os -void launch(); - -#endif diff --git a/include/entry.h b/include/entry.h deleted file mode 100644 index 51e43ca..0000000 --- a/include/entry.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef ENTRY_H -#define ENTRY_H - -typedef struct entry ENTRY; - -ENTRY *create_entry(char *new_name, char *new_path, bool force); - -void entry_rm(ENTRY *e, ENTRY *prev); - -void clear_entries(ENTRY *head); - -int entry_add(ENTRY *head, 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 set_hide(ENTRY *e, bool status); - -bool get_hide(ENTRY *e); - -void entry_debug(ENTRY *trav); - -#endif diff --git a/include/group.h b/include/group.h deleted file mode 100644 index ab6f409..0000000 --- a/include/group.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef GROUP_H -#define GROUP_H - -typedef struct group GROUP; - -GROUP *create_group(char *new_name); - -void group_add(char *gname, ENTRY *addme); - -void group_rm(GROUP *g); - -void clean_groups(); //remove empty groups from linked list - -GROUP **get_groups(); - -char *get_gname(GROUP *g); - -char *get_gprog(GROUP *g); - -void set_gprog(GROUP *g, char *p); - -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 - -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 diff --git a/include/read_cfg.h b/include/read_cfg.h deleted file mode 100644 index b6b996f..0000000 --- a/include/read_cfg.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef READ_CFG_H -#define READ_CFG_H - -#define BUF_LEN 1024 - -bool cfg_interp(char *path); -bool get_sort(); -bool get_case_sensitivity(); -void refer_to_doc(); -void addme(char *path, char *group, bool force, char *name); -int search_ch(char *str, char c); -int search_last_ch(char *str, char c); -int wild_cmp(char *wild, char *literal); -char *strip_quotes(char *str); -void error_mes(int ln, char *message); - -//functions that differ by os -extern char sep; -char *find_config(); -void mkconfig_wizard(); -void handle_fname(char *path, char *group, bool recurs, bool force, char *name, int ln); - -#endif -- cgit