Systemd/src/login
Djalal Harouni 495cb9bbeb loginctl: improve print_{session|user|seat}_status_info() functions
1) Instead of checking if we need to print a new line on each iteration,
pass the "new_line" as a pointer to those functions, so they can use
it to check if a new line is needed. This makes the code more consistent
as it is done in other places: machinectl, systemctl...

2) Move the error messages from show_{session|user|seat}() to their
appropriate print_{session|user|seat}_status_info() functions, this will
prevent from logging an error message twice in case show_properties()
fails and it will improve code readability.

3) Also do not ignore error codes on these functions.
2013-12-18 23:58:24 -05:00
..
.gitignore login: properly detect MIMO USB displays 2012-05-31 01:20:37 +02:00
70-power-switch.rules login: Use the GOTO properly in udev rule 2012-05-30 18:34:28 +02:00
70-uaccess.rules uaccess: Add new DRM render nodes 2013-11-12 18:11:43 +01:00
71-seat.rules.in Move udevadm to rootbindir 2013-03-11 07:18:33 +01:00
73-seat-late.rules.in relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
inhibit.c bus: introduce concept of a default bus for each thread and make use of it everywhere 2013-11-12 00:12:43 +01:00
libsystemd-login.pc.in relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
libsystemd-login.sym sd-login: add a public accessor for the VT number 2013-09-11 19:08:20 +02:00
login-shared.c login: fix login_is_valid test 2013-09-16 11:10:55 -05:00
login-shared.h login: fix login_is_valid test 2013-09-16 11:10:55 -05:00
loginctl.c loginctl: improve print_{session|user|seat}_status_info() functions 2013-12-18 23:58:24 -05:00
logind-acl.c core,logind,networkd: check for udev device initialization via enumeration matches 2013-12-18 18:21:28 +01:00
logind-acl.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
logind-action.c logind: log which process is delaying suspend and not closing locks 2013-11-27 02:39:19 +01:00
logind-action.h conf-parser: distinguish between multiple sections with the same name 2013-11-25 19:35:44 +01:00
logind-button.c event: be more conservative when returning errors from event handler callbacks 2013-12-13 04:06:43 +01:00
logind-button.h use #pragma once instead of foo*foo define guards 2013-11-18 20:28:54 -05:00
logind-core.c logind: make VT numbers unsigned 2013-11-28 17:38:16 +01:00
logind-dbus.c core,logind: libudev usage modernizations 2013-12-18 18:21:28 +01:00
logind-device.c Remove dead code and unexport some calls 2013-11-08 18:12:45 +01:00
logind-device.h Remove dead code and unexport some calls 2013-11-08 18:12:45 +01:00
logind-gperf.gperf logind: port over to use scopes+slices for all cgroup stuff 2013-07-02 01:48:55 +02:00
logind-inhibit.c __thread --> thread_local for C11 compat 2013-12-17 21:45:43 +01:00
logind-inhibit.h logind: log which process is delaying suspend and not closing locks 2013-11-27 02:39:19 +01:00
logind-seat-dbus.c bus: introduce "trusted" bus concept and encode access control in object vtables 2013-12-10 16:52:49 +00:00
logind-seat.c Get rid of our reimplementation of basename 2013-12-06 21:29:55 -05:00
logind-seat.h logind: make VT numbers unsigned 2013-11-28 17:38:16 +01:00
logind-session-dbus.c bus: introduce "trusted" bus concept and encode access control in object vtables 2013-12-10 16:52:49 +00:00
logind-session-device.c logind: ignore failing close() on session-devices 2013-11-28 15:16:49 +01:00
logind-session-device.h logind: remove fbdev session-device support 2013-10-01 18:08:54 +02:00
logind-session.c Get rid of our reimplementation of basename 2013-12-06 21:29:55 -05:00
logind-session.h logind: remove unused session->closing field 2013-11-28 17:41:44 +01:00
logind-user-dbus.c bus: introduce "trusted" bus concept and encode access control in object vtables 2013-12-10 16:52:49 +00:00
logind-user.c login: Don't stop a running user manager from garbage-collecting the user. 2013-12-18 10:57:13 +01:00
logind-user.h bus: also add error parameter to object find and enumerator callbacks 2013-11-22 01:42:15 +01:00
logind.c core,logind,networkd: check for udev device initialization via enumeration matches 2013-12-18 18:21:28 +01:00
logind.conf logind: port over to use scopes+slices for all cgroup stuff 2013-07-02 01:48:55 +02:00
logind.h logind: make VT numbers unsigned 2013-11-28 17:38:16 +01:00
Makefile logind: move logind into its own subdirectory 2011-12-31 03:16:08 +01:00
multi-seat-x.c multi-seat-x: drop a lot of unnecessary code 2012-09-21 17:03:40 +02:00
org.freedesktop.login1.conf bus: introduce "trusted" bus concept and encode access control in object vtables 2013-12-10 16:52:49 +00:00
org.freedesktop.login1.policy.in logind: if a user is sitting in front of the computer and can shutdown the machine anyway he should also be able to reboot it 2013-09-26 20:31:37 +02:00
org.freedesktop.login1.service relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
pam-module.c logind: make VT numbers unsigned 2013-11-28 17:38:16 +01:00
sd-login.c macro: log assertion at debug level in assert_return() 2013-12-10 17:01:10 +00:00
sysfs-show.c loginctl: when showing device tree of seats with no devices show something useful 2013-12-18 18:21:28 +01:00
systemd-user Add pam configuration to allow user sessions to work out of the box 2013-09-11 15:35:06 -04:00
test-inhibit.c login: port test-inhibit to libsystemd-bus 2013-11-05 21:34:42 +01:00
test-login-shared.c Add more tests and fix capability logging 2013-09-19 16:22:59 -05:00
test-login-tables.c tests: add tests for string lookup tables 2013-07-05 01:36:16 -04:00
test-login.c Make test-login and test-sleep output debugging 2013-09-17 16:44:38 -04:00
user-sessions.c user-sessions: modernizations 2013-11-05 01:13:05 +01:00