src/nexus.h
author Tero Marttila <terom@fixme.fi>
Sun, 15 Mar 2009 23:01:12 +0200
branchmodules
changeset 56 942370000450
parent 55 6f7f6ae729d0
child 57 ce1accba5fc7
permissions -rw-r--r--
compiling, working, but still ugly module code
#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 */