kubo/kubo_context.h

28 lines
611 B
C

#ifndef KUBO_CONTEXT_H
#define KUBO_CONTEXT_H
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "kubo_wall.h"
#define KUBO_CONTEXT_NUM_WALLS_ALLOC 4
struct kubo_context {
bool exit_pending;
struct kubo_wall **walls;
unsigned int num_walls;
unsigned int num_walls_alloc;
};
struct kubo_context *kubo_context_init();
void kubo_context_cleanup(struct kubo_context *context);
bool kubo_context_add_wall(struct kubo_context *context,
struct kubo_wall *wall);
struct kubo_wall *kubo_context_get_pending_wall(struct kubo_context *context);
#endif