diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/doveadm/doveadm.h | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/doveadm/doveadm.h')
-rw-r--r-- | src/doveadm/doveadm.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/doveadm/doveadm.h b/src/doveadm/doveadm.h new file mode 100644 index 0000000..d4f74e5 --- /dev/null +++ b/src/doveadm/doveadm.h @@ -0,0 +1,34 @@ +#ifndef DOVEADM_H +#define DOVEADM_H + +#include <sysexits.h> +#include "doveadm-util.h" +#include "doveadm-settings.h" + +#define USAGE_CMDNAME_FMT " %-12s" + +#define DOVEADM_EX_NOTFOUND EX_NOHOST +#define DOVEADM_EX_NOTPOSSIBLE EX_DATAERR +#define DOVEADM_EX_UNKNOWN -1 + +#define DOVEADM_EX_NOREPLICATE 1001 + +enum doveadm_client_type { + DOVEADM_CONNECTION_TYPE_CLI = 0, + DOVEADM_CONNECTION_TYPE_TCP, + DOVEADM_CONNECTION_TYPE_HTTP, +}; + +#include "doveadm-cmd.h" + +extern bool doveadm_verbose_proctitle; +extern int doveadm_exit_code; + +void usage(void) ATTR_NORETURN; +void help_ver2(const struct doveadm_cmd_ver2 *cmd) ATTR_NORETURN; +void doveadm_master_send_signal(int signo); + +const char *doveadm_exit_code_to_str(int code); +int doveadm_str_to_exit_code(const char *reason); + +#endif |