Blame SOURCES/0064-lib-add-wrapper-for-g_hash_table_size.patch

0c9110
From d02894ce9d1a88f103203684fc6d9f7ab87ceafa Mon Sep 17 00:00:00 2001
0c9110
From: Jakub Filak <jfilak@redhat.com>
0c9110
Date: Thu, 11 Sep 2014 12:30:43 +0200
0c9110
Subject: [LIBREPORT PATCH 64/93] lib: add wrapper for g_hash_table_size()
0c9110
0c9110
Related to rhbz#1140224
0c9110
0c9110
Signed-off-by: Jakub Filak <jfilak@redhat.com>
0c9110
---
0c9110
 src/include/libreport_types.h | 9 +++++++++
0c9110
 1 file changed, 9 insertions(+)
0c9110
0c9110
diff --git a/src/include/libreport_types.h b/src/include/libreport_types.h
0c9110
index d61c2e7..41ed5d7 100644
0c9110
--- a/src/include/libreport_types.h
0c9110
+++ b/src/include/libreport_types.h
0c9110
@@ -33,6 +33,15 @@ typedef GHashTable map_string_t;
0c9110
 map_string_t *new_map_string(void);
0c9110
 #define free_map_string libreport_free_map_string
0c9110
 void free_map_string(map_string_t *ms);
0c9110
+#define size_map_string libreport_size_map_string
0c9110
+static inline
0c9110
+unsigned size_map_string(map_string_t *ms)
0c9110
+{
0c9110
+    if (ms == NULL)
0c9110
+        return 0;
0c9110
+
0c9110
+    return g_hash_table_size(ms);
0c9110
+}
0c9110
 #define insert_map_string_item libreport_insert_map_string_item
0c9110
 static inline
0c9110
 void insert_map_string(map_string_t *ms, char *key, char *value)
0c9110
-- 
0c9110
1.8.3.1
0c9110