[SerialICE] r75 - trunk/qemu-0.11.0
svn at coresystems.de
svn at coresystems.de
Thu Nov 26 23:27:27 CET 2009
Author: stepan
Date: 2009-11-26 23:27:27 +0100 (Thu, 26 Nov 2009)
New Revision: 75
Modified:
trunk/qemu-0.11.0/serialice.c
Log:
make global variable SerialICE_mainboard available in LUA.
Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Modified: trunk/qemu-0.11.0/serialice.c
===================================================================
--- trunk/qemu-0.11.0/serialice.c 2009-11-26 21:59:48 UTC (rev 74)
+++ trunk/qemu-0.11.0/serialice.c 2009-11-26 22:27:27 UTC (rev 75)
@@ -108,6 +108,10 @@
/* Register C function callbacks */
lua_register(L, "SerialICE_register_physical", serialice_register_physical);
+ /* Set global variable SerialICE_mainboard */
+ lua_pushstring(L, serialice_mainboard);
+ lua_setfield(L, LUA_GLOBALSINDEX, "SerialICE_mainboard");
+
/* Load the script file */
status = luaL_loadfile(L, serialice_lua_script);
if (status) {
More information about the SerialICE
mailing list