src/nexus.h
author Tero Marttila <terom@fixme.fi>
Sun, 15 Mar 2009 01:17:22 +0200
branchmodules
changeset 55 6f7f6ae729d0
parent 53 12d806823775
child 57 ce1accba5fc7
permissions -rw-r--r--
'working' modules code, and convert irc_log to use said interface, but we've hit the limits on our Makefile, and the compiled module doesn't really work
#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 "module.h"
#include "irc_client.h"

/**
 * Context for async nexus operation
 */
struct nexus {
    /** The libevent base */
    struct event_base *ev_base;

    /** Our loaded modules */
    struct modules *modules;

    /** 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 */