ipc: implement events, cleanup the code a bit

This commit is contained in:
Michael Stapelberg
2010-03-12 21:05:05 +01:00
parent 69ed573422
commit 3db4890683
5 changed files with 192 additions and 57 deletions

View File

@ -29,6 +29,9 @@
/** Requests the current workspaces from i3 */
#define I3_IPC_MESSAGE_TYPE_GET_WORKSPACES 1
/** Subscribe to the specified events */
#define I3_IPC_MESSAGE_TYPE_SUBSCRIBE 2
/*
* Messages from i3 to clients
*
@ -40,4 +43,14 @@
/** Workspaces reply type */
#define I3_IPC_REPLY_TYPE_WORKSPACES 1
/** Subscription reply type */
#define I3_IPC_REPLY_TYPE_SUBSCRIBE 2
/*
* Events from i3 to clients
*
*/
#define I3_IPC_EVENT_WORKSPACE 0
#endif