From: Tianyu Yuan <[email protected]>

Expose id_node structure for external use. F.e., the
hash_node could be directly accessed by this structure.

Signed-off-by: Tianyu Yuan <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
---
 lib/id-pool.c | 7 -------
 lib/id-pool.h | 7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/lib/id-pool.c b/lib/id-pool.c
index 69910ad08e83..97b7185ed538 100644
--- a/lib/id-pool.c
+++ b/lib/id-pool.c
@@ -17,13 +17,6 @@
 
 #include <config.h>
 #include "id-pool.h"
-#include "openvswitch/hmap.h"
-#include "hash.h"
-
-struct id_node {
-    struct hmap_node node;
-    uint32_t id;
-};
 
 struct id_pool {
     struct hmap map;
diff --git a/lib/id-pool.h b/lib/id-pool.h
index 8721f87934bb..f71cc570f104 100644
--- a/lib/id-pool.h
+++ b/lib/id-pool.h
@@ -21,6 +21,13 @@
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
+#include "openvswitch/hmap.h"
+#include "hash.h"
+
+struct id_node {
+    struct hmap_node node;
+    uint32_t id;
+};
 
 struct id_pool;
 
-- 
2.30.2

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to