* ipc.c: UNIX domain socket IPC (initialization, client handling, protocol).
*
*/
-#ifndef _IPC_H
-#define _IPC_H
+#pragma once
#include <ev.h>
#include <stdbool.h>
* when exiting or restarting only!
*
*/
-void ipc_shutdown();
+void ipc_shutdown(void);
void dump_node(yajl_gen gen, Con *con, bool inplace_restart);
-#endif
+/**
+ * For the workspace "focus" event we send, along the usual "change" field,
+ * also the current and previous workspace, in "current" and "old"
+ * respectively.
+ */
+void ipc_send_workspace_focus_event(Con *current, Con *old);
+
+/**
+ * For the window events we send, along the usual "change" field,
+ * also the window container, in "container".
+ */
+void ipc_send_window_event(const char *property, Con *con);