sd-bus: rework ELF error mapping table magic

System Internals / systemd - Lennart Poettering [poettering.net] - 8 December 2014 07:55 UTC

The ELF magic cannot work for consumers of our shard library, since they are in a different module. Hence make all the ELF magic private, and instead introduce a public function to register additional static mapping table.

5f86c1f sd-bus: rework ELF error mapping table magic
src/libsystemd/sd-bus/bus-error.c | 155 +++++++++++++++++++++-----------
src/libsystemd/sd-bus/bus-error.h | 37 ++++++--
src/libsystemd/sd-bus/test-bus-error.c | 66 ++++++++++++--
src/shared/bus-errors.c | 85 +++++++++---------
src/shared/bus-errors.h | 3 +-
src/shared/macro.h | 8 +-
src/systemd/sd-bus.h | 41 ++++-----
src/timedate/timedated.c | 6 +-
8 files changed, 265 insertions(+), 136 deletions(-)

Upstream: github.com


  • Share