reminder on how to enable debugging in luaixp
[wmiirc-lua.git] / luaixp / lixp_util.h
blob635240cf366e62e0a70f28fe2e021fc2969ff08d
1 #ifndef __LUAIXP_UTIL_H__
2 #define __LUAIXP_UTIL_H__
4 #include <lua.h>
6 #if 0
7 // backward compatibility to 0.3 (20070518)
8 // ... but there is no good way to detect that we need it at build time
9 #ifndef IxpStat
10 #define IxpStat Stat
11 #define IxpMsg Message
12 #endif
13 #endif
15 struct IxpCFid;
16 struct IxpStat;
18 extern int lixp_pusherrorf(lua_State *L, const char *fmt, ...);
19 extern int lixp_pusherror(lua_State *L, const char *info);
21 extern int lixp_write_data (struct IxpCFid *fid, const char *data, size_t data_len);
23 extern int lixp_pushstat (lua_State *L, const struct IxpStat *stat);
25 #endif // __LUAIXP_UTIL_H__