[rygel] Provide hashing and equality check functions



commit 29bad49237e1b50be9cb8e8ef68116761cca1906
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue May 12 20:43:50 2009 +0300

    Provide hashing and equality check functions
    
    Provide hashing and equality check functions to HashMap of plugins.
---
 src/rygel/rygel-plugin-loader.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/rygel/rygel-plugin-loader.vala b/src/rygel/rygel-plugin-loader.vala
index 617ed09..db1ce97 100644
--- a/src/rygel/rygel-plugin-loader.vala
+++ b/src/rygel/rygel-plugin-loader.vala
@@ -40,7 +40,7 @@ public class Rygel.PluginLoader : Object {
     public signal void plugin_available (Plugin plugin);
 
     public PluginLoader () {
-        this.plugin_hash = new HashMap<string,Plugin> ();
+        this.plugin_hash = new HashMap<string,Plugin> (str_hash, str_equal);
     }
 
     // Plugin loading functions



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]