diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-22 21:37:07 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-11-22 21:37:07 -0500 |
commit | 7753a0ec750f17e1f014cda0dd2564ae0533cdd4 (patch) | |
tree | 581d84114d97edbe2ef068a7568fe44b63159ce5 /include | |
parent | d7d21bb0f895248cafefc3d12e4aed033a8e5d17 (diff) |
Wire up IPC server
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/ipc-json.h | 7 | ||||
-rw-r--r-- | include/sway/ipc-server.h | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/include/sway/ipc-json.h b/include/sway/ipc-json.h new file mode 100644 index 00000000..5bfddcba --- /dev/null +++ b/include/sway/ipc-json.h @@ -0,0 +1,7 @@ +#ifndef _SWAY_IPC_JSON_H +#define _SWAY_IPC_JSON_H +#include <json-c/json.h> + +json_object *ipc_json_get_version(); + +#endif diff --git a/include/sway/ipc-server.h b/include/sway/ipc-server.h new file mode 100644 index 00000000..b85ff535 --- /dev/null +++ b/include/sway/ipc-server.h @@ -0,0 +1,12 @@ +#ifndef _SWAY_IPC_SERVER_H +#define _SWAY_IPC_SERVER_H +#include <sys/socket.h> +#include "ipc.h" + +struct sway_server; + +void ipc_init(struct sway_server *server); +void ipc_terminate(void); +struct sockaddr_un *ipc_user_sockaddr(void); + +#endif |