about summary refs log tree commit diff
path: root/generator/pamtris/input.h
blob: 867cca022a2d171cd8bfb90e1e08a436ce418494 (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
28
29
30
31
#ifndef INPUT_H_INCLUDED
#define INPUT_H_INCLUDED

#include <stdint.h>

struct boundary_info;
struct framebuffer_info;

typedef struct input_info {
/*----------------------------------------------------------------------------
  Information necessary for the "process_next_command" function.  It must be
  initialized through "init_input_processor" and freed by
  "free_input_processor".
-----------------------------------------------------------------------------*/
    char *   buffer;
    size_t   length;
    uint64_t number;
} input_info;

void
init_input_processor(input_info *);

void
free_input_processor(input_info *);

int
process_next_command(input_info *,
                     struct boundary_info *,
                     struct framebuffer_info *);

#endif