summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-09-15 15:37:45 +0000
committerFrederic Culot <calcurse@culot.org>2006-09-15 15:37:45 +0000
commit61534576781c256c6e06944dd471e79b582518ce (patch)
treebd0733319998aacae9170acaa90d4c5c2b6b4486 /src
parentac8604952b15cbb9879ece85d098e4a8f59bc735 (diff)
downloadcalcurse-61534576781c256c6e06944dd471e79b582518ce.tar.gz
calcurse-61534576781c256c6e06944dd471e79b582518ce.zip
nbar_s structure created to store notify-bar settings
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vars.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/vars.h b/src/vars.h
index 12dc6a6..92cee1a 100755
--- a/src/vars.h
+++ b/src/vars.h
@@ -1,4 +1,4 @@
-/* $calcurse: vars.h,v 1.3 2006/09/11 13:12:32 culot Exp $ */
+/* $calcurse: vars.h,v 1.4 2006/09/15 15:37:45 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -28,6 +28,7 @@
#define CALCURSE_VARS_H
#include <ncurses.h>
+#include <pthread.h>
#include <stdbool.h>
#define DIR_NAME ".calcurse"
@@ -57,6 +58,14 @@ struct pad_s {
WINDOW *ptrwin; /* pointer to the pad window */
};
+struct nbar_s {
+ int show; /* display or hide the notify-bar */
+ int cntdwn; /* warn when time left before next app < cntdwn */
+ char *datefmt; /* format for displaying date */
+ char *timefmt; /* format for displaying time */
+ pthread_mutex_t mutex;
+};
+
extern int col, row;
extern bool colorize;
extern int days[12];
@@ -68,5 +77,6 @@ extern char path_apts[MAX_LENGTH];
extern char path_conf[MAX_LENGTH];
extern WINDOW *awin, *cwin, *twin, *swin;
extern struct pad_s *apad;
+extern struct nbar_s *nbar;
#endif /* CALCURSE_VARS_H */