summary refs log tree commit diff
path: root/lib/hashtable.h
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-04 00:02:56 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-04 00:02:56 +0100
commit9034899b3e8158cb35d3d62a64082ce67c72d669 (patch)
tree44126a758f06f6cb7372138561be6e7c475b03fe /lib/hashtable.h
parentswitch compiler to zig (diff)
downloadc-hashtable-9034899b3e8158cb35d3d62a64082ce67c72d669.tar.gz
c-hashtable-9034899b3e8158cb35d3d62a64082ce67c72d669.tar.bz2
c-hashtable-9034899b3e8158cb35d3d62a64082ce67c72d669.zip
Call c from zig
Diffstat (limited to 'lib/hashtable.h')
-rw-r--r--lib/hashtable.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/hashtable.h b/lib/hashtable.h
new file mode 100644
index 0000000..5bdcb08
--- /dev/null
+++ b/lib/hashtable.h
@@ -0,0 +1,16 @@
+#ifndef __HASHTABLE_H__
+#define __HASHTABLE_H__
+
+void typedef *HashTable;
+
+HashTable hashtable_init();
+
+int hashtable_deinit(HashTable*);
+
+int hashtable_put(HashTable, char*, void*);
+
+int hashtable_remove(HashTable, char*);
+
+void* hashtable_get(HashTable, char*);
+
+#endif