/* Global stuff for sysmon client. */ #ifndef GLOBAL_H #define GLOBAL_H #include /*************************************************************************/ /* Name of the default configuration file: */ #define DEF_CONFIG "/etc/sysmon.conf" /*************************************************************************/ /* External declaractions. */ /******** config.c ********/ /* Read in a given configuration file. Return 1 if the file was * successfully processed, 0 otherwise. */ extern int read_config(const char *filename); /******** misc.c ********/ /* Convert a signal name or number to an integer. */ extern int sigtoi(const char *sig); /* Compute the difference time1-time2 and return it in milliseconds. If * either parameter is NULL, the current time is used. This function never * overflows. */ extern int tv_diff_milli(struct timeval *time1, struct timeval *tv2); /******** reboot.c ********/ /* Reboot menu. */ extern void reboot_menu(int quick); /*************************************************************************/ #endif /* GLOBAL_H */