]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-netlink: constify object pointers passed to getters
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 24 Oct 2019 09:40:44 +0000 (11:40 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 24 Oct 2019 09:48:08 +0000 (11:48 +0200)
commitde157fe2a76024ce513d646ca76a661d4b0588b2
tree96b41958a2eb128725ed04c6b730fd7565413529
parent730b76bd2cd5f0866baa738ae283e3b62544a28f
sd-netlink: constify object pointers passed to getters

sd-netlink is not public yet, so we can change the interface.

I did not touch interfaces of functions like sd_netlink_wait() and
sd_rtnl_message_new_link() which do not modify the object that is passed in,
because in the future we might want to change the code to e.g. take a
reference to the parent object or otherwise require a non-const reference.
src/libsystemd/sd-netlink/generic-netlink.c
src/libsystemd/sd-netlink/generic-netlink.h
src/libsystemd/sd-netlink/netlink-message.c
src/libsystemd/sd-netlink/netlink-slot.c
src/libsystemd/sd-netlink/rtnl-message.c
src/libsystemd/sd-netlink/sd-netlink.c
src/systemd/sd-netlink.h