terom@116: #ifndef LUA_IRC_H terom@116: #define LUA_IRC_H terom@116: terom@116: /** terom@116: * Defines lua wrappers for the irc_* objects terom@116: */ terom@116: #include "irc_client.h" terom@116: terom@219: // XXX: remove this dep ASAP. terom@219: #include terom@219: terom@116: /** terom@116: * Our lua wrapper for irc_chan terom@116: */ terom@116: struct lua_chan { terom@116: struct irc_chan *chan; terom@116: }; terom@116: terom@116: /** terom@116: * Our lua wrapper for irc_net terom@116: */ terom@116: struct lua_net { terom@116: struct irc_net *net; terom@116: }; terom@116: terom@116: /** terom@116: * Our lua wrapper for irc_client terom@116: */ terom@116: struct lua_client { terom@116: struct irc_client *client; terom@116: terom@116: /** Any defaults set using lua_client_set_defaults */ terom@116: struct irc_client_defaults defaults; terom@116: }; terom@116: terom@116: /** terom@116: * Initialize the various lua_irc object types for the given lua state. terom@116: * terom@116: * Call in protected mode. terom@116: */ terom@116: void lua_irc_init (struct nexus_lua *lua); terom@116: terom@116: #endif