aboutsummaryrefslogtreecommitdiffstats
path: root/lpsm.h
blob: e24550dd95fe4394a5849b2388da0f6da05137c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ident "$Id$"
/* ----------------------------------------------------------------------- *
 *   
 *   Copyright 2000-2001 H. Peter Anvin - All Rights Reserved
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
 *   USA; either version 2 of the License, or (at your option) any later
 *   version; incorporated herein by reference.
 *
 * ----------------------------------------------------------------------- */

/*
 * objstore.h
 *
 * Public header file for the persistent object store
 */

#ifndef OBJSTORE_H
#define OBJSTORE_H

#include <stdlib.h>
#include <signal.h>
#include <inttypes.h>

struct Objstore;

/* Core routines */
void *objstore_init(char *, char *, size_t *);
int objstore_checkpoint(double);
int objstore_extend(size_t);

/* Arena management routines */
void *objstore_arena_init(void);
void *objstore_malloc(size_t);
void objstore_free(void *);
void *objstore_realloc(void *, size_t);

#endif