all repos — xrxs @ e85bf2c4e5f8c3c2d6e58ea0c8283a78f4b783a7

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
20
21
22
typedef enum {
  CTL = 1,
  USERS,
  CARTS,
  SLOT,
  SPRITE_DATA,
  AUDIO_DATA,
  TEXT_DATA,
  REALMS,
  UNIVERSE,
  SCOPE,
  RANDOM,
  GRANDOM,
} FileType;

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

Aux* create_aux(FileType t);