aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2001-10-15 06:58:11 +0000
committerH. Peter Anvin <hpa@zytor.com>2001-10-15 06:58:11 +0000
commit17f1f38e6120119bdbcc4c2b2100671a2826939b (patch)
tree09bccdd413a9d51361433af3f8bf03606d7ca08e
parentff243205e626e8761c50d0eaa4b3cd66d2f1908f (diff)
downloadlpsm-17f1f38e6120119bdbcc4c2b2100671a2826939b.tar.gz
lpsm-17f1f38e6120119bdbcc4c2b2100671a2826939b.tar.xz
lpsm-17f1f38e6120119bdbcc4c2b2100671a2826939b.zip
Add realloc; clean up prototypes and comments.
-rw-r--r--lpsm.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/lpsm.h b/lpsm.h
index cc7c725..e24550d 100644
--- a/lpsm.h
+++ b/lpsm.h
@@ -14,7 +14,7 @@
/*
* objstore.h
*
- * Header file for the persistent object store
+ * Public header file for the persistent object store
*/
#ifndef OBJSTORE_H
@@ -27,13 +27,14 @@
struct Objstore;
/* Core routines */
-void *objstore_init(char *main_file, char *log_file, size_t *arena_len);
-int objstore_checkpoint(double gc_factor);
-int objstore_extend(size_t new_size);
+void *objstore_init(char *, char *, size_t *);
+int objstore_checkpoint(double);
+int objstore_extend(size_t);
-/* Alloc routines */
+/* Arena management routines */
void *objstore_arena_init(void);
-void *objstore_malloc(size_t size);
-void objstore_free(void *ptr);
+void *objstore_malloc(size_t);
+void objstore_free(void *);
+void *objstore_realloc(void *, size_t);
#endif