X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fhmap.h;h=d56749996e7e3147558ab3394061ff6f57051bf2;hb=92467099ee05b930b060d34d05b81bb1322e6fbf;hp=2f4a302fa4180eaf7f214ff88204abf2299cec59;hpb=c69ee87c10818267f991236201150b1fa51ae519;p=openvswitch diff --git a/lib/hmap.h b/lib/hmap.h index 2f4a302f..d5674999 100644 --- a/lib/hmap.h +++ b/lib/hmap.h @@ -89,6 +89,8 @@ void hmap_node_moved(struct hmap *, struct hmap_node *, struct hmap_node *); static inline void hmap_replace(struct hmap *, const struct hmap_node *old, struct hmap_node *new); +struct hmap_node *hmap_random_node(const struct hmap *); + /* Search. * * HMAP_FOR_EACH_WITH_HASH iterates NODE over all of the nodes in HMAP that