summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-08-12 13:09:37 +0000
committerFrederic Culot <calcurse@culot.org>2007-08-12 13:09:37 +0000
commit5c2cca4a811aa448d70a50cd8d47e08fe85702db (patch)
treef511836daa0192369fbd4793cc4a589f277c489e
parenta9edab12b4f6ea33c478f89e00091a5817d25f9f (diff)
downloadcalcurse-5c2cca4a811aa448d70a50cd8d47e08fe85702db.zip
calendar_get_pom() and moon_phase_e typedef added
-rwxr-xr-xsrc/calendar.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/calendar.h b/src/calendar.h
index 1d60fe7..e77d16c 100755
--- a/src/calendar.h
+++ b/src/calendar.h
@@ -1,4 +1,4 @@
-/* $calcurse: calendar.h,v 1.5 2007/07/28 13:11:42 culot Exp $ */
+/* $calcurse: calendar.h,v 1.6 2007/08/12 13:09:37 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -42,7 +42,7 @@ typedef enum { /* days of week */
FRIDAY,
SATURDAY,
WDAYS
-} wday_t;
+} wday_e;
typedef struct {
unsigned dd;
@@ -50,10 +50,19 @@ typedef struct {
unsigned yyyy;
} date_t;
+typedef enum {
+ NO_POM,
+ FIRST_QUARTER,
+ FULL_MOON,
+ LAST_QUARTER,
+ NEW_MOON,
+ MOON_PHASES
+} pom_e;
+
void calendar_start_date_thread(void);
void calendar_stop_date_thread(void);
void calendar_set_current_date(void);
-void calendar_set_first_day_of_week(wday_t);
+void calendar_set_first_day_of_week(wday_e);
void calendar_change_first_day_of_week(void);
bool calendar_week_begins_on_monday(void);
void calendar_store_current_date(date_t *);
@@ -66,5 +75,6 @@ void calendar_move_right(void);
void calendar_move_left(void);
void calendar_move_up(void);
void calendar_move_down(void);
+char *calendar_get_pom(time_t);
#endif /* CALCURSE_CALENDAR_H */