src/lua_irc.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 May 2009 01:17:36 +0300
branchnew-lib-errors
changeset 219 cefec18b8268
parent 116 92e71129074d
permissions -rw-r--r--
some of the lib/transport stuff compiles
#ifndef LUA_IRC_H
#define LUA_IRC_H

/**
 * Defines lua wrappers for the irc_* objects
 */
#include "irc_client.h"

// XXX: remove this dep ASAP.
#include <spbot/nexus_lua.h>

/**
 * Our lua wrapper for irc_chan
 */
struct lua_chan {
    struct irc_chan *chan;
};

/**
 * Our lua wrapper for irc_net
 */
struct lua_net {
    struct irc_net *net;
};

/**
 * Our lua wrapper for irc_client
 */
struct lua_client {
    struct irc_client *client;
    
    /** Any defaults set using lua_client_set_defaults */
    struct irc_client_defaults defaults;
};

/**
 * Initialize the various lua_irc object types for the given lua state.
 *
 * Call in protected mode.
 */
void lua_irc_init (struct nexus_lua *lua);

#endif