From cb8af6e7bf5f6e70fc9722d36448213c719e83c8 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Thu, 19 May 2016 16:47:06 -0400 Subject: implement more of dunnet --- src/userdb.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/userdb.h') diff --git a/src/userdb.h b/src/userdb.h index 25bdc7b..7958fb3 100644 --- a/src/userdb.h +++ b/src/userdb.h @@ -39,12 +39,16 @@ struct userdata_t { time_t last_login; void *objects; /* multihash of object names -> objects */ + + /* for use by world module */ + void *userdata; }; /* call before using anything else */ void userdb_init(const char *dbfile); /* looks up a username in the DB, returns NULL upon failure */ +/* changes made to the returned structure will persist */ struct userdata_t *userdb_lookup(const char *username); bool userdb_remove(const char *username); -- cgit v1.1