main.c revision 2d1892aaeb63b9774237b6e60d6bb04bf6f8259c
/* Copyright (c) 2005-2012 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "restrict-access.h"
#include "master-service.h"
#include "master-service-settings.h"
#include "settings-parser.h"
#include "client-connection.h"
#include "doveadm-settings.h"
#include "doveadm-mail.h"
#include "doveadm-print-private.h"
#include "doveadm-server.h"
const struct doveadm_print_vfuncs *doveadm_print_vfuncs_all[] = {
};
struct client_connection *doveadm_client;
int doveadm_exit_code = 0;
static void doveadm_die(void)
{
/* do nothing. doveadm connections should be over soon. */
}
{
if (doveadm_client != NULL) {
i_error("doveadm server can handle only a single client");
return;
}
}
static void main_preinit(void)
{
}
static void main_init(void)
{
}
static void main_deinit(void)
{
if (doveadm_client != NULL)
}
{
const struct setting_parser_info *set_roots[] = {
};
const char *error;
if (master_getopt(master_service) > 0)
return FATAL_DEFAULT;
&error) < 0)
main_preinit();
main_init();
main_deinit();
return 0;
}