doveadm-proxy.c revision 76537b1991e7815c7a867a997f7fa2b3c17412d4
/* Copyright (c) 2011-2016 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "ipc-client.h"
#include "doveadm.h"
#include "doveadm-print.h"
#include <stdio.h>
#include <unistd.h>
struct proxy_context {
struct ipc_client *ipc;
};
extern struct doveadm_cmd_ver2 doveadm_cmd_proxy[];
static struct proxy_context *
{
struct proxy_context *ctx;
const char *socket_path;
int c;
switch (c) {
case 'a':
break;
default:
}
}
return ctx;
}
{
switch (state) {
T_BEGIN {
} T_END;
return;
case IPC_CLIENT_CMD_STATE_OK:
break;
break;
}
}
{
struct proxy_context *ctx;
}
{
switch (state) {
return;
case IPC_CLIENT_CMD_STATE_OK:
break;
break;
}
}
{
struct proxy_context *ctx;
return;
}
doveadm_print_formatted_set_format("{count} connections kicked");
doveadm_print_header_simple("count");
}
struct doveadm_cmd_ver2 doveadm_cmd_proxy[] = {
{
.name = "proxy list",
.usage = "[-a <ipc socket path>]",
},
{
.name = "proxy kick",
.usage = "[-a <ipc socket path>] <user>",
}
};
{
unsigned int i;
for (i = 0; i < N_ELEMENTS(doveadm_cmd_proxy); i++) {
help_ver2(&doveadm_cmd_proxy[i]);
}
i_unreached();
}
void doveadm_register_proxy_commands(void)
{
unsigned int i;
for (i = 0; i < N_ELEMENTS(doveadm_cmd_proxy); i++)
}