]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: add helper to read a unsigned int attribute
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 Aug 2022 14:24:02 +0000 (16:24 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 Aug 2022 15:04:31 +0000 (17:04 +0200)
commit48a511cf92cbf202e9ef6064a9b5ebd1f497e1a8
tree9cff51950b9c1a8ef0a72f6490b31abf7decb516
parent406fbeca32d9abacdcc28b0cc00d2beefcc4feb2
sd-device: add helper to read a unsigned int attribute

There are dozens of places where this could be used, but I don't
want to do the conversion now because it's quite a bit of work.
I think we could export this function later on, because reading
numerical attributes is so common. But for now, I'm just adding the
helper to use it one place.
src/libsystemd/sd-device/device-private.h
src/libsystemd/sd-device/sd-device.c
src/libsystemd/sd-device/test-sd-device.c