all repos — xrxs @ c8ba412121282b7e4d51126b5da615d75b7faf1a

experimental networked application/game server with 9p

user.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
typedef struct Cart Cart;
typedef struct Realm Realm;
typedef struct UserInfo {
  char name[32];
  uvlong password;
  Cart* cart;
  Realm* realm;
  char* scope;
  int random;
} UserInfo;

UserInfo* find_user(UserInfo* table, char* uname);
int load_cart(UserInfo* table, char* uname, char* cart_name);
int enter_realm(UserInfo* table, char* uname, char* realm_name);
int leave_realm(UserInfo* table, char* uname);
int unload_cart(UserInfo* table, char* uname);