X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=daemon.h;h=621420a4340c75fc3eddbe37652c066c0772b8eb;hp=fd435577e6258aa24fe2fe1edc9bde2ce50c7d5f;hb=06d0c50525fc14e8127916481a74c14a2f7098af;hpb=ef1f130a1f9ac61a51da10ee56c5bd9ef1b52366 diff --git a/daemon.h b/daemon.h index fd435577..621420a4 100644 --- a/daemon.h +++ b/daemon.h @@ -4,18 +4,18 @@ void daemonize(bool parent_waits); void daemon_open_log_or_die(void); 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() */ -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_log_welcome(const char *whoami); +void daemon_set_priority(int prio); +void daemon_drop_privileges_or_die(const char *username, const char *groupname); +void daemon_set_start_time(void); +time_t daemon_get_uptime(const struct timeval *current_time); +__malloc char *daemon_get_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); -void daemon_set_log_color_or_die(char const *arg); +void daemon_init_colors_or_die(int color_arg, int color_arg_auto, + int color_arg_no, bool logfile_given, char **log_color_argv, + int argc); __printf_2_3 void daemon_log(int ll, const char* fmt,...); /** Daemon log configuration flags. */