/* Prototypes for object header */
unsigned int getNewOID(void);
unsigned int objSize(objheader_t *object);
-void objInsert(objheader_t *object); //copies object to main object store
/* end object header */
/* Prototypes for object store */
/* end transactions */
#endif
-
} lhashtable_t;
/* Prototypes for hash*/
-lhashtable_t *lhashCreate(unsigned int size, float loadfactor);
-unsigned int lhashFunction(lhashtable_t *table, unsigned int oid);
-void lhashInsert(lhashtable_t *table, unsigned int oid, unsigned int mid);
-int lhashSearch(lhashtable_t *table, unsigned int oid); //returns val, NULL if not found
-int lhashRemove(lhashtable_t *table, unsigned int oid); //returns -1 if not found
-void lhashResize(lhashtable_t *table, unsigned int newsize);
+lhashtable_t lhashCreate(unsigned int size, float loadfactor);
+unsigned int lhashFunction(lhashtable_t table, unsigned int oid);
+void lhashInsert(lhashtable_t table, unsigned int oid, unsigned int mid);
+int lhashSearch(lhashtable_t table, unsigned int oid); //returns oid, -1 if not found
+int lhashRemove(lhashtable_t table, unsigned int oid); //returns -1 if not found
+void lhashResize(lhashtable_t table, unsigned int newsize);
/* end hash */
#endif
} mhashtable_t;
/* Prototypes for hash*/
-mhashtable_t *mhashCreate(unsigned int size, float loadfactor);
-unsigned int mhashFunction(mhashtable_t *table, unsigned int key);
-void mhashInsert(mhashtable_t *table, unsigned int key, void *val);
-void *mhashSearch(mhashtable_t *table, unsigned int key); //returns val, NULL if not found
-int mhashRemove(mhashtable_t *table, unsigned int key); //returns -1 if not found
-void mhashResize(mhashtable_t *table, unsigned int newsize);
+mhashtable_t mhashCreate(unsigned int size, float loadfactor);
+unsigned int mhashFunction(mhashtable_t table, unsigned int key);
+void mhashInsert(mhashtable_t table, unsigned int key, void *val);
+void *mhashSearch(mhashtable_t table, unsigned int key); //returns val, NULL if not found
+int mhashRemove(mhashtable_t table, unsigned int key); //returns -1 if not found
+void mhashResize(mhashtable_t table, unsigned int newsize);
/* end hash */
#endif