summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/entry.h18
-rw-r--r--src/include/group.h24
-rw-r--r--src/include/read_cfg.h17
3 files changed, 19 insertions, 40 deletions
diff --git a/src/include/entry.h b/src/include/entry.h
index 51e43ca..a46dc46 100644
--- a/src/include/entry.h
+++ b/src/include/entry.h
@@ -1,17 +1,11 @@
+#include <stdbool.h>
+
#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);
+ENTRY *create_entry(const char *new_name, const char *new_path, const bool force);
char *get_ename(ENTRY *e);
@@ -19,10 +13,4 @@ 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/src/include/group.h b/src/include/group.h
index ab6f409..dc74bcc 100644
--- a/src/include/group.h
+++ b/src/include/group.h
@@ -1,17 +1,13 @@
#ifndef GROUP_H
#define GROUP_H
-typedef struct group GROUP;
-
-GROUP *create_group(char *new_name);
-
-void group_add(char *gname, ENTRY *addme);
+#include <stdbool.h>
-void group_rm(GROUP *g);
+#include "entry.h"
-void clean_groups(); //remove empty groups from linked list
+typedef struct group GROUP;
-GROUP **get_groups();
+GROUP *create_group(const char *new_name, const int entry_count);
char *get_gname(GROUP *g);
@@ -23,18 +19,12 @@ char *get_gflags(GROUP *g);
void set_gflags(GROUP *g, char *p);
-ENTRY *get_ghead(GROUP *g);
+ENTRY **get_gentries(GROUP *g);
+
+void set_gentry(GROUP *g, int entry_index, ENTRY *new_entry);
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/src/include/read_cfg.h b/src/include/read_cfg.h
index a76e55e..fc40cc0 100644
--- a/src/include/read_cfg.h
+++ b/src/include/read_cfg.h
@@ -3,23 +3,24 @@
#include <stdbool.h>
+#include "group.h"
+
#define BUF_LEN 1024
-bool cfg_interp(char *path);
+GROUP **cfg_interp(char *path, int *group_count);
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);
+//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(char *path);
-void handle_fname(char *path, char *group, bool recurs, bool force, char *name, int ln);
#endif