]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bus-util.c
bus-util: rename bus_open_transport() to bus_connect_transport()
authorLennart Poettering <lennart@poettering.net>
Thu, 24 Sep 2015 11:30:10 +0000 (13:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2015 19:55:52 +0000 (21:55 +0200)
commit266f3e269d173f104aa2a5e3ceac9b6979ea5039
treed7587d5adad38a8325ea1fb3e4131492caa1392f
parent65359589c2c22db881fd9c14e989941c19eff9a1
bus-util: rename bus_open_transport() to bus_connect_transport()

In sd-bus, the sd_bus_open_xyz() family of calls allocates a new bus,
while sd_bus_default_xyz() family tries to reuse the thread's default
bus. bus_open_transport() sometimes internally uses the former,
sometimes the latter family, but suggests it only calls the former via
its name. Hence, let's avoid this confusion, and generically rename the
call to bus_connect_transport().

Similar for all related calls.

And while we are at it, also change cgls + cgtop to do direct systemd
connections where possible, since all they do is talk to systemd itself.
17 files changed:
src/analyze/analyze.c
src/cgls/cgls.c
src/cgroups-agent/cgroups-agent.c
src/cgtop/cgtop.c
src/fsck/fsck.c
src/hostname/hostnamectl.c
src/initctl/initctl.c
src/journal/journalctl.c
src/locale/localectl.c
src/login/loginctl.c
src/machine/machinectl.c
src/run/run.c
src/shared/bus-util.c
src/shared/bus-util.h
src/systemctl/systemctl.c
src/timedate/timedatectl.c
src/update-utmp/update-utmp.c