all repos — xrxs @ ca2e5b8e133a144cae0534f7e3f413376edcb55f

experimental networked application/game server with 9p

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

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

Aux* create_aux(FileType t);