dpif: Hide the contents of struct dpif.
[openvswitch] / lib / shash.c
index 7f69084362fe504572af3db5276b1f75efacbd38..93163727655a02ba633883015d755a4780b99d1d 100644 (file)
@@ -97,3 +97,11 @@ shash_find_data(const struct shash *sh, const char *name)
     struct shash_node *node = shash_find(sh, name);
     return node ? node->data : NULL;
 }
+
+struct shash_node *
+shash_first(const struct shash *shash)
+{
+    struct hmap_node *node = hmap_first(&shash->map);
+    return node ? CONTAINER_OF(node, struct shash_node, node) : NULL;
+}
+