Inspired by https://lists.freedesktop.org/archives/systemd-devel/2020-March/044169.html.
<constant>SD_PATH_BINFMT_DIR</constant>,
<constant>SD_PATH_MODULES_LOAD_DIR</constant>,
<constant>SD_PATH_CATALOG_DIR</constant>,
+
+ <constant>SD_PATH_SYSTEMD_NETWORK_PATH</constant>,
};</funcsynopsisinfo>
<funcprototype>
char **env_generator_binary_paths(bool is_system);
#define NETWORK_DIRS ((const char* const*) CONF_PATHS_STRV("systemd/network"))
+#define NETWORK_DIRS_NULSTR CONF_PATHS_NULSTR("systemd/network")
*list = t;
return 0;
- }}
+ }
+
+ case SD_PATH_SYSTEMD_NETWORK_PATH:
+ return strv_from_nulstr(list, NETWORK_DIRS_NULSTR);
+
+ }
return -EOPNOTSUPP;
}
[SD_PATH_BINFMT_DIR] = "binfmt-dir",
[SD_PATH_MODULES_LOAD_DIR] = "modules-load-dir",
[SD_PATH_CATALOG_DIR] = "catalog-dir",
+
+ [SD_PATH_SYSTEMD_NETWORK_PATH] = "systemd-network-path",
};
static int list_homes(void) {
SD_PATH_MODULES_LOAD_DIR,
SD_PATH_CATALOG_DIR,
+ /* systemd-networkd search paths */
+ SD_PATH_SYSTEMD_NETWORK_PATH,
+
_SD_PATH_MAX,
};