aboutsummaryrefslogtreecommitdiffstats
path: root/common/ipc-client.c
Commit message (Collapse)AuthorAge
* Replace wlr_log with sway_logLibravatar M Stoeckl2019-01-21
| | | | | | | | | | | | | This commit mostly duplicates the wlr_log functions, although with a sway_* prefix. (This is very similar to PR #2009.) However, the logging function no longer needs to be replaceable, so sway_log_init's second argument is used to set the exit callback for sway_abort. wlr_log_init is still invoked in sway/main.c This commit makes it easier to remove the wlroots dependency for the helper programs swaymsg, swaybg, swaybar, and swaynag.
* Fix backup methods in get_socketpath for IPC clientLibravatar M Stoeckl2019-01-19
| | | | | | | | | | Previously, the success of `getline` was tested by checking if the buffer it allocates is nonempty and has a nonzero first byte. As `getline` does not explicitly zero out its memory buffer, this may fail (e.g., with AddressSanitizer). Instead, we check that at least one character was returned on standard output. Also, trailing newlines (if present) are now removed.
* Use static arrays where possible.Libravatar Connor E2019-01-16
|
* Remove usage of VLAs.Libravatar Connor E2019-01-16
|
* Remove readline.cLibravatar Ian Fan2019-01-01
| | | | | All occurrences of read_line have been replaced by getline. peek_line has been absorbed into detect_brace.
* prevent ub caused by misaligned stores/loadsLibravatar taiyu2018-09-02
|
* ipc-client: fix memory leaks in get_socketpathLibravatar Ian Fan2018-08-06
|
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* Fix gcc string truncation warningsLibravatar Dominique Martinet2018-04-13
|
* Allow sway IPC clients to fall back to i3 socketLibravatar Drew DeVault2018-03-29
|
* sway: change all sway_log to wlr_logLibravatar Dominique Martinet2018-01-05
|
* UnGNUify the codebaseLibravatar Drew DeVault2017-03-10
|
* Handle malloc failure in ipc_recv_responseLibravatar Drew DeVault2016-12-15
|
* Reorganize includesLibravatar Drew DeVault2016-09-01
|
* Fix to make ipc client code FreeBSD compatible.Libravatar Johannes Lundberg2016-08-30
|
* common: fix potential buffer overflowLibravatar Eric Engestrom2016-05-01
|
* Abort when receiving 0 bytes in IPC callLibravatar Mikkel Oscar Lyderik2016-03-22
| | | | | | | | | | | When sway crashes a swaybar process is sometimes left behind running at 100% CPU. This was caused by the swaybar trying to retrieve an IPC response from the closed sway socket. This patch fixes the problem by aborting when the socket has been closed (recv return 0). Fix #528
* Add type to returned response.Libravatar Mikkel Oscar Lyderik2016-01-03
| | | | | | | Makes `ipc_recv_response` return a struct with size, type and payload rather than just the payload string. This is useful if the type has to be checked on the client.
* Subscribe to workspace change events and redrawLibravatar Drew DeVault2015-12-13
|
* Fix incorrect #include on ipc-client.cLibravatar Drew DeVault2015-11-28
|
* Add command line to swaygrabLibravatar Drew DeVault2015-11-27
| | | | | Also modifies IPC client so that we can work with persistent connections.
* Move IPC client into common, refactor IPCLibravatar Drew DeVault2015-11-27