/* Copyright (c) 2011-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "net.h"
#include "istream.h"
#include "ostream.h"
#include "hostpid.h"
#include "master-service.h"
#include "ipc-server.h"
#include <unistd.h>
#define IPC_SERVER_PROTOCOL_MINOR_VERSION 0
struct ipc_cmd {
unsigned int tag;
};
struct ipc_server {
int ipc_cmd_refcount;
int fd;
};
{
unsigned int tag = 0;
char *p;
/* tag cmd */
if (p != NULL) {
*p++ = '\0';
p = NULL;
}
if (p == NULL || *p == '\0') {
return;
}
T_BEGIN {
} T_END;
}
{
char *line;
return;
}
if (!server->version_received) {
return;
i_error("IPC proxy not compatible with this server "
"(mixed old and new binaries?)");
return;
}
}
}
{
return;
}
}
{
return;
}
struct ipc_server *
{
return server;
}
{
}
{
}
{
}
{
}
{
}
{
}