netlink: move local-addresses.[ch] to src/shared

This code is not part of the public API of sd-netlink, nor used by it
internally and hence should not be in the sd-netlink directory.

Also, move the test case for it to src/test/.
This commit is contained in:
Lennart Poettering 2019-07-23 14:22:06 +02:00
parent e5c8524447
commit 733cbd00b0
7 changed files with 7 additions and 6 deletions

View File

@ -1540,6 +1540,7 @@ foreach tuple : [['myhostname', 'ENABLE_NSS_MYHOSTNAME'],
'-shared',
'-Wl,--version-script=' + version_script_arg],
link_with : [libsystemd_static,
libshared_static,
libbasic],
dependencies : [threads,
librt],

View File

@ -71,8 +71,6 @@ libsystemd_sources = files('''
sd-hwdb/hwdb-util.h
sd-hwdb/sd-hwdb.c
sd-netlink/generic-netlink.c
sd-netlink/local-addresses.c
sd-netlink/local-addresses.h
sd-netlink/netlink-internal.h
sd-netlink/netlink-message.c
sd-netlink/netlink-slot.c

View File

@ -109,6 +109,8 @@ shared_sources = files('''
linux/bpf_insn.h
linux/dm-ioctl.h
linux/ethtool.h
local-addresses.c
local-addresses.h
lockfile-util.c
lockfile-util.h
log-link.h

View File

@ -754,6 +754,10 @@ tests += [
[['src/test/test-sd-hwdb.c'],
[],
[]],
[['src/test/test-local-addresses.c'],
[],
[]],
]
############################################################
@ -964,10 +968,6 @@ tests += [
[],
[]],
[['src/libsystemd/sd-netlink/test-local-addresses.c'],
[],
[]],
[['src/libsystemd/sd-resolve/test-resolve.c'],
[],
[threads],