diff options
author | louie <lshprung@yahoo.com> | 2020-12-28 15:34:29 -0800 |
---|---|---|
committer | louie <lshprung@yahoo.com> | 2020-12-28 15:34:29 -0800 |
commit | b8209a2349ffb2153e0c17f43412f2c9906aa8d0 (patch) | |
tree | a816b35e8c38b64aad1c00e6ae6a68a00aa282f0 /include | |
parent | 9fa266e62dc0782f7c2125f18fed2668ea414b29 (diff) |
Moved headers to separate directory
Diffstat (limited to 'include')
-rw-r--r-- | include/draw.h | 15 | ||||
-rw-r--r-- | include/draw_extend.h | 6 | ||||
-rw-r--r-- | include/entry.h | 28 | ||||
-rw-r--r-- | include/group.h | 40 | ||||
-rw-r--r-- | include/read_cfg.h | 26 | ||||
-rw-r--r-- | include/read_cfg_extend.h | 12 |
6 files changed, 127 insertions, 0 deletions
diff --git a/include/draw.h b/include/draw.h new file mode 100644 index 0000000..275b8bb --- /dev/null +++ b/include/draw.h @@ -0,0 +1,15 @@ +#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(); + +#endif diff --git a/include/draw_extend.h b/include/draw_extend.h new file mode 100644 index 0000000..6876512 --- /dev/null +++ b/include/draw_extend.h @@ -0,0 +1,6 @@ +#ifndef DRAW_EXTEND_H +#define DRAW_EXTEND_H + +void launch(); + +#endif diff --git a/include/entry.h b/include/entry.h new file mode 100644 index 0000000..51e43ca --- /dev/null +++ b/include/entry.h @@ -0,0 +1,28 @@ +#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 new file mode 100644 index 0000000..ab6f409 --- /dev/null +++ b/include/group.h @@ -0,0 +1,40 @@ +#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 new file mode 100644 index 0000000..abb31cc --- /dev/null +++ b/include/read_cfg.h @@ -0,0 +1,26 @@ +#ifndef READ_CFG_H +#define READ_CFG_H + +#define BUF_LEN 1024 + +void 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); + +#endif diff --git a/include/read_cfg_extend.h b/include/read_cfg_extend.h new file mode 100644 index 0000000..3c9cb24 --- /dev/null +++ b/include/read_cfg_extend.h @@ -0,0 +1,12 @@ +#ifndef READ_CFG_EXTEND_H +#define READ_CFG_EXTEND_H + +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 |