summaryrefslogtreecommitdiffstats
path: root/lib/libjove/libjove.c
blob: 5ad45ac0d47dc22206f46091b5108c281c370948 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "include/jove.h"
#include "error.h"

uintmax_t _syscall_message_box = 0;
void *_syscall_message_ptr = 0;

JoveError jove_errno;

void *(*_jove_alloc)(size_t) = NULL;
void (*_jove_free)(void*) = NULL;
void *(*_jove_realloc)(void*, size_t) = NULL;

void
libjove_init(uint64_t box, void *boxptr)
{
    _syscall_message_box = box;
    _syscall_message_ptr = boxptr;
}