X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=daemon.h;h=d5583f580e8ec3f2af9456b564e47c13521a4af4;hp=3705b9da27cc9db1892fb06c5b64cdcd273702da;hb=e65bdaa6b207d5cd409acaa5d0d33fe85dd7a28d;hpb=9609fd30e0d3db45ede3ab5c6bc3a77c15b6aef8 diff --git a/daemon.h b/daemon.h index 3705b9da..d5583f58 100644 --- a/daemon.h +++ b/daemon.h @@ -7,15 +7,15 @@ void daemon_close_log(void); void log_welcome(const char *whoami); void drop_privileges_or_die(const char *username, const char *groupname); /** used for server_uptime() */ -enum uptime {UPTIME_SET, UPTIME_GET}; -time_t server_uptime(enum uptime set_or_get); -__malloc char *uptime_str(void); +void set_server_start_time(const struct timeval *startuptime); +time_t get_server_uptime(const struct timeval *current_time); +__malloc char *get_server_uptime_str(const struct timeval *current_time); void daemon_set_logfile(char *logfile_name); void daemon_set_flag(unsigned flag); void daemon_clear_flag(unsigned flag); void daemon_set_loglevel(char *loglevel); void daemon_set_default_log_colors(void); -int daemon_set_log_color(char const *arg); +void daemon_set_log_color_or_die(char const *arg); /** Daemon log configuration flags. */ enum daemon_flags {