+++ /dev/null
-#ifndef _MLOOKUP_H_
-#define _MLOOKUP_H_
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <pthread.h>
-
-#define LOADFACTOR 0.5
-#define HASH_SIZE 100
-
-typedef struct mhashlistnode {
- unsigned int key;
- void *val; //this can be cast to another type or used to point to a larger structure
- struct mhashlistnode *next;
-} mhashlistnode_t;
-
-typedef struct mhashtable {
- mhashlistnode_t *table; // points to beginning of hash table
- unsigned int size;
- unsigned int numelements;
- float loadfactor;
- pthread_mutex_t locktable;
-} mhashtable_t;
-
-unsigned int mhashCreate(unsigned int size, float loadfactor);
-unsigned int mhashFunction(unsigned int key);
-unsigned mhashInsert(unsigned int key, void *val);
-void *mhashSearch(unsigned int key); //returns val, NULL if not found
-unsigned int mhashRemove(unsigned int key); //returns -1 if not found
-unsigned int mhashResize(unsigned int newsize);
-unsigned int *mhashGetKeys(unsigned int *numKeys);
-void mhashPrint();
-
-#endif
-