2015-08-17 04:24:18 +10:00
|
|
|
#ifndef _SWAY_IPC_H
|
|
|
|
#define _SWAY_IPC_H
|
|
|
|
|
2015-10-28 07:59:17 +11:00
|
|
|
#include "container.h"
|
|
|
|
|
2015-08-17 06:02:16 +10:00
|
|
|
enum ipc_command_type {
|
2015-08-21 02:30:32 +10:00
|
|
|
IPC_COMMAND = 0,
|
2015-08-17 06:02:16 +10:00
|
|
|
IPC_GET_WORKSPACES = 1,
|
2015-08-21 02:30:32 +10:00
|
|
|
IPC_SUBSCRIBE = 2,
|
|
|
|
IPC_GET_OUTPUTS = 3,
|
|
|
|
IPC_GET_TREE = 4,
|
|
|
|
IPC_GET_MARKS = 5,
|
2015-08-17 06:02:16 +10:00
|
|
|
IPC_GET_BAR_CONFIG = 6,
|
2015-08-21 02:30:32 +10:00
|
|
|
IPC_GET_VERSION = 7,
|
2015-11-13 04:37:23 +11:00
|
|
|
IPC_SWAY_GET_PIXELS = 0x81
|
2015-08-17 06:02:16 +10:00
|
|
|
};
|
|
|
|
|
2015-08-19 09:52:46 +10:00
|
|
|
void ipc_init(void);
|
2015-08-20 23:12:34 +10:00
|
|
|
void ipc_terminate(void);
|
2015-10-19 04:53:56 +11:00
|
|
|
struct sockaddr_un *ipc_user_sockaddr(void);
|
2015-08-17 04:24:18 +10:00
|
|
|
|
2015-10-28 07:59:17 +11:00
|
|
|
void ipc_event_workspace(swayc_t *old, swayc_t *new);
|
|
|
|
|
2015-08-17 04:24:18 +10:00
|
|
|
#endif
|