1/*
2 * Copyright (c) 2014, University of Washington.
3 * All rights reserved.
4 *
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
8 */
9
10#ifndef STORAGE_H
11#define STORAGE_H
12
13#include <storage/vsa.h>
14#include <storage/vsic.h>
15
16#define storage_alloca(vsic, size)		\
17  alloca(STORAGE_VSIC_ROUND(vsic, size))
18
19#define storage_malloc(vsic, size) 		\
20  malloc(STORAGE_VSIC_ROUND(vsic, size))
21
22#define storage_realloc(vsic, ptr, size)       	\
23  realloc(ptr, STORAGE_VSIC_ROUND(vsic, size))
24
25#define storage_free(vsic, ptr)			\
26  free(ptr)
27
28errval_t storage_init(int argc, const char **argv);
29
30#endif
31