summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-09-14 14:59:32 +0000
committerFrederic Culot <calcurse@culot.org>2006-09-14 14:59:32 +0000
commit239b4f3e966a7953d51d28b7a18e9c7b0a9fb1b0 (patch)
tree88fe4b15db09b6039b1b4385cef35912deb2625e
parentde370f33c0cfe7ddbca924785d779b4f28f229ee (diff)
downloadcalcurse-239b4f3e966a7953d51d28b7a18e9c7b0a9fb1b0.zip
notify_app_s and notify_vars_s structures updated, and adding of the new functions prototypes
-rwxr-xr-xsrc/notify.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/notify.h b/src/notify.h
index 693c02a..40f898a 100755
--- a/src/notify.h
+++ b/src/notify.h
@@ -1,4 +1,4 @@
-/* $calcurse: notify.h,v 1.2 2006/09/11 13:37:53 culot Exp $ */
+/* $calcurse: notify.h,v 1.3 2006/09/14 14:59:32 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -30,10 +30,14 @@
#include <ncurses.h>
#include <pthread.h>
+#include "apoint.h"
+#include "recur.h"
+
#define NOTIFY_FIELD_LENGTH 20
struct notify_vars_s {
WINDOW *win;
+ long time_in_sec;
char *apts_file;
char time[NOTIFY_FIELD_LENGTH];
char date[NOTIFY_FIELD_LENGTH];
@@ -43,6 +47,7 @@ struct notify_vars_s {
struct notify_app_s {
long time;
char txt[NOTIFY_FIELD_LENGTH];
+ int got_app;
pthread_mutex_t mutex;
};
@@ -53,5 +58,9 @@ void notify_extract_aptsfile(void);
void *notify_thread_time(void *arg);
void notify_check_next_app(void);
void *notify_thread_app(void *time);
+void notify_check_added(char *mesg, long start);
+void notify_check_repeated(recur_apoint_llist_node_t *i);
+int notify_same_item(long time);
+int notify_same_recur_item(recur_apoint_llist_node_t *i);
#endif /* CALCURSE_NOTIFY_H */