]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/sd_bus_message_dump.xml
Remove message->priority field
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 3 Apr 2020 16:17:18 +0000 (18:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Apr 2020 13:29:23 +0000 (15:29 +0200)
commitc3362c2f97115d7eecac556cf70034992c46221d
tree1e3258faf4cc37cf6b0c68dcfb18e7658e612d40
parent6635f57d3eeb16051b00ba331da3c8d4f7e578da
Remove message->priority field

A warning is emitted from sd_bus_message_{get,set}_priority. Those functions
are exposed by pystemd, so we have no easy way of checking if anything is
calling them.

Just making the functions always return without doing anything would be an
option, but then we could leave the caller with an undefined variable. So I
think it's better to make the functions emit a warnings and return priority=0
in the get operation.
man/sd_bus_message_dump.xml
src/busctl/busctl.c
src/libsystemd/sd-bus/bus-dump.c
src/libsystemd/sd-bus/bus-message.c
src/libsystemd/sd-bus/bus-message.h