Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

gwcrontab.h

00001 /*
00002  * Glacsweb gwcrontab.h
00003  * Copyright (C) 2004 Alistair Riddoch,
00004  *                    The University of Southampton
00005  */
00006 
00007 #ifndef GLACSWEB_GWCRONTAB_H
00008 #define GLACSWEB_GWCRONTAB_H
00009 
00010 #include <sys/types.h>
00011 
00012 typedef struct gwcron_job_ {
00013     int cj_time;
00014     const char * cj_command;
00015     struct gwcron_job_ * cj_next;
00016 } gwcron_job;
00017 
00018 extern gwcron_job * job_queue;
00019 
00020 gwcron_job * get_first_job(gwcron_job * queue, int time);
00021 int append_job(gwcron_job ** queue, int time, const char * cmd);
00022 void flush_jobs(gwcron_job * queue);
00023 void dump_jobs(gwcron_job * job);
00024 int read_crontab();
00025 int read_minutes(struct timeval * tv);
00026 int read_day(struct timeval * tv);
00027 
00028 #endif // GLACSWEB_GWCRONTAB_H

Generated on Mon Aug 9 13:41:44 2004 for Glacsweb by doxygen 1.3.5