2015-11-28 01:50:04 +11:00
|
|
|
#ifndef _SWAY_IPC_SERVER_H
|
|
|
|
#define _SWAY_IPC_SERVER_H
|
|
|
|
|
2016-02-08 22:06:33 +11:00
|
|
|
#include <wlc/wlc.h>
|
|
|
|
|
2015-11-28 01:50:04 +11:00
|
|
|
#include "container.h"
|
2015-12-22 01:28:34 +11:00
|
|
|
#include "config.h"
|
2015-11-28 01:50:04 +11:00
|
|
|
#include "ipc.h"
|
|
|
|
|
|
|
|
void ipc_init(void);
|
|
|
|
void ipc_terminate(void);
|
|
|
|
struct sockaddr_un *ipc_user_sockaddr(void);
|
|
|
|
|
2015-12-22 08:01:36 +11:00
|
|
|
void ipc_event_workspace(swayc_t *old, swayc_t *new, const char *change);
|
2015-12-22 01:28:34 +11:00
|
|
|
void ipc_event_barconfig_update(struct bar_config *bar);
|
2016-01-04 08:00:59 +11:00
|
|
|
/**
|
|
|
|
* Send IPC mode event to all listening clients
|
|
|
|
*/
|
|
|
|
void ipc_event_mode(const char *mode);
|
2016-01-05 12:20:20 +11:00
|
|
|
/**
|
|
|
|
* Sends an IPC modifier event to all listening clients. The modifier event
|
|
|
|
* includes a key 'change' with the value of state and a key 'modifier' with
|
|
|
|
* the name of that modifier.
|
|
|
|
*/
|
|
|
|
void ipc_event_modifier(uint32_t modifier, const char *state);
|
2016-01-07 03:01:45 +11:00
|
|
|
/**
|
|
|
|
* Send IPC keyboard binding event.
|
|
|
|
*/
|
|
|
|
void ipc_event_binding_keyboard(struct sway_binding *sb);
|
2015-11-29 00:49:02 +11:00
|
|
|
const char *swayc_type_string(enum swayc_types type);
|
2015-11-28 01:50:04 +11:00
|
|
|
|
2016-02-08 22:06:33 +11:00
|
|
|
/**
|
|
|
|
* Send pixel data to registered clients.
|
|
|
|
*/
|
|
|
|
void ipc_get_pixels(wlc_handle output);
|
|
|
|
|
2015-11-28 01:50:04 +11:00
|
|
|
#endif
|