author | Tero Marttila <terom@fixme.fi> |
Thu, 28 May 2009 01:17:36 +0300 | |
branch | new-lib-errors |
changeset 219 | cefec18b8268 |
parent 116 | 92e71129074d |
permissions | -rw-r--r-- |
116 | 1 |
#ifndef LUA_IRC_H |
2 |
#define LUA_IRC_H |
|
3 |
||
4 |
/** |
|
5 |
* Defines lua wrappers for the irc_* objects |
|
6 |
*/ |
|
7 |
#include "irc_client.h" |
|
8 |
||
219
cefec18b8268
some of the lib/transport stuff compiles
Tero Marttila <terom@fixme.fi>
parents:
116
diff
changeset
|
9 |
// XXX: remove this dep ASAP. |
cefec18b8268
some of the lib/transport stuff compiles
Tero Marttila <terom@fixme.fi>
parents:
116
diff
changeset
|
10 |
#include <spbot/nexus_lua.h> |
cefec18b8268
some of the lib/transport stuff compiles
Tero Marttila <terom@fixme.fi>
parents:
116
diff
changeset
|
11 |
|
116 | 12 |
/** |
13 |
* Our lua wrapper for irc_chan |
|
14 |
*/ |
|
15 |
struct lua_chan { |
|
16 |
struct irc_chan *chan; |
|
17 |
}; |
|
18 |
||
19 |
/** |
|
20 |
* Our lua wrapper for irc_net |
|
21 |
*/ |
|
22 |
struct lua_net { |
|
23 |
struct irc_net *net; |
|
24 |
}; |
|
25 |
||
26 |
/** |
|
27 |
* Our lua wrapper for irc_client |
|
28 |
*/ |
|
29 |
struct lua_client { |
|
30 |
struct irc_client *client; |
|
31 |
||
32 |
/** Any defaults set using lua_client_set_defaults */ |
|
33 |
struct irc_client_defaults defaults; |
|
34 |
}; |
|
35 |
||
36 |
/** |
|
37 |
* Initialize the various lua_irc object types for the given lua state. |
|
38 |
* |
|
39 |
* Call in protected mode. |
|
40 |
*/ |
|
41 |
void lua_irc_init (struct nexus_lua *lua); |
|
42 |
||
43 |
#endif |