equal
deleted
inserted
replaced
3 |
3 |
4 /** |
4 /** |
5 * A nexus is the central brain of the application; the place where the main() method is implemented |
5 * A nexus is the central brain of the application; the place where the main() method is implemented |
6 */ |
6 */ |
7 #include <event2/event.h> |
7 #include <event2/event.h> |
|
8 #include "module.h" |
8 #include "irc_client.h" |
9 #include "irc_client.h" |
9 |
10 |
10 /** |
11 /** |
11 * Context for async nexus operation |
12 * Context for async nexus operation |
12 */ |
13 */ |
13 struct nexus_ctx { |
14 struct nexus { |
14 /** The libevent base */ |
15 /** The libevent base */ |
15 struct event_base *ev_base; |
16 struct event_base *ev_base; |
|
17 |
|
18 /** Our loaded modules */ |
|
19 struct modules *modules; |
16 |
20 |
17 /** The IRC client state */ |
21 /** The IRC client state */ |
18 struct irc_client *client; |
22 struct irc_client *client; |
19 }; |
23 }; |
20 |
24 |