]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: introduce new SD_BUS_VTABLE_ABSOLUTE_OFFSET vtable flag
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Apr 2020 15:04:08 +0000 (17:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 May 2020 14:57:44 +0000 (16:57 +0200)
commit491ce161037a11b52abec74eeb6c8cfa512ef1fb
tree689b670678f8bf274b8d1143080c09532eb67bb1
parent61c12865f5653e34521d3bbf7c667cd4ea5f7385
sd-bus: introduce new SD_BUS_VTABLE_ABSOLUTE_OFFSET vtable flag

When set, the offset specified for the vtable entry is passed to the
handler as-is, and is not added to the userdata pointer. This is useful
in case methods/properties are mixed on the same vtable, that expect to
operate relative to some object in memory and that expect pointers to
absolute memory, or that just want a number passed.
src/libsystemd/sd-bus/bus-objects.c
src/systemd/sd-bus-vtable.h