]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/unit: unit_is_filtered() -> unit_passes_filter() and invert logic 34022/head
authorMike Yuan <me@yhndnzj.com>
Sat, 17 Aug 2024 11:18:31 +0000 (13:18 +0200)
committerMike Yuan <me@yhndnzj.com>
Sat, 17 Aug 2024 18:09:51 +0000 (20:09 +0200)
commit6e0f959360cef85b93e1893dc15b4b19e660c2f1
treea72b37471833b129994cd67937a47e5043ddd037
parent6c8ade30661f7d2d1b286c58050c4f9b1ed7b3e9
core/unit: unit_is_filtered() -> unit_passes_filter() and invert logic

Follow-up for 6d2984d21bf2a8f71d379ef6bc13a761bb2e2756

The current semantics of "filtered" in unit_is_filtered()
are actually the contrary of ListUnitsFiltered(). Let's
make things consistent, i.e. return true when the unit
shall be included.
src/basic/strv.h
src/core/dbus-manager.c
src/core/unit.c
src/core/unit.h