/* Copyright (c) 2011-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "ioloop.h"
#include "net.h"
#include "istream.h"
#include "ostream.h"
#include "hostpid.h"
#include "master-service.h"
#include "ipc-client.h"
#include <unistd.h>
struct ipc_client_cmd {
void *context;
};
struct ipc_client {
char *path;
int fd;
};
{
unsigned int count;
if (count == 0) {
return;
}
switch (*line++) {
case ':':
break;
case '+':
break;
case '-':
break;
default:
line = "Invalid input";
break;
}
if (state != IPC_CLIENT_CMD_STATE_REPLY)
}
{
const char *line;
return;
}
} T_END;
}
{
return 0;
return -1;
}
return 0;
}
{
return;
}
}
struct ipc_client *
{
return client;
}
{
}
{
if (ipc_client_connect(client) < 0) {
"ipc connect failed", context);
return;
}
}