X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=daemon.h;h=989678df40e6b29a44ae8fb5491db05841d25bca;hp=fd435577e6258aa24fe2fe1edc9bde2ce50c7d5f;hb=e0545fd978a9583f9583b9bb35e5c25cb78c78f4;hpb=65453788515cd5f4c905b518745b4dd7f6f2da10 diff --git a/daemon.h b/daemon.h index fd435577..989678df 100644 --- a/daemon.h +++ b/daemon.h @@ -1,21 +1,21 @@ /** \file daemon.h exported symbols from daemon.c */ -void daemonize(bool parent_waits); +int 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_set_logfile(char *logfile_name); +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(const 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_set_loglevel(const char *loglevel); +bool daemon_init_colors_or_die(int color_arg, int color_arg_auto, + int color_arg_no, bool logfile_given); +void daemon_set_log_color_or_die(const char *arg); __printf_2_3 void daemon_log(int ll, const char* fmt,...); /** Daemon log configuration flags. */