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 | Add initial command subsystem (untested) (diff) | |
download | sway-7753a0ec750f17e1f014cda0dd2564ae0533cdd4.tar.gz sway-7753a0ec750f17e1f014cda0dd2564ae0533cdd4.tar.zst sway-7753a0ec750f17e1f014cda0dd2564ae0533cdd4.zip |
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 @@ | |||
1 | #ifndef _SWAY_IPC_JSON_H | ||
2 | #define _SWAY_IPC_JSON_H | ||
3 | #include <json-c/json.h> | ||
4 | |||
5 | json_object *ipc_json_get_version(); | ||
6 | |||
7 | #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 @@ | |||
1 | #ifndef _SWAY_IPC_SERVER_H | ||
2 | #define _SWAY_IPC_SERVER_H | ||
3 | #include <sys/socket.h> | ||
4 | #include "ipc.h" | ||
5 | |||
6 | struct sway_server; | ||
7 | |||
8 | void ipc_init(struct sway_server *server); | ||
9 | void ipc_terminate(void); | ||
10 | struct sockaddr_un *ipc_user_sockaddr(void); | ||
11 | |||
12 | #endif | ||