all repos — xrxs @ c524a9b65b3b840a461126a7cf2ea733bd382a36

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
typedef struct Universe Universe;
typedef struct UserInfo UserInfo;

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

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