summaryrefslogtreecommitdiffstats
path: root/smenu.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2021-08-28 01:36:46 +0200
committerpgen <p.gen.progs@gmail.com>2021-08-28 01:38:12 +0200
commit0a804a7ba9c20b505e97528c1f2b1db547ab825a (patch)
treeb6e627befe6003ce640a0a0e88c97a55c061a23f /smenu.h
parentefc51dfabb437a81f16017b12d9ea9d58ac4a552 (diff)
Add a global timeout which defaults to 15min
A new option can be used to modify this value: -f|-forgotten_timeout|-global_timeout
Diffstat (limited to 'smenu.h')
-rw-r--r--smenu.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/smenu.h b/smenu.h
index 55317c1..dc1f964 100644
--- a/smenu.h
+++ b/smenu.h
@@ -181,6 +181,7 @@ struct limit_s
struct ticker_s
{
int search;
+ int forgotten;
int help;
int winch;
int direct_access;
@@ -204,10 +205,11 @@ struct termios old_in_attrs;
/* """"""""""""""""""""" */
struct itimerval periodic_itv; /* refresh rate for the timeout counter. */
-int help_timer = -1;
-int winch_timer = -1;
-int daccess_timer = -1;
-int search_timer = -1;
+int forgotten_timer = -1;
+int help_timer = -1;
+int winch_timer = -1;
+int daccess_timer = -1;
+int search_timer = -1;
/* Structure containing the attributes components. */
/* """"""""""""""""""""""""""""""""""""""""""""""" */