all repos — xrxs @ cd612551fd99f00a071ded1080bbab0ec9f023a8

experimental networked application/game server with 9p

universe.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 unsigned int unit;

typedef struct Atom Atom;

struct Atom {
  char name[16];
  char value[64];
  Atom* next;
};

typedef struct Universe {
  uint count;
  Atom* atoms[256];
} Universe;

Universe* create_universe();
Universe* parse_universe(char* realm_name);
void save_universe(Universe* self, char* realm_name);
void set_atom(Universe* self);
Atom* get_atom(Universe* self, char* name);
void remove_atom(Universe* self, char* name);
void destroy_universe(Universe* self);