aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2010-10-11 17:20:11 +0200
committerSebastian Pipping <sebastian@pipping.org>2010-10-11 17:20:11 +0200
commitf3fee983dd082266cc932df5b248d1a9b1bdd41a (patch)
tree547d2b6c7e6fc1afed5854568d1a18a2f8331b02 /helpers.h
parentZero (diff)
downloadconf-update-f3fee983dd082266cc932df5b248d1a9b1bdd41a.tar.gz
conf-update-f3fee983dd082266cc932df5b248d1a9b1bdd41a.tar.bz2
conf-update-f3fee983dd082266cc932df5b248d1a9b1bdd41a.zip
Add code of conf-update 1.01.0
Diffstat (limited to 'helpers.h')
-rw-r--r--helpers.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/helpers.h b/helpers.h
new file mode 100644
index 0000000..86f0819
--- /dev/null
+++ b/helpers.h
@@ -0,0 +1,24 @@
+char **get_listing(char *cmd, char *delim);
+int compare_updates(const void *a, const void *b);
+struct node *find_node(struct node *root, char *path);
+void sanity_checks();
+void draw_legend(WINDOW *inner);
+void draw_background();
+struct node *fold_updates(char **list);
+struct node *find_node(struct node *root, char *path);
+char *get_indent_name(struct node *update, int width);
+void build_item_array(ITEM **item_array, struct node *root, int menu_width);
+int count_array_items(struct node *root);
+void free_folded(struct node *root);
+bool get_confirmation(WINDOW *win, char *action);
+void exit_error(bool expr, char *hint);
+char **get_files_list(char *searchpath, char **index, int *max);
+
+struct node {
+ char *name;
+ struct node **children;
+ int ct_children;
+ struct node *parent;
+ bool dir;
+ char **link;
+};