summaryrefslogtreecommitdiff
path: root/lib/LuaHandle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LuaHandle.cc')
-rw-r--r--lib/LuaHandle.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/LuaHandle.cc b/lib/LuaHandle.cc
index bcade6f..a2cfe71 100644
--- a/lib/LuaHandle.cc
+++ b/lib/LuaHandle.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: LuaHandle.cc,v 1.16 2005-10-13 16:00:37 pixel Exp $ */
+/* $Id: LuaHandle.cc,v 1.17 2006-01-31 17:02:39 pixel Exp $ */
#include "LuaHandle.h"
@@ -635,6 +635,9 @@ void LuaHandle::pushmembers(Lua * L) {
pushit(L, "read", &sLuaHandle::read);
pushit(L, "write", &sLuaHandle::write);
+ pushit(L, "readstring", &sLuaHandle::readstring);
+ pushit(L, "writestring", &sLuaHandle::writestring);
+
pushit(L, "readU8", sLuaHandle::readU8);
pushit(L, "readU16", sLuaHandle::readU16);
pushit(L, "readU32", sLuaHandle::readU32);
@@ -644,7 +647,6 @@ void LuaHandle::pushmembers(Lua * L) {
pushit(L, "copyfrom", sLuaHandle::copyfrom);
pushit(L, "copyto", sLuaHandle::copyto);
- L->declarefunc("handlecopy", sLuaHandle::copyfrom);
pushit(L, "isclosed", sLuaHandle::isclosed);
pushit(L, "isnonblock", sLuaHandle::isnonblock);
@@ -663,7 +665,10 @@ void LuaHandle::pushmembers(Lua * L) {
pushit(L, "seek", sLuaHandle::seek);
pushit(L, "setz", sLuaHandle::setz);
-
+}
+
+void LuaHandle::pushconstruct(Lua * L) {
+ L->declarefunc("handlecopy", sLuaHandle::copyfrom);
L->declarefunc("exists", sLuaHandle::exists);
L->push("SEEK_SET");