diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-11-21 00:53:57 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-29 23:41:22 +0100 |
commit | 74b05d550081fb7a7b41a145cfbc333f8774d438 (patch) | |
tree | 7aa3c4931ecf1bec4e7f856b4edde052b426af6c /include | |
parent | a589577b68cb84bc877ecdd4c0f9cb84a1581ddd (diff) |
Make LocalUserList an std::list
Diffstat (limited to 'include')
-rw-r--r-- | include/typedefs.h | 2 | ||||
-rw-r--r-- | include/usermanager.h | 2 | ||||
-rw-r--r-- | include/users.h | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/include/typedefs.h b/include/typedefs.h index 250bec5c9..06f704120 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -66,7 +66,7 @@ struct ResourceRecord; /** A list holding local users, this is the type of UserManager::local_users */ -typedef std::vector<LocalUser*> LocalUserList; +typedef std::list<LocalUser*> LocalUserList; /** A list of failed port bindings, used for informational purposes on startup */ typedef std::vector<std::pair<std::string, std::string> > FailedPortList; diff --git a/include/usermanager.h b/include/usermanager.h index be6c6b6bb..3d7fe88fb 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -52,7 +52,7 @@ class CoreExport UserManager */ user_hash* uuidlist; - /** Local client list, a vector containing only local clients + /** Local client list, a list containing only local clients */ LocalUserList local_users; diff --git a/include/users.h b/include/users.h index 9b1339611..1328bf0cb 100644 --- a/include/users.h +++ b/include/users.h @@ -747,6 +747,10 @@ class CoreExport LocalUser : public User, public InviteBase UserIOHandler eh; + /** Position in UserManager::local_users + */ + LocalUserList::iterator localuseriter; + /** Stats counter for bytes inbound */ int bytes_in; |