module/i3: use our own copy of i3/ipc.h

The main advantage is when targeting sway/wayland instead of i3/x11;
sway doesn't package ipc.h. There *is* an ipc.h in the sway sources,
but it doesn't define e.g the header format, and has different names
for the constants.
This commit is contained in:
Daniel Eklöf 2019-03-31 12:08:44 +02:00
parent 065c40a9e6
commit 7dc5694965
5 changed files with 117 additions and 8 deletions

View file

@ -12,7 +12,6 @@
#include <xcb/xcb_aux.h>
#endif
#include <i3/ipc.h>
#include <json-c/json_tokener.h>
#define LOG_MODULE "i3:common"
@ -23,6 +22,8 @@
#include "../xcb.h"
#endif
#include "i3-ipc.h"
#if defined(ENABLE_X11)
static bool
get_socket_address_x11(struct sockaddr_un *addr)