]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: route: expose route_hash_ops
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Nov 2021 07:35:46 +0000 (16:35 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 Nov 2021 18:56:00 +0000 (03:56 +0900)
src/network/networkd-route.c
src/network/networkd-route.h

index 6bda0833609636dc3a0e8fcf8e41df2ef348cb85..28ef058651ba23edd83861524e23cdab5e81959c 100644 (file)
@@ -242,7 +242,7 @@ int route_compare_func(const Route *a, const Route *b) {
         }
 }
 
-DEFINE_PRIVATE_HASH_OPS_WITH_KEY_DESTRUCTOR(
+DEFINE_HASH_OPS_WITH_KEY_DESTRUCTOR(
                 route_hash_ops,
                 Route,
                 route_hash_func,
index 6bc19fd7d88ee75bb48399ebf6a7882662cf27c9..a3194de1ae71930319101cff8a460051fcc60906 100644 (file)
@@ -70,6 +70,7 @@ typedef struct Route {
 
 void route_hash_func(const Route *route, struct siphash *state);
 int route_compare_func(const Route *a, const Route *b);
+extern const struct hash_ops route_hash_ops;
 
 int route_new(Route **ret);
 Route *route_free(Route *route);