Instance: make "partition" a std::list

With this commit, multi-player support becomes possible... it's just
not wired to the frontend yet.

This is based on massive amounts of refactoring work I did over the
past 9 years.
This commit is contained in:
Max Kellermann
2017-02-17 23:21:20 +01:00
parent 9a909d9f27
commit 77178e0590
4 changed files with 42 additions and 24 deletions

View File

@@ -38,6 +38,8 @@ class Storage;
class UpdateService;
#endif
#include <list>
class ClientList;
struct Partition;
class StateFile;
@@ -87,7 +89,7 @@ struct Instance final
ClientList *client_list;
Partition *partition;
std::list<Partition> partitions;
StateFile *state_file = nullptr;