src/nexus.h
changeset 53 12d806823775
child 55 6f7f6ae729d0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/nexus.h	Fri Mar 13 16:10:48 2009 +0200
@@ -0,0 +1,26 @@
+#ifndef NEXUS_H
+#define NEXUS_H
+
+/**
+ * A nexus is the central brain of the application; the place where the main() method is implemented
+ */
+#include <event2/event.h>
+#include "irc_client.h"
+
+/**
+ * Context for async nexus operation
+ */
+struct nexus_ctx {
+    /** The libevent base */
+    struct event_base *ev_base;
+
+    /** The IRC client state */
+    struct irc_client *client;
+};
+
+/**
+ * The nexus main function, application entry point, etc.
+ */
+int main (int argc, char **argv);
+
+#endif /* NEXUS_H */