]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/staging/tidspbridge/include/dspbridge/gh.h
Staging: tidspbridge: Use hashtable implementation
[karo-tx-linux.git] / drivers / staging / tidspbridge / include / dspbridge / gh.h
index da85079dbfb679201f9a987e1b262ca6acdc7f6a..e4303b4bf5fde6d1caf796420f2f4f6b27d41224 100644 (file)
 #define GH_
 #include <dspbridge/host_os.h>
 
-extern struct gh_t_hash_tab *gh_create(u16 max_bucket, u16 val_size,
-                                      u16(*hash) (void *, u16),
-                                      bool(*match) (void *, void *),
-                                      void (*delete) (void *));
+extern struct gh_t_hash_tab *gh_create(u32 val_size,
+       u32 (*hash)(const void *), bool (*match)(const void *,
+       const void *), void (*delete) (void *));
 extern void gh_delete(struct gh_t_hash_tab *hash_tab);
-extern void *gh_find(struct gh_t_hash_tab *hash_tab, void *key);
-extern void *gh_insert(struct gh_t_hash_tab *hash_tab, void *key, void *value);
+extern void *gh_find(struct gh_t_hash_tab *hash_tab, const void *key);
+extern void *gh_insert(struct gh_t_hash_tab *hash_tab, const void *key,
+                      const void *value);
 #ifdef CONFIG_TIDSPBRIDGE_BACKTRACE
 void gh_iterate(struct gh_t_hash_tab *hash_tab,
        void (*callback)(void *, void *), void *user_data);