terom@53: #ifndef NEXUS_H terom@53: #define NEXUS_H terom@53: terom@53: /** terom@53: * A nexus is the central brain of the application; the place where the main() method is implemented terom@53: */ terom@57: terom@57: struct nexus; terom@57: terom@53: #include terom@70: #include "signals.h" terom@55: #include "module.h" terom@53: #include "irc_client.h" terom@53: terom@53: /** terom@53: * Context for async nexus operation terom@53: */ terom@55: struct nexus { terom@53: /** The libevent base */ terom@53: struct event_base *ev_base; terom@53: terom@70: /** Our signal handlers */ terom@70: struct signals *signals; terom@70: terom@55: /** Our loaded modules */ terom@55: struct modules *modules; terom@55: terom@53: /** The IRC client state */ terom@53: struct irc_client *client; terom@53: }; terom@53: terom@53: /** terom@53: * The nexus main function, application entry point, etc. terom@53: */ terom@53: int main (int argc, char **argv); terom@53: terom@53: #endif /* NEXUS_H */