URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8c2bb805742c918b933923947a533d098774da75
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
8c2bb80 by Hadriel Kaplan (hadrielk@xxxxxxxxx):
Add various functions for Lua directory handling and path info
This adds new functions to get plugins path info, find out if a directory
exists, make a new one, remove one, etc. It also creates a file environment
for user-supplied Lua scripts, to prevent global variable contamination as
well as supply the script-specific file name. Some other minor cleanup was
done as I found them.
A new testsuite was added to test the existing and new directory functions.
Change-Id: I19bd587b5e8a73d89b8521af73670e023314fb33
Reviewed-on: https://code.wireshark.org/review/832
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
Actions performed:
from da1af6e Add filterable expert info for Lua
adds 8c2bb80 Add various functions for Lua directory handling and path info
Summary of changes:
docbook/CMakeLists.txt | 1 +
docbook/Makefile.common | 1 +
docbook/user-guide.xml | 1 +
docbook/wsluarm.xml | 1 +
epan/wslua/CMakeLists.txt | 1 +
epan/wslua/Makefile.am | 2 +
epan/wslua/Makefile.nmake | 2 +
epan/wslua/init_wslua.c | 65 +++++--
epan/wslua/template-init.lua | 9 +-
epan/wslua/wslua.h | 2 +
epan/wslua/wslua_dir.c | 383 ++++++++++++++++++++++++++++++++++++++++++
epan/wslua/wslua_file.c | 16 +-
epan/wslua/wslua_int64.c | 8 +-
epan/wslua/wslua_util.c | 174 +------------------
test/lua/dir.lua | 202 ++++++++++++++++++++++
test/suite-wslua.sh | 17 ++
16 files changed, 688 insertions(+), 197 deletions(-)
create mode 100644 epan/wslua/wslua_dir.c
create mode 100644 test/lua/dir.lua