all repos — xrxs @ e85bf2c4e5f8c3c2d6e58ea0c8283a78f4b783a7

experimental networked application/game server with 9p

realm.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
typedef struct Universe Universe;
typedef struct UserInfo UserInfo;

typedef struct Realm {
  char name[32];
  char master[32];
  ushort max;
  uvlong password;
  Universe* universe;
} Realm;

Realm* create_realm(UserInfo* table, char* uname, char* name);
Realm* parse_realm(char* cart, char* name);
Realm* find_realm(UserInfo* table, char* name);
void save_realm(char* cart, Realm* self);
void destroy_realm(Realm* self);