ipc-group.h revision eef20a55e19a239244b14963d716cf0d070fe1bb
#ifndef IPC_GROUP_H
#define IPC_GROUP_H
enum ipc_cmd_status {
/* Command received a reply line */
/* Command finished successfully */
/* Command finished with errors */
};
struct ipc_group {
int listen_fd;
char *name;
/* connections list also acts as a refcount */
struct ipc_connection *connections;
};
/* line is non-NULL only with IPC_CMD_STATUS_REPLY.
Each line begins with the connection ID and TAB. */
/* Returns 0 if name is ok, -1 if name doesn't match the existing one. */
/* Send a command to all connections in a group. All connections are expected
to answer something. If there are no connections, callback() is called
immediately and FALSE is returned. */
void ipc_groups_init(void);
void ipc_groups_deinit(void);
#endif