summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/luaengine.h
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-04-07 14:50:53 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-04-07 14:50:53 -0500
commit2110fc5092a0904d61168b0b7102185024f85e12 (patch)
treedf54fec12e3768228897eb2c82fecbfc9157827d /src/emu/luaengine.h
parent80300e5cc636d22ab53d4b5765d8f17533d617b1 (diff)
luaengine: indexed items (nw)
Diffstat (limited to 'src/emu/luaengine.h')
-rw-r--r--src/emu/luaengine.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/emu/luaengine.h b/src/emu/luaengine.h
index e96603ba806..7fefb73d0e3 100644
--- a/src/emu/luaengine.h
+++ b/src/emu/luaengine.h
@@ -173,6 +173,7 @@ private:
int l_draw_line(lua_State *L);
int l_draw_text(lua_State *L);
};
+ static luabridge::LuaRef l_dev_get_items(const device_t *d);
struct lua_video {
int l_begin_recording(lua_State *L);
@@ -202,6 +203,16 @@ private:
int l_emu_file_read(lua_State *L);
};
+ struct lua_item {
+ lua_item(int index);
+ void *l_item_base;
+ unsigned int l_item_size;
+ unsigned int l_item_count;
+ int l_item_read(lua_State *L);
+ int l_item_read_block(lua_State *L);
+ int l_item_write(lua_State *L);
+ };
+
void resume(void *L, INT32 param);
void start();
static int luaopen_ioport(lua_State *L);