diff options
author | Frederic Culot <calcurse@culot.org> | 2006-09-11 13:37:53 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2006-09-11 13:37:53 +0000 |
commit | 000ffad642fa99b5f44603ec0a40798204526ee3 (patch) | |
tree | df24e1b400c009d61de22812aae1007a4331194a /src/notify.h | |
parent | d04b0151ba090855ecc162568706a1a30a52a009 (diff) | |
download | calcurse-000ffad642fa99b5f44603ec0a40798204526ee3.zip |
notify_app_s created and notify_check_next_app(), notify_thread_app() created
Diffstat (limited to 'src/notify.h')
-rwxr-xr-x | src/notify.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/notify.h b/src/notify.h index 8f64365..693c02a 100755 --- a/src/notify.h +++ b/src/notify.h @@ -1,4 +1,4 @@ -/* $calcurse: notify.h,v 1.1 2006/09/09 20:15:06 culot Exp $ */ +/* $calcurse: notify.h,v 1.2 2006/09/11 13:37:53 culot Exp $ */ /* * Calcurse - text-based organizer @@ -37,13 +37,21 @@ struct notify_vars_s { char *apts_file; char time[NOTIFY_FIELD_LENGTH]; char date[NOTIFY_FIELD_LENGTH]; - pthread_mutex_t mut; + pthread_mutex_t mutex; +}; + +struct notify_app_s { + long time; + char txt[NOTIFY_FIELD_LENGTH]; + pthread_mutex_t mutex; }; void notify_init_bar(int l, int c, int y, int x); void notify_reinit_bar(int l, int c, int y, int x); void notify_update_bar(void); void notify_extract_aptsfile(void); -void *notify_thread_sub(void *arg); +void *notify_thread_time(void *arg); +void notify_check_next_app(void); +void *notify_thread_app(void *time); #endif /* CALCURSE_NOTIFY_H */ |