]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/tty-ask-password-agent/tty-ask-password-agent.c
shared/utmp-wtmp: add parameter for origin tty and callback userdata
authorDaniel Mack <daniel@zonque.org>
Fri, 24 Apr 2015 13:31:29 +0000 (15:31 +0200)
committerDaniel Mack <daniel@zonque.org>
Fri, 24 Apr 2015 15:48:12 +0000 (17:48 +0200)
commit99f710dde855f7ecb699ddac6ad77923c1f6bc85
tree3fb5bb95bd9eeb0ad1839285b08ae0665cf76e50
parent8aaa023ae78f3cb28db3edd87f96b21486810b91
shared/utmp-wtmp: add parameter for origin tty and callback userdata

Instead of looking up the tty from STDIN, let utmp_wall() take an argument
to specify an origin tty for the wall message. Only if that argument is
NULL do the STDIN lookup.

Also add an void *userdata argument that is handed back to the callback
function.
src/journal/journald-wall.c
src/shared/utmp-wtmp.c
src/shared/utmp-wtmp.h
src/shutdownd/shutdownd.c
src/systemctl/systemctl.c
src/tty-ask-password-agent/tty-ask-password-agent.c