]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-event: allow sd_event_source_is_enabled() to return false for NULL
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 14 Jun 2022 12:37:21 +0000 (14:37 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 Jun 2022 08:35:27 +0000 (10:35 +0200)
commit71193c0b629c76ec511dd222d6b68a52c4df132d
treeb8104d1c11755d28c8bc421043877854042f433b
parent7d9337ed77b08ee691568172e7c074d2b5d8e15e
sd-event: allow sd_event_source_is_enabled() to return false for NULL

This is a natural use case, and instead of defining a wrapper to do this
for us, let's just make this part of the API. Calling with NULL was not
allowed, so this is not a breaking change to the interface.

(After sd_event_source_is_enabled was originally added, we introduced
sd_event_source_disable_unref() and other similar functions which accept
NULL. So not accepting NULL here is likely to confuse people. Let's just
make the API usable with minimal fuss.)
man/sd_event_source_set_enabled.xml
src/journal/managed-journal-file.c
src/libsystemd/sd-event/event-util.c
src/libsystemd/sd-event/event-util.h
src/libsystemd/sd-event/sd-event.c
src/network/netdev/wireguard.c