all repos — xrxs @ e469044b23878803a9eab622c0261068476622fb

experimental networked application/game server with 9p

aux.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
typedef enum {
  CTL = 1,
  USERS,
  CARTS,
  SLOT,
  SPRITE_DATA,
  AUDIO_DATA,
  TEXT_DATA,
  REALMS,
  UNIVERSE
} FileType;

typedef struct Aux {
  FileType type;
  char* data;
  int count;
} Aux;

Aux* create_aux(FileType t);