[Mesa-dev] [PATCH 27/40] util: make string_to_uint_map hash table public

Timothy Arceri tarceri at itsqueeze.com
Tue Feb 7 03:42:31 UTC 2017


From: Timothy Arceri <timothy.arceri at collabora.com>

This will allow us to make use of the hash_table_call_foreach()
function from outside the object.
---
 src/util/string_to_uint_map.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/string_to_uint_map.h b/src/util/string_to_uint_map.h
index e0533ec..18f5166 100644
--- a/src/util/string_to_uint_map.h
+++ b/src/util/string_to_uint_map.h
@@ -150,6 +150,8 @@ public:
          free(dup_key);
    }
 
+   struct hash_table *ht;
+
 private:
    static void delete_key(const void *key, void *data, void *closure)
    {
@@ -169,8 +171,6 @@ private:
 
       wrapper->callback((const char *) key, value, wrapper->closure);
    }
-
-   struct hash_table *ht;
 };
 
 #endif /* __cplusplus */
-- 
2.9.3



More information about the mesa-dev mailing list