]> Git Repo - qemu.git/blobdiff - include/glib-compat.h
migration: Make compression_threads use save/load_setup/cleanup()
[qemu.git] / include / glib-compat.h
index 863c8cf73d0d0ad96cd40edd837fbe4b6eda48e8..fcffcd3f0774260d519bb97d95435ac3d385f05f 100644 (file)
@@ -217,6 +217,12 @@ static inline void g_hash_table_add(GHashTable *hash_table, gpointer key)
 {
     g_hash_table_replace(hash_table, key, key);
 }
+
+static inline gboolean g_hash_table_contains(GHashTable *hash_table,
+                                             gpointer key)
+{
+    return g_hash_table_lookup_extended(hash_table, key, NULL, NULL);
+}
 #endif
 
 #ifndef g_assert_true
This page took 0.022413 seconds and 4 git commands to generate.