116
|
1 |
#ifndef LUA_IRC_H
|
|
2 |
#define LUA_IRC_H
|
|
3 |
|
|
4 |
/**
|
|
5 |
* Defines lua wrappers for the irc_* objects
|
|
6 |
*/
|
|
7 |
#include "nexus_lua.h"
|
|
8 |
#include "lua_objs.h"
|
|
9 |
#include "irc_client.h"
|
|
10 |
|
|
11 |
/**
|
|
12 |
* Our lua wrapper for irc_chan
|
|
13 |
*/
|
|
14 |
struct lua_chan {
|
|
15 |
struct irc_chan *chan;
|
|
16 |
};
|
|
17 |
|
|
18 |
/**
|
|
19 |
* Our lua wrapper for irc_net
|
|
20 |
*/
|
|
21 |
struct lua_net {
|
|
22 |
struct irc_net *net;
|
|
23 |
};
|
|
24 |
|
|
25 |
/**
|
|
26 |
* Our lua wrapper for irc_client
|
|
27 |
*/
|
|
28 |
struct lua_client {
|
|
29 |
struct irc_client *client;
|
|
30 |
|
|
31 |
/** Any defaults set using lua_client_set_defaults */
|
|
32 |
struct irc_client_defaults defaults;
|
|
33 |
};
|
|
34 |
|
|
35 |
/**
|
|
36 |
* Initialize the various lua_irc object types for the given lua state.
|
|
37 |
*
|
|
38 |
* Call in protected mode.
|
|
39 |
*/
|
|
40 |
void lua_irc_init (struct nexus_lua *lua);
|
|
41 |
|
|
42 |
#endif
|