From 266ab52b3a741a58fb17c48b0f7939d7c5d266de Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:19 +0200 Subject: Imported Upstream version 0.6 --- Hashtable.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Hashtable.h') diff --git a/Hashtable.h b/Hashtable.h index e031cbe..2f52831 100644 --- a/Hashtable.h +++ b/Hashtable.h @@ -17,8 +17,8 @@ in the source distribution for its full text. typedef struct Hashtable_ Hashtable; -typedef void(*HashtablePairFunction)(int, void*); -typedef int(*HashtableHashAlgorithm)(Hashtable*, int); +typedef void(*Hashtable_PairFunction)(int, void*, void*); +typedef int(*Hashtable_HashAlgorithm)(Hashtable*, int); typedef struct HashtableItem { int key; @@ -30,7 +30,7 @@ struct Hashtable_ { int size; HashtableItem** buckets; int items; - HashtableHashAlgorithm hashAlgorithm; + Hashtable_HashAlgorithm hashAlgorithm; bool owner; }; @@ -50,6 +50,6 @@ void* Hashtable_remove(Hashtable* this, int key); inline void* Hashtable_get(Hashtable* this, int key); -void Hashtable_foreach(Hashtable* this, HashtablePairFunction f); +void Hashtable_foreach(Hashtable* this, Hashtable_PairFunction f, void* userData); #endif -- cgit v1.2.3