src/nexus.h
author Tero Marttila <terom@fixme.fi>
Fri, 13 Mar 2009 16:10:48 +0200
changeset 53 12d806823775
child 55 6f7f6ae729d0
permissions -rw-r--r--
add irc_client module, plus nexus.h header
#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 */