udev: move naming-scheme.[ch] into src/shared/

That way we can use it from non-udev code too, for example nspawn.
This commit is contained in:
Lennart Poettering 2020-01-02 19:33:29 +01:00
parent 6bbeef2042
commit b355d0c9af
6 changed files with 6 additions and 5 deletions

View File

@ -130,6 +130,8 @@ shared_sources = files('''
module-util.h
mount-util.c
mount-util.h
netif-naming-scheme.c
netif-naming-scheme.h
nscd-flush.c
nscd-flush.h
nsflags.c

View File

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#include "alloc-util.h"
#include "naming-scheme.h"
#include "netif-naming-scheme.h"
#include "proc-cmdline.h"
#include "string-util.h"

View File

@ -40,8 +40,6 @@ libudev_core_sources = '''
udev-builtin-usb_id.c
net/link-config.c
net/link-config.h
net/naming-scheme.c
net/naming-scheme.h
'''.split()
if conf.get('HAVE_KMOD') == 1

View File

@ -16,7 +16,7 @@
#include "link-config.h"
#include "log.h"
#include "memory-util.h"
#include "naming-scheme.h"
#include "netif-naming-scheme.h"
#include "netlink-util.h"
#include "network-internal.h"
#include "parse-util.h"

View File

@ -27,7 +27,7 @@
#include "fd-util.h"
#include "fileio.h"
#include "fs-util.h"
#include "naming-scheme.h"
#include "netif-naming-scheme.h"
#include "parse-util.h"
#include "proc-cmdline.h"
#include "stdio-util.h"