aboutsummaryrefslogtreecommitdiff
path: root/src/navigator.h
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2017-08-06 19:45:15 +0100
committerHarry Jeffery <harry@exec64.co.uk>2017-08-06 19:45:15 +0100
commit2ffd6edea17c1ec8fdb33d1135e27db0eb080625 (patch)
tree113e09b6386ad4b69ddb00fb8e6e41fe31261320 /src/navigator.h
parentcee36733b5db5dcd0b479663000f889788468c80 (diff)
parent12450f38753699b0e606c3ad542892752da6aca8 (diff)
downloadimv-2ffd6edea17c1ec8fdb33d1135e27db0eb080625.tar.gz
Merge v3 changes into master
Diffstat (limited to 'src/navigator.h')
-rw-r--r--src/navigator.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/navigator.h b/src/navigator.h
index ac3cc59..0d56fa7 100644
--- a/src/navigator.h
+++ b/src/navigator.h
@@ -27,16 +27,18 @@ struct imv_navigator {
int cur_path;
char **paths;
time_t *mtimes;
+ time_t *ctimes;
int last_move_direction;
int changed;
int wrapped;
+ int poll_countdown;
};
-/* Initialises an instance of imv_navigator */
-void imv_navigator_init(struct imv_navigator *nav);
+/* Creates an instance of imv_navigator */
+struct imv_navigator *imv_navigator_create(void);
-/* Cleans up all resources owned by a imv_navigator instance */
-void imv_navigator_destroy(struct imv_navigator *nav);
+/* Cleans up an imv_navigator instance */
+void imv_navigator_free(struct imv_navigator *nav);
/* Adds the given path to the navigator's internal list.
* If a directory is given, all files within that directory are added.
@@ -65,7 +67,7 @@ int imv_navigator_find_path(struct imv_navigator *nav, const char *path);
/* Returns 1 if either the currently selected path or underlying file has
* changed since last called */
-int imv_navigator_poll_changed(struct imv_navigator *nav, const int nopoll);
+int imv_navigator_poll_changed(struct imv_navigator *nav);
/* Check whether navigator wrapped around paths list */
int imv_navigator_wrapped(struct imv_navigator *nav);