aboutsummaryrefslogtreecommitdiff
path: root/src/userdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/userdb.h')
-rw-r--r--src/userdb.h4
1 files changed, 4 insertions, 0 deletions
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);