From c08c805ecd8f2000a35cdeae7b16244d0b3c0528 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Thu, 14 Dec 2017 01:30:54 +0100 Subject: Adaptions for API change in json-c v0.13 Lift restriction on json-c <= 0.12.1 ipc-server: Acquire ownership of referenced json_object properly When adding a referenced json_object with an unknown lifetime to another json_object, it must be done with a wrapped call to json_object_get() to acquire the ownership of that json_object. --- include/swaygrab/json.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/swaygrab') diff --git a/include/swaygrab/json.h b/include/swaygrab/json.h index c1093ef1..c0bd8587 100644 --- a/include/swaygrab/json.h +++ b/include/swaygrab/json.h @@ -1,4 +1,4 @@ -#include +#include "sway_json_helper.h" #include "wlc/wlc.h" void init_json_tree(int socketfd); -- cgit v1.2.3-54-g00ecf