summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-network
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-10-04 12:56:34 +0200
committerMike Yuan <me@yhndnzj.com>2024-10-06 19:27:11 +0200
commitcd7d732dc54ed3bcd2dd22273473bc410f501226 (patch)
tree954724f4e9719658c17c02b67ebdec17d1e60428 /src/libsystemd/sd-network
parentunit-file: make unit_type_may_{alias_template} static inline (diff)
downloadsystemd-cd7d732dc54ed3bcd2dd22273473bc410f501226.tar.xz
systemd-cd7d732dc54ed3bcd2dd22273473bc410f501226.zip
path-lookup: move NETWORK_DIRS to network-util.h
Diffstat (limited to 'src/libsystemd/sd-network')
-rw-r--r--src/libsystemd/sd-network/network-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd/sd-network/network-util.h b/src/libsystemd/sd-network/network-util.h
index 6fc6015902..14c6f6819d 100644
--- a/src/libsystemd/sd-network/network-util.h
+++ b/src/libsystemd/sd-network/network-util.h
@@ -4,8 +4,12 @@
#include <errno.h>
#include <stdbool.h>
+#include "constants.h"
#include "macro.h"
+#define NETWORK_DIRS ((const char* const*) CONF_PATHS_STRV("systemd/network"))
+#define NETWORK_DIRS_NULSTR CONF_PATHS_NULSTR("systemd/network")
+
bool network_is_online(void);
typedef enum AddressFamily {