From d8f36a6123b5f32fb1f8426ae9b9877a74959e6a Mon Sep 17 00:00:00 2001 From: Luis Ontanon Date: Sat, 21 Jul 2007 20:46:41 +0000 Subject: [PATCH] Cleanup how WsLuaRm is inserted Add a section introducing wslua and how scripts are loaded (to be completed). svn:ignore wsluarm (a dummy file to mark the generation of the various components of the reference manual) svn path=/trunk/; revision=22375 --- docbook/Makefile.common | 1 + docbook/user-guide.xml | 18 ++++---------- docbook/wsluarm.xml | 52 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 13 deletions(-) create mode 100644 docbook/wsluarm.xml diff --git a/docbook/Makefile.common b/docbook/Makefile.common index dfe0ffdeef..a7c0881d0f 100644 --- a/docbook/Makefile.common +++ b/docbook/Makefile.common @@ -16,6 +16,7 @@ WSUG_FILES = \ wsug_src/WSUG_chapter_work.xml \ wsug_src/WSUG_meta_info.xml \ wsug_src/WSUG_preface.xml \ + wsluarm.xml \ ws.css WSUG_GRAPHICS = \ diff --git a/docbook/user-guide.xml b/docbook/user-guide.xml index b4de6ed62f..188625d93f 100644 --- a/docbook/user-guide.xml +++ b/docbook/user-guide.xml @@ -297,6 +297,8 @@ FILE SECTION + + @@ -326,11 +328,13 @@ WSLua Reference Manual &ChapterStatistics; &ChapterCustomize; + &WsLuaRm; + &AppFiles; &AppProtocols; &AppMessages; &AppTools; - + &AppGPL; - - Wireshark's Lua API Reference Manual - &WsLuaDumper; - &WsLuaField; - &WsLuaGui; - &WsLuaListener; - &WsLuaPinfo; - &WsLuaProto; - &WsLuaTree; - &WsLuaTvb; - &WsLuaUtility; - diff --git a/docbook/wsluarm.xml b/docbook/wsluarm.xml new file mode 100644 index 0000000000..434060923d --- /dev/null +++ b/docbook/wsluarm.xml @@ -0,0 +1,52 @@ + + Lua Support in Wireshark +
+ Introduction + + Wireshark has an embedded Lua interpreter. Lua is a powerful light-weight + programming language designed for extending applications. Lua is designed + and implemented by a team at PUC-Rio, the Pontifical Catholic University + of Rio de Janeiro in Brazil. Lua was born and raised at Tecgraf, the + Computer Graphics Technology Group of PUC-Rio, and is now housed at Lua.org. + Both Tecgraf and Lua.org are laboratories of the Department of Computer Science. + + + In Wireshark Lua can be used to write dissectors and taps. + + + Wireshark's Lua interpreter starts by loading init.lua that + is located in the global configuration directory of Wireshark. + Lua is disabled by default by setting the variable disable_lua + to true in init.lua. To enable lua the line that sets that variable + must be removed or commented out. + + + After loading init.lua from the data directory if lua is enabled + Wireshark will try to load a file named init.lua in the user's + directory. + + + The command line option -X lua_script:<file.lua> can be used to + load lua scripts as well. + + + The Lua code will be executed once after all the protocols have being initialized and before reading + any file. + +
+
+ Wireshark's Lua API Reference Manual + + This Part of the User Guide describes the Wireshark specific functions embedded Lua API. + + &WsLuaDumper; + &WsLuaField; + &WsLuaGui; + &WsLuaListener; + &WsLuaPinfo; + &WsLuaProto; + &WsLuaTree; + &WsLuaTvb; + &WsLuaUtility; +
+