about summary refs log tree commit diff
path: root/generator/pamtris/input.h
blob: 66969bb2e0a091ec740fbdccb2c3c019a6dc118b (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 * const ii);

void
free_input_processor(input_info * const ii);

int
process_next_command(input_info *              const ii,
                     struct boundary_info *    const bdi,
                     struct framebuffer_info * const fbi);

#endif