diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-04 15:16:46 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-06 19:44:43 +0200 |
commit | 833f3663a07a868a023579801afb08522e3ecf79 (patch) | |
tree | 83c9639472cec16fa4fcbcf1cd3638167849b1cc /src/network/networkd-util.h | |
parent | network: make several functions static (diff) | |
download | systemd-833f3663a07a868a023579801afb08522e3ecf79.tar.xz systemd-833f3663a07a868a023579801afb08522e3ecf79.zip |
network: introduce hashmap_find_free_section_line()
Diffstat (limited to 'src/network/networkd-util.h')
-rw-r--r-- | src/network/networkd-util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd-util.h b/src/network/networkd-util.h index 2b6541d57e..ce169fa731 100644 --- a/src/network/networkd-util.h +++ b/src/network/networkd-util.h @@ -5,7 +5,7 @@ #include "sd-netlink.h" #include "conf-parser.h" -#include "hash-funcs.h" +#include "hashmap.h" #include "log.h" #include "macro.h" #include "string-util.h" @@ -52,6 +52,7 @@ int network_config_section_new(const char *filename, unsigned line, NetworkConfi void network_config_section_free(NetworkConfigSection *network); DEFINE_TRIVIAL_CLEANUP_FUNC(NetworkConfigSection*, network_config_section_free); extern const struct hash_ops network_config_hash_ops; +unsigned hashmap_find_free_section_line(Hashmap *hashmap); static inline bool section_is_invalid(NetworkConfigSection *section) { /* If this returns false, then it does _not_ mean the section is valid. */ |