Mercurial > dovecot > original-hg > dovecot-1.2
view src/master/common.h @ 1610:6850142c4e25 HEAD
New configuration file code. Some syntax changes, but tries to be somewhat
backwards compatible. SIGHUP now reverts back to old configuration if it
detected errors in new one.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 10 Jul 2003 06:04:07 +0300 |
parents | 70b60399c7d3 |
children | cc3cef25662c |
line wrap: on
line source
#ifndef __COMMON_H #define __COMMON_H struct ip_addr; #include "lib.h" #include "hash.h" #include "master-settings.h" #include "../auth/auth-master-interface.h" enum { PROCESS_TYPE_UNKNOWN, PROCESS_TYPE_AUTH, PROCESS_TYPE_LOGIN, PROCESS_TYPE_IMAP, PROCESS_TYPE_POP3, PROCESS_TYPE_SSL_PARAM, PROCESS_TYPE_MAX }; extern struct ioloop *ioloop; extern struct hash_table *pids; extern int null_fd, inetd_login_fd; #define IS_INETD() \ (inetd_login_fd != -1) /* processes */ #define PID_GET_PROCESS_TYPE(pid) \ POINTER_CAST_TO(hash_lookup(pids, POINTER_CAST(pid)), pid_t) #define PID_ADD_PROCESS_TYPE(pid, type) \ hash_insert(pids, POINTER_CAST(pid), POINTER_CAST(type)) #define PID_REMOVE_PROCESS_TYPE(pid) \ hash_remove(pids, POINTER_CAST(pid)) void child_process_init_env(struct settings *set); /* misc */ #define VALIDATE_STR(str) \ validate_str(str, sizeof(str)) int validate_str(const char *str, size_t max_len); #endif