aboutsummaryrefslogtreecommitdiff
path: root/swaygrab/json.c
AgeCommit message (Collapse)AuthorLines
2017-12-17Adaptions for API change in json-c v0.130.15.1Björn Esser-5/+4
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.
2017-12-17Revert "Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15"Drew DeVault-4/+5
This reverts commit 1c4a086e7556475139960a25cb642f115d057c23, reversing changes made to 1263ea6497c732bfa1835eea4a8ffe2e6ea6e377.
2017-12-14Adaptions for API change in json-c v0.13Björn Esser-5/+4
2017-10-22swaygrab: Add some error handling.Geoff Greer-1/+11
- If IPC response contains `success: false`, abort and print error message. - If tree has no nodes, abort with error msg instead of segfaulting.
2017-10-22swaygrab: Increase max depth of JSON parsing to 256. Prevent segfault if IPC ↵Geoff Greer-1/+10
response can't be parsed. The default max nesting depth of json-c is 32, which can cause some valid trees to fail to be parsed, so increase that. Also instead of segfaulting, just abort and print the error returned by json-c.
2017-06-06FreeBSD fixesjohalun-1/+1
Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
2017-03-10UnGNUify the codebaseDrew DeVault-0/+2
2016-09-18implement "focused container" feature for swaygrabZandr Martin-0/+123