You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
953 B
34 lines
953 B
9 years ago
|
#ifndef _SWAY_IPC_SERVER_H
|
||
|
#define _SWAY_IPC_SERVER_H
|
||
|
#include "container.h"
|
||
9 years ago
|
#include "config.h"
|
||
9 years ago
|
#include "ipc.h"
|
||
|
|
||
|
void ipc_init(void);
|
||
|
void ipc_terminate(void);
|
||
|
struct sockaddr_un *ipc_user_sockaddr(void);
|
||
|
|
||
9 years ago
|
void ipc_event_workspace(swayc_t *old, swayc_t *new, const char *change);
|
||
9 years ago
|
void ipc_event_barconfig_update(struct bar_config *bar);
|
||
9 years ago
|
/**
|
||
|
* Send IPC mode event to all listening clients
|
||
|
*/
|
||
|
void ipc_event_mode(const char *mode);
|
||
9 years ago
|
/**
|
||
|
* Send IPC window change event
|
||
|
*/
|
||
|
void ipc_event_window(swayc_t *window, const char *change);
|
||
9 years ago
|
/**
|
||
|
* 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);
|
||
9 years ago
|
/**
|
||
|
* Send IPC keyboard binding event.
|
||
|
*/
|
||
|
void ipc_event_binding_keyboard(struct sway_binding *sb);
|
||
9 years ago
|
const char *swayc_type_string(enum swayc_types type);
|
||
9 years ago
|
|
||
|
#endif
|