summary refs log tree commit diff
path: root/src/rt/rust_srv.h
blob: 2a28e49a55603b48ccd859da8c27543d4867f83b (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
// -*- c++ -*-
#ifndef RUST_SRV_H
#define RUST_SRV_H

#include "rust_internal.h"

class rust_srv {
public:
    rust_env *env;
    memory_region local_region;
    void log(char const *msg);
    void fatal(char const *expression,
        char const *file,
        size_t line,
        char const *format,
        ...);
    void warning(char const *expression,
        char const *file,
        size_t line,
        char const *format,
        ...);
    void free(void *);
    void *malloc(size_t);
    void *realloc(void *, size_t);
    rust_srv(rust_env *);
    rust_srv *clone();
};

#endif /* RUST_SRV_H */