aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-08-31client: Do not leak idle clients on exitKenny Levinsen
2020-08-31poller: Remember to remove sources from listKenny Levinsen
2020-08-31server: Remember to remove seat from listKenny Levinsen
2020-08-31test: Add test_run and test_assert macrosKenny Levinsen
test_run and test_assert replaces regular assert with better logging which include the currently running test name. The tests can now also be built without DEBUG.
2020-08-31Remove unused list implementationKenny Levinsen
2020-08-31poller: Convert to linked_listKenny Levinsen
2020-08-31linked_list: linked_list_take should concat listsKenny Levinsen
2020-08-31server: Convert seat list to linked_listKenny Levinsen
2020-08-31poller: Make event sources opaqueKenny Levinsen
2020-08-30seatd: Explicit cast -1 to unsigned gid_tKenny Levinsen
Silences a warning on some architectures.
2020-08-30seatd: Slight error handling cleanupKenny Levinsen
2020-08-30seatd: Remove unused device_closed msg bodyKenny Levinsen
2020-08-30linked_list: Implement linked_list_takeKenny Levinsen
2020-08-29seat: Destroy all clients on teardownKenny Levinsen
2020-08-29protocol: Add note to remove device_closed msgKenny Levinsen
The content of this message is unused, so it should be converted to a content-less message.
2020-08-29libseat: Check euid before using builtinKenny Levinsen
2020-08-29libseat: Remove pointless checkKenny Levinsen
2020-08-29libseat: Keep track of error stateKenny Levinsen
Store if an error has occurred and return -1 with ENOTCONN from all future calls, avoiding attempts to use a broken connection.
2020-08-29libseat: Improve logging with seatd conn helpersKenny Levinsen
Add helpers around connection access to have all logging centralized and reduce code duplication. Improve existing helpers to further reduce code duplication. The seatd backend should have much better logging after this.
2020-08-29libseat: Assert that listener is non-NULLKenny Levinsen
2020-08-28Bump version to 0.2.0Kenny Levinsen
2020-08-28logind: Merge PropertiesChanged handlersKenny Levinsen
2020-08-28libseat: Expand logging in all backendsKenny Levinsen
2020-08-28libseat: Only print backend attempts for matchesKenny Levinsen
2020-08-28terminal: Explain FreeBSD current_vt behaviorKenny Levinsen
2020-08-28terminal: Construct TTY paths correctly on FreeBSDKenny Levinsen
FreeBSD TTY paths are contructed in the kernel using the %r formatter, which in this case ends up being a base 32 encoding. The base 32 implementation is taken more or less directly from wlroots commit fc6c0ca12e94.
2020-08-28terminal: FreeBSD VT num is 1 higher than tty numKenny Levinsen
This was causing all VT and TTY changes to be applied to the wrong TTY.
2020-08-28terminal: Set K_RAW and term raw mode on FreeBSDKenny Levinsen
Taken from X11, weston and consolekit2 ports for FreeBSD. Setting just K_CODE as done before makes input seemingly have no ill effects, but it is still buffered and possibly send to the terminal after application exit if stdin is never drained. Setting raw mode appears to be needed to solve that issue. A K_OFF-like VT keyboard setting like Linux has would seem more appropriate, but that is not currently available to us on FreeBSD.
2020-08-28simpletest: Set log level to debugKenny Levinsen
2020-08-28Introduce libseat_set_log_levelSimon Ser
The default level is SILENT. log_init no longer takes an initial log level (so that calls to libseat_set_log_level prior to log_init work correctly).
2020-08-28Nuke LIBSEAT_LOGLEVELSimon Ser
This will be replaced with a libseat API to set the log level.
2020-08-28Introduce libseat_set_log_handlerSimon Ser
This allows libseat users to register a custom logging function.
2020-08-28Rename enum log_level to libseat_log_levelSimon Ser
This is preparatory work for exposing a public function to set libseat's log handler.
2020-08-24libseat: Remove useless logind fallbacksKenny Levinsen
The logind code is based on the wlroots implementation, which in turn contained copy-paste code from Mutter that serves no purpose here.
2020-08-23logind: Set session type from envKenny Levinsen
2020-08-23logind: Remove session type checkKenny Levinsen
2020-08-23logind: Remove useless checkKenny Levinsen
2020-08-22meson: Set license to MITKenny Levinsen
2020-08-08seatd: Use path-based chmod/chownKenny Levinsen
The fd variants do not seem to work for sockets
2020-08-08ci: Install scdoc for alpine and archlinuxKenny Levinsen
2020-08-08man: Add simple seatd(1) pageKenny Levinsen
2020-08-08build: check for libelogind before libsystemdIsaac Freund
elogind provides a libsystemd wrapper which is packaged by some distros. For whatever reason using this wrapper instead of libelogind directly causes compiler warnings to pop up. Checking for libelogind first ensures that this wrapper is not used.
2020-08-07contrib: Add example systemd serviceKenny Levinsen
2020-08-07seatd: Add command-line argumentsKenny Levinsen
2020-08-06ci: Run unittests on all platformsKenny Levinsen
2020-08-06linked_list: Add unittestKenny Levinsen
2020-08-06logind: Allow SwitchTo for all seatsKenny Levinsen
2020-08-06logind: close_device always returned errorKenny Levinsen
Error handling was broken in close_device, always returning -1. Use the return value, and add a few errno assignments while we're at it.
2020-08-05libseat: Fix doc typoKenny Levinsen
2020-08-05libseat: Rename libseat_impl to seat_implKenny Levinsen