File include/ubs-event.h

Data structures and functions specific to the event module

Included in: src/cmd_events.c
  src/read_events.c
  src/run_event.c
  src/ubs-event.c
  src/ubs.c


Included Files


Type struct event

This structure defines the basis of how events are stored in the allevents array

struct event
struct event 
   { 
     char name[128]; The name of the event. Right now, this is a reference to PREFIX/bin/NAME, where NAME is what would go here
     char logfile[1024]; File to log to
     int mins; The time which the event takes place, in terms of minutes in an hour (0-59)
     int hrs; The time event occurs, in hours. If this is -1, (undefined), the event should occur every hour
   } 


Global Variable PROCNAME

char PROCNAME[128]
Included from include/ubs.h

Global Variable CUR_TIME

struct tm* CUR_TIME
Included from include/ubs.h

Global Variable GLOBAL

ubs_table GLOBAL
Included from include/ubs.h

Global Variable LOGLEVEL

int LOGLEVEL
Included from include/ubs.h

Global Variable ALLEVENTS

All known events which were parsed in the configuration file

struct event* ALLEVENTS


Global Variable EVENT

ubs_table EVENT