bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2011-2018 Dovecot authors, see the included COPYING file */
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainenstruct ipc_group *ipc_group_alloc(int listen_fd)
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen i_assert(ipc_group_lookup_listen_fd(listen_fd) == NULL);
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen struct ipc_group *const *groups, *group = *_group;
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen for (i = 0; i < count; i++) {
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainenstruct ipc_group *ipc_group_lookup_listen_fd(int listen_fd)
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainenstruct ipc_group *ipc_group_lookup_name(const char *name)
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainenint ipc_group_update_name(struct ipc_group *group, const char *name)
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainenstatic void ipc_group_cmd_callback(enum ipc_cmd_status status,
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen group_cmd->callback(IPC_CMD_STATUS_REPLY, line,
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen /* fall through */
eef20a55e19a239244b14963d716cf0d070fe1bbTimo Sirainenbool ipc_group_cmd(struct ipc_group *group, const char *cmd,
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen for (conn = group->connections; conn != NULL; conn = next) {
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen struct ipc_connection *conn = (*groupp)->connections;
68c4b2cd63f7225fda4a61f28030edace3298b53Timo Sirainen ipc_connection_destroy(&conn, FALSE, "Shutting down");