summaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
authorTrond Norbye <Trond.Norbye@sun.com>2009-03-02 10:15:34 +0100
committerTrond Norbye <Trond.Norbye@sun.com>2009-03-02 10:15:34 +0100
commit1a070652ba97045c73b5e0f5237d35ea017bb04b (patch)
treece5589db85e059b73613fcaa50f08dfb2773a4ba /hash.h
parentd2b97e6171e96bd9674d4f1536e2a41c91d8fd19 (diff)
downloadmemcached-1a070652ba97045c73b5e0f5237d35ea017bb04b.tar.gz
Refactor: moved the hash function from assoc.c to hash.c
Diffstat (limited to 'hash.h')
-rw-r--r--hash.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/hash.h b/hash.h
new file mode 100644
index 0000000..aa02c58
--- /dev/null
+++ b/hash.h
@@ -0,0 +1,15 @@
+#ifndef HASH_H
+#define HASH_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+uint32_t hash(const void *key, size_t length, const uint32_t initval);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* HASH_H */
+