all repos — xrxs @ 92bbf397acaad8ba849cbfa3981548ae47999871

experimental networked application/game server with 9p

user.h (raw)

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

int load_cart(char* uname, char* cart_name);
int enter_realm(char* uname, char* realm_name);
int leave_realm(char* uname, Realm* realm);
int unload_cart(char* uname, Cart* cart);