summaryrefslogtreecommitdiff
path: root/src/core/state.h
blob: 85c604b4bf0f22846860f9f15962432987fc1f89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef SAND_STATE_H
#define SAND_STATE_H

// This module defines the evaluator state. This is the "world" in Sand.
// Multiple evaluator states can coexist as they are totally separate.

#include "config.h"

#include <stddef.h>

// This data structure should be treated as entirely opaque by consuming code.
typedef struct {
	SandConfig config;
} SandState;

SandState sand_create_state(SandConfig config);

void sand_destroy_state(SandState *);

#endif