Index: trunk/Ohana/src/opihi/include/scheduler.h
===================================================================
--- trunk/Ohana/src/opihi/include/scheduler.h	(revision 4576)
+++ trunk/Ohana/src/opihi/include/scheduler.h	(revision 4602)
@@ -26,4 +26,6 @@
 } ControllerStat;
 
+enum {RANGE_ABS, RANGE_DAY, RANGE_WEEK};
+
 /* socket / pipe communication buffer */
 typedef struct {
@@ -34,4 +36,11 @@
   int   Nbuffer;
 } IOBuffer;
+
+typedef struct {
+  time_t start;
+  time_t stop;
+  char type;
+  char keep;
+} TimeRange;
 
 /* a task is a description of the wrapping of a job */
@@ -78,11 +87,4 @@
 // keep: FALSE: do not perform action within this time period
   
-typedef struct {
-  e_time start;
-  e_time stop;
-  char type;
-  char keep;
-} TimeRange;
-
 typedef struct {
   int JobID;				/* internal ID for job */
@@ -141,4 +143,5 @@
 int CheckTasks ();
 int CheckSystem ();
+int CheckTimeRanges (TimeRange *ranges, int Nranges);
 int GetJobOutput (char *channel, int pid, IOBuffer *buffer, int Nbytes);
 int CheckControllerJob (Job *job);
