about summary refs log tree commit diff
path: root/generator/pamtris/input.h
blob: d34de3a14d005735cec39fd59856f4f5a73bec34 (plain) (blame)
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
#ifndef INPUT_H_INCLUDED
#define INPUT_H_INCLUDED

#include <stdint.h>

struct boundary_info;
struct framebuffer_info;

typedef struct {
    char *   buffer;
    size_t   length;
    uint64_t number;
} Input;

void
input_init(Input * const inputP);

void
input_term(Input * const inputP);

void
input_process_next_command(Input *                   const inputP,
                           struct boundary_info *    const bdiP,
                           struct framebuffer_info * const fbiP,
                           bool *                    const noMoreCommandsP);

#endif