15 #include <yajl/yajl_gen.h>
16 #include <yajl/yajl_parse.h>
45 typedef
void(*
handler_t)(
int, uint8_t*,
int, uint32_t, uint32_t);
48 #define IPC_HANDLER(name) \
49 static void handle_ ## name (int fd, uint8_t *message, \
50 int size, uint32_t message_size, \
51 uint32_t message_type)
74 void ipc_send_event(
const char *event, uint32_t message_type,
const char *payload);
83 void dump_node(yajl_gen gen,
Con *con,
bool inplace_restart);
A 'Con' represents everything from the X11 root window down to a single X11 window.
void(* handler_t)(int, uint8_t *, int, uint32_t, uint32_t)
TAILQ_ENTRY(ipc_client) clients
void ipc_send_event(const char *event, uint32_t message_type, const char *payload)
Sends the specified event to all IPC clients which are currently connected and subscribed to this kin...
int ipc_create_socket(const char *filename)
Creates the UNIX domain socket at the given path, sets it to non-blocking mode, bind()s and listen()s...
char * current_socketpath
void ipc_shutdown(void)
Calls shutdown() on each socket and closes it.
void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart)
void ipc_new_client(EV_P_ struct ev_io *w, int revents)
Handler for activity on the listening socket, meaning that a new client has just connected and we sho...