diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-11-16 11:17:45 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-11-16 19:18:15 +0000 |
commit | 95fd55e56ba39b3b3b844a7ff65a418eced62ab2 (patch) | |
tree | 4dff6184e49de04e15f5a4178cce11067d48d613 /test | |
parent | e9dd7c8bd42cbb25ca92dde3cee0383db6c20705 (diff) |
For now, call the finish routine in Lua file writers "close".
If we ever change the way file writers work, in a fashion incompatible
with the existing way they work, we'll also rename this member - and get
rid of checks for earlier versions of the Lua interface.
Change-Id: I64065944fa31371f5249cafd930c18f180ad7299
Reviewed-on: https://code.wireshark.org/review/11879
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/pcap_file.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lua/pcap_file.lua b/test/lua/pcap_file.lua index e013b8a16b..b949a38717 100644 --- a/test/lua/pcap_file.lua +++ b/test/lua/pcap_file.lua @@ -730,8 +730,8 @@ local function write(file, capture, frame) return true end -local function write_finish(file, capture) - dprint2("write_finish() called") +local function write_close(file, capture) + dprint2("write_close() called") dprint2("Good night, and good luck") return true end @@ -743,7 +743,7 @@ local fh2 = FileHandler.new("Lua-based PCAP writer", "lua_pcap2", "A Lua-based f fh2.can_write_encap = can_write_encap fh2.write_open = write_open fh2.write = write -fh2.write_finish = write_finish +fh2.write_close = write_close fh2.extensions = "pcap;cap" -- this is just a hint -- and finally, register the FileHandler! |