aboutsummaryrefslogtreecommitdiff
path: root/swaygrab/json.c
AgeCommit message (Collapse)Author
2017-10-22swaygrab: Add some error handling.Geoff Greer
- 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
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
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
2016-09-18implement "focused container" feature for swaygrabZandr Martin