blob: d4f74e555f8cd00b6ae52b25cf86f912d3095fd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
|