network: route: expose route_hash_ops
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user