summaryrefslogtreecommitdiff
path: root/include/ipc/moves.h
blob: f08c42414439894365b02dbd8627a934bdd84963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef IPC_MOVES_H
#define IPC_MOVES_H

typedef struct {
  int from;
  int to;
} ipc_move_t;

typedef struct {
  ipc_move_t *data;
  int count;
  int capacity;
} ipc_moves_t;

void ipc_moves_init(ipc_moves_t *moves);
void ipc_moves_deinit(ipc_moves_t *moves);
void add_ipc_move(ipc_moves_t *moves, ipc_move_t move);

#endif // IPC_MOVES_H