Instance: add attribute "event_loop"

Replaces global variable "main_loop".
This commit is contained in:
Max Kellermann
2014-02-04 23:58:03 +01:00
parent e8938b1069
commit d380db25be
4 changed files with 22 additions and 18 deletions

View File

@@ -34,6 +34,7 @@ class Database;
class UpdateService;
#endif
class EventLoop;
class Error;
class ClientList;
struct Partition;
@@ -52,6 +53,8 @@ struct Instance final
public NeighborListener
#endif
{
EventLoop *event_loop;
#ifdef ENABLE_NEIGHBOR_PLUGINS
NeighborGlue *neighbors;
#endif