diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2017-04-14 22:34:14 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2017-04-14 22:34:36 +0100 |
commit | f085f13f429d01a8f72e3b348a694124d5ba7533 (patch) | |
tree | 27da92ec779400ffd3732cc91a511e9abea601db /src/navigator.h | |
parent | cccb00ec0fa28d58bcebad8e9c8ff054657b725c (diff) | |
download | imv-f085f13f429d01a8f72e3b348a694124d5ba7533.tar.gz |
Refactor navigator poll rate limiting
Diffstat (limited to 'src/navigator.h')
-rw-r--r-- | src/navigator.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/navigator.h b/src/navigator.h index 7b7ccf8..0d56fa7 100644 --- a/src/navigator.h +++ b/src/navigator.h @@ -27,9 +27,11 @@ 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; }; /* Creates an instance of imv_navigator */ @@ -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); |