equal
deleted
inserted
replaced
|
1 #ifndef NEXUS_H |
|
2 #define NEXUS_H |
|
3 |
|
4 /** |
|
5 * A nexus is the central brain of the application; the place where the main() method is implemented |
|
6 */ |
|
7 #include <event2/event.h> |
|
8 #include "irc_client.h" |
|
9 |
|
10 /** |
|
11 * Context for async nexus operation |
|
12 */ |
|
13 struct nexus_ctx { |
|
14 /** The libevent base */ |
|
15 struct event_base *ev_base; |
|
16 |
|
17 /** The IRC client state */ |
|
18 struct irc_client *client; |
|
19 }; |
|
20 |
|
21 /** |
|
22 * The nexus main function, application entry point, etc. |
|
23 */ |
|
24 int main (int argc, char **argv); |
|
25 |
|
26 #endif /* NEXUS_H */ |