]> granicus.if.org Git - fcron/commitdiff
code cleaning
authorthib <thib>
Wed, 12 Sep 2001 13:49:02 +0000 (13:49 +0000)
committerthib <thib>
Wed, 12 Sep 2001 13:49:02 +0000 (13:49 +0000)
code cleaning
send a mail if noticenotrun and queue full

database.h

index 265fa4644110ff4311473cad99917740671cdb54..3ccd849f2fecf2b5ab63a21a55d17d442c0b04fc 100644 (file)
@@ -21,7 +21,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: database.h,v 1.2 2001-05-15 00:48:58 thib Exp $ */
+ /* $Id: database.h,v 1.3 2001-09-12 13:49:02 thib Exp $ */
 
 #ifndef __DATABASE_H__
 #define __DATABASE_H__
@@ -32,16 +32,17 @@ extern void wait_chld(void);
 extern void wait_all(int *counter);
 extern time_t time_to_sleep(time_t lim);
 extern time_t check_lavg(time_t lim);
-extern void set_next_exe(CL *line, char option);
+extern void set_next_exe(struct CL *line, char option);
 #define NO_GOTO 1      /* set_next_exe() : no goto_non_matching() */
 #define NO_GOTO_LOG 2  /* set_next_exe() : NO_GOTO but also log nextexe time */
-extern void set_next_exe_notrun(CL *line, char context);
+extern void set_next_exe_notrun(struct CL *line, char context);
 #define LAVG 1         /* set_next_exe_notrun() : context */
 #define SYSDOWN 2      /* set_next_exe_notrun() : context */
-extern void mail_notrun(CL *line, char context, struct tm *since);
-extern void insert_nextexe(CL *line);
-extern void add_serial_job(CL *line);
-extern void add_lavg_job(CL *line);
+#define QUEUE_FULL 3   /* set_next_exe_notrun() : context */
+extern void mail_notrun(struct CL *line, char context, struct tm *since);
+extern void insert_nextexe(struct CL *line);
+extern void add_serial_job(struct CL *line);
+extern void add_lavg_job(struct CL *line);
 extern void run_serial_job(void);
 
 #endif /* __DATABASE_H__ */